Interface SubmitServiceJobRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,BatchRequest.Builder,Buildable,CopyableBuilder<SubmitServiceJobRequest.Builder,SubmitServiceJobRequest>,SdkBuilder<SubmitServiceJobRequest.Builder,SubmitServiceJobRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- SubmitServiceJobRequest
@Mutable @NotThreadSafe public static interface SubmitServiceJobRequest.Builder extends BatchRequest.Builder, SdkPojo, CopyableBuilder<SubmitServiceJobRequest.Builder,SubmitServiceJobRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SubmitServiceJobRequest.BuilderclientToken(String clientToken)A unique identifier for the request.SubmitServiceJobRequest.BuilderjobName(String jobName)The name of the service job.SubmitServiceJobRequest.BuilderjobQueue(String jobQueue)The job queue into which the service job is submitted.SubmitServiceJobRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)SubmitServiceJobRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default SubmitServiceJobRequest.BuilderpreemptionConfiguration(Consumer<ServiceJobPreemptionConfiguration.Builder> preemptionConfiguration)Specifies the service job behavior when preempted.SubmitServiceJobRequest.BuilderpreemptionConfiguration(ServiceJobPreemptionConfiguration preemptionConfiguration)Specifies the service job behavior when preempted.SubmitServiceJobRequest.BuilderquotaShareName(String quotaShareName)The quota share for the service job.default SubmitServiceJobRequest.BuilderretryStrategy(Consumer<ServiceJobRetryStrategy.Builder> retryStrategy)The retry strategy to use for failed service jobs that are submitted with this service job request.SubmitServiceJobRequest.BuilderretryStrategy(ServiceJobRetryStrategy retryStrategy)The retry strategy to use for failed service jobs that are submitted with this service job request.SubmitServiceJobRequest.BuilderschedulingPriority(Integer schedulingPriority)The scheduling priority of the service job.SubmitServiceJobRequest.BuilderserviceJobType(String serviceJobType)The type of service job.SubmitServiceJobRequest.BuilderserviceJobType(ServiceJobType serviceJobType)The type of service job.SubmitServiceJobRequest.BuilderserviceRequestPayload(String serviceRequestPayload)The request, in JSON, for the service that the SubmitServiceJob operation is queueing.SubmitServiceJobRequest.BuildershareIdentifier(String shareIdentifier)The share identifier for the service job.SubmitServiceJobRequest.Buildertags(Map<String,String> tags)The tags that you apply to the service job request.default SubmitServiceJobRequest.BuildertimeoutConfig(Consumer<ServiceJobTimeout.Builder> timeoutConfig)The timeout configuration for the service job.SubmitServiceJobRequest.BuildertimeoutConfig(ServiceJobTimeout timeoutConfig)The timeout configuration for the service job.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.batch.model.BatchRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
jobName
SubmitServiceJobRequest.Builder jobName(String 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
SubmitServiceJobRequest.Builder jobQueue(String 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 typeSAGEMAKER_TRAINING.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retryStrategy
SubmitServiceJobRequest.Builder retryStrategy(ServiceJobRetryStrategy 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
default SubmitServiceJobRequest.Builder retryStrategy(Consumer<ServiceJobRetryStrategy.Builder> 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 theServiceJobRetryStrategy.Builderavoiding the need to create one manually viaServiceJobRetryStrategy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toretryStrategy(ServiceJobRetryStrategy).- Parameters:
retryStrategy- a consumer that will call methods onServiceJobRetryStrategy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
retryStrategy(ServiceJobRetryStrategy)
-
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, specifySAGEMAKER_TRAINING.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ServiceJobType,ServiceJobType
-
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, specifySAGEMAKER_TRAINING.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ServiceJobType,ServiceJobType
-
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.
-
quotaShareName
SubmitServiceJobRequest.Builder quotaShareName(String quotaShareName)
The quota share for the service job. Don't specify this parameter if the job queue doesn't have a quota share scheduling policy. If the job queue has a quota share scheduling policy, then this parameter must be specified.
- Parameters:
quotaShareName- The quota share for the service job. Don't specify this parameter if the job queue doesn't have a quota share scheduling policy. If the job queue has a quota share scheduling policy, then this parameter must be specified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
preemptionConfiguration
SubmitServiceJobRequest.Builder preemptionConfiguration(ServiceJobPreemptionConfiguration preemptionConfiguration)
Specifies the service job behavior when preempted.
- Parameters:
preemptionConfiguration- Specifies the service job behavior when preempted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
preemptionConfiguration
default SubmitServiceJobRequest.Builder preemptionConfiguration(Consumer<ServiceJobPreemptionConfiguration.Builder> preemptionConfiguration)
Specifies the service job behavior when preempted.
This is a convenience method that creates an instance of theServiceJobPreemptionConfiguration.Builderavoiding the need to create one manually viaServiceJobPreemptionConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topreemptionConfiguration(ServiceJobPreemptionConfiguration).- Parameters:
preemptionConfiguration- a consumer that will call methods onServiceJobPreemptionConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
preemptionConfiguration(ServiceJobPreemptionConfiguration)
-
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 theServiceJobTimeout.Builderavoiding the need to create one manually viaServiceJobTimeout.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totimeoutConfig(ServiceJobTimeout).- Parameters:
timeoutConfig- a consumer that will call methods onServiceJobTimeout.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
timeoutConfig(ServiceJobTimeout)
-
tags
SubmitServiceJobRequest.Builder tags(Map<String,String> 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 andclientTokens 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
SubmitServiceJobRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-