Interface AddCandidateRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<AddCandidateRequest.Builder,,AddCandidateRequest> SageMakerRequest.Builder,SdkBuilder<AddCandidateRequest.Builder,,AddCandidateRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
AddCandidateRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault AddCandidateRequest.BuildercandidateConfig(Consumer<LeaderboardCandidateConfig.Builder> candidateConfig) The configuration that identifies the candidate.candidateConfig(LeaderboardCandidateConfig candidateConfig) The configuration that identifies the candidate.clientToken(String clientToken) A unique, case-sensitive identifier for the request.displayName(String displayName) A display name for the candidate.evaluationResults(Collection<LeaderboardEvaluationResult> evaluationResults) The evaluation metrics to add to the candidate, grouped by evaluation criterion.evaluationResults(Consumer<LeaderboardEvaluationResult.Builder>... evaluationResults) The evaluation metrics to add to the candidate, grouped by evaluation criterion.evaluationResults(LeaderboardEvaluationResult... evaluationResults) The evaluation metrics to add to the candidate, grouped by evaluation criterion.Key-value pairs that describe the candidate.leaderboardArn(String leaderboardArn) The Amazon Resource Name (ARN) of the leaderboard to add the candidate to.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.sagemaker.model.SageMakerRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
leaderboardArn
The Amazon Resource Name (ARN) of the leaderboard to add the candidate to.
- Parameters:
leaderboardArn- The Amazon Resource Name (ARN) of the leaderboard to add the candidate to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
displayName
A display name for the candidate. SageMaker uses this value only when it creates the candidate. If the candidate already exists, SageMaker keeps its existing display name. The display name can't contain control characters or format characters.
- Parameters:
displayName- A display name for the candidate. SageMaker uses this value only when it creates the candidate. If the candidate already exists, SageMaker keeps its existing display name. The display name can't contain control characters or format characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
labels
Key-value pairs that describe the candidate. Labels aren't part of the candidate's identity. If the candidate already exists, these labels replace its existing labels. To remove all labels, specify an empty map. If you don't specify labels, the existing labels are kept. Label keys and values can contain only Unicode letters, numbers, spaces, and the following characters:
_ . : / = + - @.- Parameters:
labels- Key-value pairs that describe the candidate. Labels aren't part of the candidate's identity. If the candidate already exists, these labels replace its existing labels. To remove all labels, specify an empty map. If you don't specify labels, the existing labels are kept. Label keys and values can contain only Unicode letters, numbers, spaces, and the following characters:_ . : / = + - @.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
candidateConfig
The configuration that identifies the candidate. Candidates with the same configuration have the same
CandidateId.- Parameters:
candidateConfig- The configuration that identifies the candidate. Candidates with the same configuration have the sameCandidateId.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
candidateConfig
default AddCandidateRequest.Builder candidateConfig(Consumer<LeaderboardCandidateConfig.Builder> candidateConfig) The configuration that identifies the candidate. Candidates with the same configuration have the same
This is a convenience method that creates an instance of theCandidateId.LeaderboardCandidateConfig.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
AddCandidateRequest.Builder evaluationResults(Collection<LeaderboardEvaluationResult> evaluationResults) The evaluation metrics to add to the candidate, grouped by evaluation criterion.
- Parameters:
evaluationResults- The evaluation metrics to add to the candidate, grouped by evaluation criterion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationResults
The evaluation metrics to add to the candidate, grouped by evaluation criterion.
- Parameters:
evaluationResults- The evaluation metrics to add to the candidate, grouped by evaluation criterion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationResults
AddCandidateRequest.Builder evaluationResults(Consumer<LeaderboardEvaluationResult.Builder>... evaluationResults) The evaluation metrics to add 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:
-
clientToken
A unique, case-sensitive identifier for the request. If you don't specify a client token, the Amazon Web Services SDKs and the Amazon Web Services CLI generate one for you.
- Parameters:
clientToken- A unique, case-sensitive identifier for the request. If you don't specify a client token, the Amazon Web Services SDKs and the Amazon Web Services CLI generate one for you.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
AddCandidateRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
AddCandidateRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-