Class CfnComputeEnvironmentPropsMixin.InstanceRequirementsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.batch.CfnComputeEnvironmentPropsMixin.InstanceRequirementsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComputeEnvironmentPropsMixin.InstanceRequirementsProperty>
- Enclosing interface:
CfnComputeEnvironmentPropsMixin.InstanceRequirementsProperty
@Stability(Stable)
public static final class CfnComputeEnvironmentPropsMixin.InstanceRequirementsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComputeEnvironmentPropsMixin.InstanceRequirementsProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedInstanceTypes(List<String> allowedInstanceTypes) build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowedInstanceTypes
@Stability(Stable) public CfnComputeEnvironmentPropsMixin.InstanceRequirementsProperty.Builder allowedInstanceTypes(List<String> allowedInstanceTypes) Sets the value ofCfnComputeEnvironmentPropsMixin.InstanceRequirementsProperty.getAllowedInstanceTypes()- Parameters:
allowedInstanceTypes- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnComputeEnvironmentPropsMixin.InstanceRequirementsProperty>- Returns:
- a new instance of
CfnComputeEnvironmentPropsMixin.InstanceRequirementsProperty - Throws:
NullPointerException- if any required attribute was not provided
-