Interface LeaderboardCandidateSummary.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<LeaderboardCandidateSummary.Builder,,LeaderboardCandidateSummary> SdkBuilder<LeaderboardCandidateSummary.Builder,,LeaderboardCandidateSummary> SdkPojo
- Enclosing class:
LeaderboardCandidateSummary
-
Method Summary
Modifier and TypeMethodDescriptioncandidateConfig(Consumer<LeaderboardCandidateConfig.Builder> candidateConfig) The configuration that identifies the candidate.candidateConfig(LeaderboardCandidateConfig candidateConfig) The configuration that identifies the candidate.candidateId(String candidateId) The ID of the candidate.displayName(String displayName) The display name of the candidate.evaluationResults(Collection<LeaderboardCandidateEvaluationResult> evaluationResults) For each evaluation criterion, the metrics from the candidate's most recent evaluation run.evaluationResults(Consumer<LeaderboardCandidateEvaluationResult.Builder>... evaluationResults) For each evaluation criterion, the metrics from the candidate's most recent evaluation run.evaluationResults(LeaderboardCandidateEvaluationResult... evaluationResults) For each evaluation criterion, the metrics from the candidate's most recent evaluation run.The labels of the candidate.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
candidateId
The ID of the candidate.
- Parameters:
candidateId- The ID of the candidate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
displayName
The display name of the candidate.
- Parameters:
displayName- The display name of the candidate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
labels
The labels of the candidate.
- Parameters:
labels- The labels of the candidate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
candidateConfig
The configuration that identifies the candidate.
- Parameters:
candidateConfig- The configuration that identifies the candidate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
candidateConfig
default LeaderboardCandidateSummary.Builder candidateConfig(Consumer<LeaderboardCandidateConfig.Builder> candidateConfig) The configuration that identifies the candidate.
This is a convenience method that creates an instance of theLeaderboardCandidateConfig.Builderavoiding the need to create one manually viaLeaderboardCandidateConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocandidateConfig(LeaderboardCandidateConfig).- Parameters:
candidateConfig- a consumer that will call methods onLeaderboardCandidateConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
evaluationResults
LeaderboardCandidateSummary.Builder evaluationResults(Collection<LeaderboardCandidateEvaluationResult> evaluationResults) For each evaluation criterion, the metrics from the candidate's most recent evaluation run.
- Parameters:
evaluationResults- For each evaluation criterion, the metrics from the candidate's most recent evaluation run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationResults
LeaderboardCandidateSummary.Builder evaluationResults(LeaderboardCandidateEvaluationResult... evaluationResults) For each evaluation criterion, the metrics from the candidate's most recent evaluation run.
- Parameters:
evaluationResults- For each evaluation criterion, the metrics from the candidate's most recent evaluation run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationResults
LeaderboardCandidateSummary.Builder evaluationResults(Consumer<LeaderboardCandidateEvaluationResult.Builder>... evaluationResults) For each evaluation criterion, the metrics from the candidate's most recent evaluation run.
This is a convenience method that creates an instance of theLeaderboardCandidateEvaluationResult.Builderavoiding the need to create one manually viaLeaderboardCandidateEvaluationResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toevaluationResults(List<LeaderboardCandidateEvaluationResult>).- Parameters:
evaluationResults- a consumer that will call methods onLeaderboardCandidateEvaluationResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-