Class CfnComputeEnvironment.InstanceLaunchTemplateProperty.Builder
java.lang.Object
software.amazon.awscdk.services.batch.CfnComputeEnvironment.InstanceLaunchTemplateProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComputeEnvironment.InstanceLaunchTemplateProperty>
- Enclosing interface:
CfnComputeEnvironment.InstanceLaunchTemplateProperty
@Stability(Stable)
public static final class CfnComputeEnvironment.InstanceLaunchTemplateProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComputeEnvironment.InstanceLaunchTemplateProperty>
A builder for
CfnComputeEnvironment.InstanceLaunchTemplateProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.capacityOptionType(String capacityOptionType) capacityReservations(IResolvable capacityReservations) capacityReservations(CfnComputeEnvironment.CapacityReservationsProperty capacityReservations) ec2InstanceProfileArn(String ec2InstanceProfileArn) fipsEnabled(Boolean fipsEnabled) Sets the value ofCfnComputeEnvironment.InstanceLaunchTemplateProperty.getFipsEnabled()fipsEnabled(IResolvable fipsEnabled) Sets the value ofCfnComputeEnvironment.InstanceLaunchTemplateProperty.getFipsEnabled()instanceMetadataTagsPropagation(Boolean instanceMetadataTagsPropagation) instanceMetadataTagsPropagation(IResolvable instanceMetadataTagsPropagation) instanceRequirements(IResolvable instanceRequirements) instanceRequirements(CfnComputeEnvironment.InstanceRequirementsProperty instanceRequirements) localStorageConfiguration(IResolvable localStorageConfiguration) localStorageConfiguration(CfnComputeEnvironment.ManagedInstancesLocalStorageConfigurationProperty localStorageConfiguration) monitoring(String monitoring) Sets the value ofCfnComputeEnvironment.InstanceLaunchTemplateProperty.getMonitoring()networkConfiguration(IResolvable networkConfiguration) networkConfiguration(CfnComputeEnvironment.ManagedInstancesNetworkConfigurationProperty networkConfiguration) storageConfiguration(IResolvable storageConfiguration) storageConfiguration(CfnComputeEnvironment.ManagedInstancesStorageConfigurationProperty storageConfiguration)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ec2InstanceProfileArn
@Stability(Stable) public CfnComputeEnvironment.InstanceLaunchTemplateProperty.Builder ec2InstanceProfileArn(String ec2InstanceProfileArn) - Parameters:
ec2InstanceProfileArn- the value to be set. This parameter is required.- Returns:
this
-
networkConfiguration
@Stability(Stable) public CfnComputeEnvironment.InstanceLaunchTemplateProperty.Builder networkConfiguration(IResolvable networkConfiguration) - Parameters:
networkConfiguration- the value to be set. This parameter is required.- Returns:
this
-
networkConfiguration
@Stability(Stable) public CfnComputeEnvironment.InstanceLaunchTemplateProperty.Builder networkConfiguration(CfnComputeEnvironment.ManagedInstancesNetworkConfigurationProperty networkConfiguration) - Parameters:
networkConfiguration- the value to be set. This parameter is required.- Returns:
this
-
capacityOptionType
@Stability(Stable) public CfnComputeEnvironment.InstanceLaunchTemplateProperty.Builder capacityOptionType(String capacityOptionType) - Parameters:
capacityOptionType- the value to be set.- Returns:
this
-
capacityReservations
@Stability(Stable) public CfnComputeEnvironment.InstanceLaunchTemplateProperty.Builder capacityReservations(IResolvable capacityReservations) - Parameters:
capacityReservations- the value to be set.- Returns:
this
-
capacityReservations
@Stability(Stable) public CfnComputeEnvironment.InstanceLaunchTemplateProperty.Builder capacityReservations(CfnComputeEnvironment.CapacityReservationsProperty capacityReservations) - Parameters:
capacityReservations- the value to be set.- Returns:
this
-
fipsEnabled
@Stability(Stable) public CfnComputeEnvironment.InstanceLaunchTemplateProperty.Builder fipsEnabled(Boolean fipsEnabled) Sets the value ofCfnComputeEnvironment.InstanceLaunchTemplateProperty.getFipsEnabled()- Parameters:
fipsEnabled- the value to be set.- Returns:
this
-
fipsEnabled
@Stability(Stable) public CfnComputeEnvironment.InstanceLaunchTemplateProperty.Builder fipsEnabled(IResolvable fipsEnabled) Sets the value ofCfnComputeEnvironment.InstanceLaunchTemplateProperty.getFipsEnabled()- Parameters:
fipsEnabled- the value to be set.- Returns:
this
-
instanceMetadataTagsPropagation
@Stability(Stable) public CfnComputeEnvironment.InstanceLaunchTemplateProperty.Builder instanceMetadataTagsPropagation(Boolean instanceMetadataTagsPropagation) Sets the value ofCfnComputeEnvironment.InstanceLaunchTemplateProperty.getInstanceMetadataTagsPropagation()- Parameters:
instanceMetadataTagsPropagation- the value to be set.- Returns:
this
-
instanceMetadataTagsPropagation
@Stability(Stable) public CfnComputeEnvironment.InstanceLaunchTemplateProperty.Builder instanceMetadataTagsPropagation(IResolvable instanceMetadataTagsPropagation) Sets the value ofCfnComputeEnvironment.InstanceLaunchTemplateProperty.getInstanceMetadataTagsPropagation()- Parameters:
instanceMetadataTagsPropagation- the value to be set.- Returns:
this
-
instanceRequirements
@Stability(Stable) public CfnComputeEnvironment.InstanceLaunchTemplateProperty.Builder instanceRequirements(IResolvable instanceRequirements) - Parameters:
instanceRequirements- the value to be set.- Returns:
this
-
instanceRequirements
@Stability(Stable) public CfnComputeEnvironment.InstanceLaunchTemplateProperty.Builder instanceRequirements(CfnComputeEnvironment.InstanceRequirementsProperty instanceRequirements) - Parameters:
instanceRequirements- the value to be set.- Returns:
this
-
localStorageConfiguration
@Stability(Stable) public CfnComputeEnvironment.InstanceLaunchTemplateProperty.Builder localStorageConfiguration(IResolvable localStorageConfiguration) Sets the value ofCfnComputeEnvironment.InstanceLaunchTemplateProperty.getLocalStorageConfiguration()- Parameters:
localStorageConfiguration- the value to be set.- Returns:
this
-
localStorageConfiguration
@Stability(Stable) public CfnComputeEnvironment.InstanceLaunchTemplateProperty.Builder localStorageConfiguration(CfnComputeEnvironment.ManagedInstancesLocalStorageConfigurationProperty localStorageConfiguration) Sets the value ofCfnComputeEnvironment.InstanceLaunchTemplateProperty.getLocalStorageConfiguration()- Parameters:
localStorageConfiguration- the value to be set.- Returns:
this
-
monitoring
@Stability(Stable) public CfnComputeEnvironment.InstanceLaunchTemplateProperty.Builder monitoring(String monitoring) Sets the value ofCfnComputeEnvironment.InstanceLaunchTemplateProperty.getMonitoring()- Parameters:
monitoring- the value to be set.- Returns:
this
-
storageConfiguration
@Stability(Stable) public CfnComputeEnvironment.InstanceLaunchTemplateProperty.Builder storageConfiguration(IResolvable storageConfiguration) - Parameters:
storageConfiguration- the value to be set.- Returns:
this
-
storageConfiguration
@Stability(Stable) public CfnComputeEnvironment.InstanceLaunchTemplateProperty.Builder storageConfiguration(CfnComputeEnvironment.ManagedInstancesStorageConfigurationProperty storageConfiguration) - Parameters:
storageConfiguration- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnComputeEnvironment.InstanceLaunchTemplateProperty>- Returns:
- a new instance of
CfnComputeEnvironment.InstanceLaunchTemplateProperty - Throws:
NullPointerException- if any required attribute was not provided
-