Class CfnService.ServiceVolumeConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnService.ServiceVolumeConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.ServiceVolumeConfigurationProperty>
- Enclosing interface:
CfnService.ServiceVolumeConfigurationProperty
@Stability(Stable)
public static final class CfnService.ServiceVolumeConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.ServiceVolumeConfigurationProperty>
A builder for
CfnService.ServiceVolumeConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.managedEbsVolume
(IResolvable managedEbsVolume) Sets the value ofCfnService.ServiceVolumeConfigurationProperty.getManagedEbsVolume()
managedEbsVolume
(CfnService.ServiceManagedEBSVolumeConfigurationProperty managedEbsVolume) Sets the value ofCfnService.ServiceVolumeConfigurationProperty.getManagedEbsVolume()
Sets the value ofCfnService.ServiceVolumeConfigurationProperty.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnService.ServiceVolumeConfigurationProperty.getName()
- Parameters:
name
- The name of the volume. This parameter is required. This value must match the volume name from theVolume
object in the task definition.- Returns:
this
-
managedEbsVolume
@Stability(Stable) public CfnService.ServiceVolumeConfigurationProperty.Builder managedEbsVolume(IResolvable managedEbsVolume) Sets the value ofCfnService.ServiceVolumeConfigurationProperty.getManagedEbsVolume()
- 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 CfnService.ServiceVolumeConfigurationProperty.Builder managedEbsVolume(CfnService.ServiceManagedEBSVolumeConfigurationProperty managedEbsVolume) Sets the value ofCfnService.ServiceVolumeConfigurationProperty.getManagedEbsVolume()
- 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
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnService.ServiceVolumeConfigurationProperty>
- Returns:
- a new instance of
CfnService.ServiceVolumeConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-