Interface GetCandidateResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetCandidateResponse.Builder,,GetCandidateResponse> SageMakerResponse.Builder,SdkBuilder<GetCandidateResponse.Builder,,GetCandidateResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetCandidateResponse
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetCandidateResponse.BuildercandidateConfig(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.creationTime(Instant creationTime) When the candidate was added to the leaderboard.displayName(String displayName) The display name of the candidate.evaluationResults(Collection<LeaderboardEvaluationResult> evaluationResults) All of the evaluation metrics that were added to the candidate, grouped by evaluation criterion.evaluationResults(Consumer<LeaderboardEvaluationResult.Builder>... evaluationResults) All of the evaluation metrics that were added to the candidate, grouped by evaluation criterion.evaluationResults(LeaderboardEvaluationResult... evaluationResults) All of the evaluation metrics that were added to the candidate, grouped by evaluation criterion.The labels of the candidate.lastModifiedTime(Instant lastModifiedTime) When the candidate was last modified.leaderboardArn(String leaderboardArn) The Amazon Resource Name (ARN) of the leaderboard that the candidate belongs to.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.sagemaker.model.SageMakerResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
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.
-
leaderboardArn
The Amazon Resource Name (ARN) of the leaderboard that the candidate belongs to.
- Parameters:
leaderboardArn- The Amazon Resource Name (ARN) of the leaderboard that the candidate belongs to.- 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 GetCandidateResponse.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
GetCandidateResponse.Builder evaluationResults(Collection<LeaderboardEvaluationResult> evaluationResults) All of the evaluation metrics that were added to the candidate, grouped by evaluation criterion.
- Parameters:
evaluationResults- All of the evaluation metrics that were added to the candidate, grouped by evaluation criterion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationResults
All of the evaluation metrics that were added to the candidate, grouped by evaluation criterion.
- Parameters:
evaluationResults- All of the evaluation metrics that were added to the candidate, grouped by evaluation criterion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationResults
GetCandidateResponse.Builder evaluationResults(Consumer<LeaderboardEvaluationResult.Builder>... evaluationResults) All of the evaluation metrics that were added to the candidate, grouped by evaluation criterion.
This is a convenience method that creates an instance of theLeaderboardEvaluationResult.Builderavoiding the need to create one manually viaLeaderboardEvaluationResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toevaluationResults(List<LeaderboardEvaluationResult>).- Parameters:
evaluationResults- a consumer that will call methods onLeaderboardEvaluationResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
creationTime
When the candidate was added to the leaderboard.
- Parameters:
creationTime- When the candidate was added to the leaderboard.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModifiedTime
When the candidate was last modified.
- Parameters:
lastModifiedTime- When the candidate was last modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-