Class CfnServiceEnvironmentProps.Builder
java.lang.Object
software.amazon.awscdk.services.batch.CfnServiceEnvironmentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceEnvironmentProps>
- Enclosing interface:
CfnServiceEnvironmentProps
@Stability(Stable)
public static final class CfnServiceEnvironmentProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceEnvironmentProps>
A builder for
CfnServiceEnvironmentProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.capacityLimits
(List<? extends Object> capacityLimits) Sets the value ofCfnServiceEnvironmentProps.getCapacityLimits()
capacityLimits
(IResolvable capacityLimits) Sets the value ofCfnServiceEnvironmentProps.getCapacityLimits()
serviceEnvironmentName
(String serviceEnvironmentName) Sets the value ofCfnServiceEnvironmentProps.getServiceEnvironmentName()
serviceEnvironmentType
(String serviceEnvironmentType) Sets the value ofCfnServiceEnvironmentProps.getServiceEnvironmentType()
Sets the value ofCfnServiceEnvironmentProps.getState()
Sets the value ofCfnServiceEnvironmentProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
capacityLimits
@Stability(Stable) public CfnServiceEnvironmentProps.Builder capacityLimits(IResolvable capacityLimits) Sets the value ofCfnServiceEnvironmentProps.getCapacityLimits()
- Parameters:
capacityLimits
- The capacity limits for the service environment. This parameter is required. This defines the maximum resources that can be used by service jobs in this environment.- Returns:
this
-
capacityLimits
@Stability(Stable) public CfnServiceEnvironmentProps.Builder capacityLimits(List<? extends Object> capacityLimits) Sets the value ofCfnServiceEnvironmentProps.getCapacityLimits()
- Parameters:
capacityLimits
- The capacity limits for the service environment. This parameter is required. This defines the maximum resources that can be used by service jobs in this environment.- Returns:
this
-
serviceEnvironmentType
@Stability(Stable) public CfnServiceEnvironmentProps.Builder serviceEnvironmentType(String serviceEnvironmentType) Sets the value ofCfnServiceEnvironmentProps.getServiceEnvironmentType()
- Parameters:
serviceEnvironmentType
- The type of service environment. This parameter is required. For SageMaker Training jobs, this value isSAGEMAKER_TRAINING
.- Returns:
this
-
serviceEnvironmentName
@Stability(Stable) public CfnServiceEnvironmentProps.Builder serviceEnvironmentName(String serviceEnvironmentName) Sets the value ofCfnServiceEnvironmentProps.getServiceEnvironmentName()
- Parameters:
serviceEnvironmentName
- The name of the service environment.- Returns:
this
-
state
Sets the value ofCfnServiceEnvironmentProps.getState()
- Parameters:
state
- The state of the service environment. Valid values areENABLED
andDISABLED
.- Returns:
this
-
tags
Sets the value ofCfnServiceEnvironmentProps.getTags()
- Parameters:
tags
- The tags associated with the service environment. Each tag consists of a key and an optional value. For more information, see Tagging your AWS Batch resources .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnServiceEnvironmentProps>
- Returns:
- a new instance of
CfnServiceEnvironmentProps
- Throws:
NullPointerException
- if any required attribute was not provided
-