Class CfnServicePropsMixin.ServiceVolumeConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnServicePropsMixin.ServiceVolumeConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServicePropsMixin.ServiceVolumeConfigurationProperty>
- Enclosing interface:
CfnServicePropsMixin.ServiceVolumeConfigurationProperty
@Stability(Stable)
public static final class CfnServicePropsMixin.ServiceVolumeConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServicePropsMixin.ServiceVolumeConfigurationProperty>
A builder for
CfnServicePropsMixin.ServiceVolumeConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.managedEbsVolume(CfnServicePropsMixin.ServiceManagedEBSVolumeConfigurationProperty managedEbsVolume) managedEbsVolume(IResolvable managedEbsVolume) Sets the value ofCfnServicePropsMixin.ServiceVolumeConfigurationProperty.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
managedEbsVolume
@Stability(Stable) public CfnServicePropsMixin.ServiceVolumeConfigurationProperty.Builder managedEbsVolume(IResolvable managedEbsVolume) - Parameters:
managedEbsVolume- The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. These settings are used to create each Amazon EBS volume, with one volume created for each task in the service. The Amazon EBS volumes are visible in your account in the Amazon EC2 console once they are created.- Returns:
this
-
managedEbsVolume
@Stability(Stable) public CfnServicePropsMixin.ServiceVolumeConfigurationProperty.Builder managedEbsVolume(CfnServicePropsMixin.ServiceManagedEBSVolumeConfigurationProperty managedEbsVolume) - Parameters:
managedEbsVolume- The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. These settings are used to create each Amazon EBS volume, with one volume created for each task in the service. The Amazon EBS volumes are visible in your account in the Amazon EC2 console once they are created.- Returns:
this
-
name
@Stability(Stable) public CfnServicePropsMixin.ServiceVolumeConfigurationProperty.Builder name(String name) Sets the value ofCfnServicePropsMixin.ServiceVolumeConfigurationProperty.getName()- Parameters:
name- The name of the volume. This value must match the volume name from theVolumeobject in the task definition.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServicePropsMixin.ServiceVolumeConfigurationProperty>- Returns:
- a new instance of
CfnServicePropsMixin.ServiceVolumeConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-