Interface CreateServiceEnvironmentRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,BatchRequest.Builder
,Buildable
,CopyableBuilder<CreateServiceEnvironmentRequest.Builder,
,CreateServiceEnvironmentRequest> SdkBuilder<CreateServiceEnvironmentRequest.Builder,
,CreateServiceEnvironmentRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateServiceEnvironmentRequest
-
Method Summary
Modifier and TypeMethodDescriptioncapacityLimits
(Collection<CapacityLimit> capacityLimits) The capacity limits for the service environment.capacityLimits
(Consumer<CapacityLimit.Builder>... capacityLimits) The capacity limits for the service environment.capacityLimits
(CapacityLimit... capacityLimits) The capacity limits for the service environment.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.serviceEnvironmentName
(String serviceEnvironmentName) The name for the service environment.serviceEnvironmentType
(String serviceEnvironmentType) The type of service environment.serviceEnvironmentType
(ServiceEnvironmentType serviceEnvironmentType) The type of service environment.The state of the service environment.state
(ServiceEnvironmentState state) The state of the service environment.The tags that you apply to the service environment to help you categorize and organize your resources.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 Details
-
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
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
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:
-
state
The state of the service environment. Valid values are
ENABLED
andDISABLED
. The default value isENABLED
.- Parameters:
state
- The state of the service environment. Valid values areENABLED
andDISABLED
. The default value isENABLED
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The state of the service environment. Valid values are
ENABLED
andDISABLED
. The default value isENABLED
.- Parameters:
state
- The state of the service environment. Valid values areENABLED
andDISABLED
. The default value isENABLED
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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.Builder
avoiding the need to create one manually viaCapacityLimit.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocapacityLimits(List<CapacityLimit>)
.- 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:
-
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) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateServiceEnvironmentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-