Interface SubmitServiceJobRequest.Builder

  • Method Details

    • jobName

      The name of the service job. It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).

      Parameters:
      jobName - The name of the service job. It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • jobQueue

      The job queue into which the service job is submitted. You can specify either the name or the ARN of the queue. The job queue must have the type SAGEMAKER_TRAINING.

      Parameters:
      jobQueue - The job queue into which the service job is submitted. You can specify either the name or the ARN of the queue. The job queue must have the type SAGEMAKER_TRAINING.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • retryStrategy

      The retry strategy to use for failed service jobs that are submitted with this service job request.

      Parameters:
      retryStrategy - The retry strategy to use for failed service jobs that are submitted with this service job request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • retryStrategy

      The retry strategy to use for failed service jobs that are submitted with this service job request.

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

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

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

      SubmitServiceJobRequest.Builder schedulingPriority(Integer schedulingPriority)

      The scheduling priority of the service job. Valid values are integers between 0 and 9999.

      Parameters:
      schedulingPriority - The scheduling priority of the service job. Valid values are integers between 0 and 9999.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • serviceRequestPayload

      SubmitServiceJobRequest.Builder serviceRequestPayload(String serviceRequestPayload)

      The request, in JSON, for the service that the SubmitServiceJob operation is queueing.

      Parameters:
      serviceRequestPayload - The request, in JSON, for the service that the SubmitServiceJob operation is queueing.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • serviceJobType

      SubmitServiceJobRequest.Builder serviceJobType(String serviceJobType)

      The type of service job. For SageMaker Training jobs, specify SAGEMAKER_TRAINING.

      Parameters:
      serviceJobType - The type of service job. For SageMaker Training jobs, specify SAGEMAKER_TRAINING.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • serviceJobType

      SubmitServiceJobRequest.Builder serviceJobType(ServiceJobType serviceJobType)

      The type of service job. For SageMaker Training jobs, specify SAGEMAKER_TRAINING.

      Parameters:
      serviceJobType - The type of service job. For SageMaker Training jobs, specify SAGEMAKER_TRAINING.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • shareIdentifier

      SubmitServiceJobRequest.Builder shareIdentifier(String shareIdentifier)

      The share identifier for the service job. Don't specify this parameter if the job queue doesn't have a fair- share scheduling policy. If the job queue has a fair-share scheduling policy, then this parameter must be specified.

      Parameters:
      shareIdentifier - The share identifier for the service job. Don't specify this parameter if the job queue doesn't have a fair- share scheduling policy. If the job queue has a fair-share scheduling policy, then this parameter must be specified.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • timeoutConfig

      SubmitServiceJobRequest.Builder timeoutConfig(ServiceJobTimeout timeoutConfig)

      The timeout configuration for the service job. If none is specified, Batch defers to the default timeout of the underlying service handling the job.

      Parameters:
      timeoutConfig - The timeout configuration for the service job. If none is specified, Batch defers to the default timeout of the underlying service handling the job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • timeoutConfig

      default SubmitServiceJobRequest.Builder timeoutConfig(Consumer<ServiceJobTimeout.Builder> timeoutConfig)

      The timeout configuration for the service job. If none is specified, Batch defers to the default timeout of the underlying service handling the job.

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

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

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

      The tags that you apply to the service job request. Each tag consists of a key and an optional value. For more information, see Tagging your Batch resources.

      Parameters:
      tags - The tags that you apply to the service job request. Each tag consists of a key and an optional value. For more information, see Tagging your Batch resources.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clientToken

      SubmitServiceJobRequest.Builder clientToken(String clientToken)

      A unique identifier for the request. This token is used to ensure idempotency of requests. If this parameter is specified and two submit requests with identical payloads and clientTokens are received, these requests are considered the same request and the second request is rejected.

      Parameters:
      clientToken - A unique identifier for the request. This token is used to ensure idempotency of requests. If this parameter is specified and two submit requests with identical payloads and clientTokens are received, these requests are considered the same request and the second request is rejected.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      SubmitServiceJobRequest.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.