Interface AddCandidateRequest.Builder

  • Method Details

    • leaderboardArn

      AddCandidateRequest.Builder leaderboardArn(String 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

      AddCandidateRequest.Builder displayName(String 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

      AddCandidateRequest.Builder candidateConfig(LeaderboardCandidateConfig 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 same CandidateId.
      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 CandidateId.

      This is a convenience method that creates an instance of the LeaderboardCandidateConfig.Builder avoiding the need to create one manually via LeaderboardCandidateConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to candidateConfig(LeaderboardCandidateConfig).

      Parameters:
      candidateConfig - a consumer that will call methods on LeaderboardCandidateConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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(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.

      This is a convenience method that creates an instance of the LeaderboardEvaluationResult.Builder avoiding the need to create one manually via LeaderboardEvaluationResult.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to evaluationResults(List<LeaderboardEvaluationResult>).

      Parameters:
      evaluationResults - a consumer that will call methods on LeaderboardEvaluationResult.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • clientToken

      AddCandidateRequest.Builder clientToken(String 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.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.