Class CfnServiceEnvironmentMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.batch.CfnServiceEnvironmentMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceEnvironmentMixinProps>
- Enclosing interface:
CfnServiceEnvironmentMixinProps
@Stability(Stable)
public static final class CfnServiceEnvironmentMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceEnvironmentMixinProps>
A builder for
CfnServiceEnvironmentMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.capacityLimits(List<? extends Object> capacityLimits) Sets the value ofCfnServiceEnvironmentMixinProps.getCapacityLimits()capacityLimits(IResolvable capacityLimits) Sets the value ofCfnServiceEnvironmentMixinProps.getCapacityLimits()serviceEnvironmentName(String serviceEnvironmentName) Sets the value ofCfnServiceEnvironmentMixinProps.getServiceEnvironmentName()serviceEnvironmentType(String serviceEnvironmentType) Sets the value ofCfnServiceEnvironmentMixinProps.getServiceEnvironmentType()Sets the value ofCfnServiceEnvironmentMixinProps.getState()Sets the value ofCfnServiceEnvironmentMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
capacityLimits
@Stability(Stable) public CfnServiceEnvironmentMixinProps.Builder capacityLimits(IResolvable capacityLimits) Sets the value ofCfnServiceEnvironmentMixinProps.getCapacityLimits()- Parameters:
capacityLimits- The capacity limits for the service environment. This defines the maximum resources that can be used by service jobs in this environment.- Returns:
this
-
capacityLimits
@Stability(Stable) public CfnServiceEnvironmentMixinProps.Builder capacityLimits(List<? extends Object> capacityLimits) Sets the value ofCfnServiceEnvironmentMixinProps.getCapacityLimits()- Parameters:
capacityLimits- The capacity limits for the service environment. This defines the maximum resources that can be used by service jobs in this environment.- Returns:
this
-
serviceEnvironmentName
@Stability(Stable) public CfnServiceEnvironmentMixinProps.Builder serviceEnvironmentName(String serviceEnvironmentName) Sets the value ofCfnServiceEnvironmentMixinProps.getServiceEnvironmentName()- Parameters:
serviceEnvironmentName- The name of the service environment.- Returns:
this
-
serviceEnvironmentType
@Stability(Stable) public CfnServiceEnvironmentMixinProps.Builder serviceEnvironmentType(String serviceEnvironmentType) Sets the value ofCfnServiceEnvironmentMixinProps.getServiceEnvironmentType()- Parameters:
serviceEnvironmentType- The type of service environment. For SageMaker Training jobs, this value isSAGEMAKER_TRAINING.- Returns:
this
-
state
Sets the value ofCfnServiceEnvironmentMixinProps.getState()- Parameters:
state- The state of the service environment. Valid values areENABLEDandDISABLED.- Returns:
this
-
tags
Sets the value ofCfnServiceEnvironmentMixinProps.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnServiceEnvironmentMixinProps>- Returns:
- a new instance of
CfnServiceEnvironmentMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-