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