Interface CreateServiceEnvironmentRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,BatchRequest.Builder,Buildable,CopyableBuilder<CreateServiceEnvironmentRequest.Builder,CreateServiceEnvironmentRequest>,SdkBuilder<CreateServiceEnvironmentRequest.Builder,CreateServiceEnvironmentRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateServiceEnvironmentRequest
@Mutable @NotThreadSafe public static interface CreateServiceEnvironmentRequest.Builder extends BatchRequest.Builder, SdkPojo, CopyableBuilder<CreateServiceEnvironmentRequest.Builder,CreateServiceEnvironmentRequest>
-
-
Method Summary
-
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
-
serviceEnvironmentName
CreateServiceEnvironmentRequest.Builder serviceEnvironmentName(String serviceEnvironmentName)
The name for the service environment. It can be up to 128 characters long and can contain letters, numbers, hyphens (-), and underscores (_).
- Parameters:
serviceEnvironmentName- The name for the service environment. It can be up to 128 characters long and can contain letters, numbers, hyphens (-), and underscores (_).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceEnvironmentType
CreateServiceEnvironmentRequest.Builder serviceEnvironmentType(String serviceEnvironmentType)
The type of service environment. For SageMaker Training jobs, specify
SAGEMAKER_TRAINING.- Parameters:
serviceEnvironmentType- The type of service environment. For SageMaker Training jobs, specifySAGEMAKER_TRAINING.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ServiceEnvironmentType,ServiceEnvironmentType
-
serviceEnvironmentType
CreateServiceEnvironmentRequest.Builder serviceEnvironmentType(ServiceEnvironmentType serviceEnvironmentType)
The type of service environment. For SageMaker Training jobs, specify
SAGEMAKER_TRAINING.- Parameters:
serviceEnvironmentType- The type of service environment. For SageMaker Training jobs, specifySAGEMAKER_TRAINING.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ServiceEnvironmentType,ServiceEnvironmentType
-
state
CreateServiceEnvironmentRequest.Builder state(String state)
The state of the service environment. Valid values are
ENABLEDandDISABLED. The default value isENABLED.- Parameters:
state- The state of the service environment. Valid values areENABLEDandDISABLED. The default value isENABLED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ServiceEnvironmentState,ServiceEnvironmentState
-
state
CreateServiceEnvironmentRequest.Builder state(ServiceEnvironmentState state)
The state of the service environment. Valid values are
ENABLEDandDISABLED. The default value isENABLED.- Parameters:
state- The state of the service environment. Valid values areENABLEDandDISABLED. The default value isENABLED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ServiceEnvironmentState,ServiceEnvironmentState
-
capacityLimits
CreateServiceEnvironmentRequest.Builder capacityLimits(Collection<CapacityLimit> capacityLimits)
The capacity limits for the service environment. The number of instances a job consumes is the total number of instances requested in the submit training job request resource configuration.
- Parameters:
capacityLimits- The capacity limits for the service environment. The number of instances a job consumes is the total number of instances requested in the submit training job request resource configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityLimits
CreateServiceEnvironmentRequest.Builder capacityLimits(CapacityLimit... capacityLimits)
The capacity limits for the service environment. The number of instances a job consumes is the total number of instances requested in the submit training job request resource configuration.
- Parameters:
capacityLimits- The capacity limits for the service environment. The number of instances a job consumes is the total number of instances requested in the submit training job request resource configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityLimits
CreateServiceEnvironmentRequest.Builder capacityLimits(Consumer<CapacityLimit.Builder>... capacityLimits)
The capacity limits for the service environment. The number of instances a job consumes is the total number of instances requested in the submit training job request resource configuration.
This is a convenience method that creates an instance of theCapacityLimit.Builderavoiding the need to create one manually viaCapacityLimit.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#capacityLimits(List.) - Parameters:
capacityLimits- a consumer that will call methods onCapacityLimit.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#capacityLimits(java.util.Collection)
-
tags
CreateServiceEnvironmentRequest.Builder tags(Map<String,String> tags)
The tags that you apply to the service environment to help you categorize and organize your resources. 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 environment to help you categorize and organize your resources. 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.
-
overrideConfiguration
CreateServiceEnvironmentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateServiceEnvironmentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-