Class ServiceManagedVolumeProps.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.ServiceManagedVolumeProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ServiceManagedVolumeProps>
- Enclosing interface:
ServiceManagedVolumeProps
@Stability(Stable)
public static final class ServiceManagedVolumeProps.Builder
extends Object
implements software.amazon.jsii.Builder<ServiceManagedVolumeProps>
A builder for
ServiceManagedVolumeProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.managedEbsVolume
(ServiceManagedEBSVolumeConfiguration managedEbsVolume) Sets the value ofinvalid @link
ServiceManagedVolumeProps#getManagedEbsVolume
Sets the value ofServiceManagedVolumeProps.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofServiceManagedVolumeProps.getName()
- Parameters:
name
- The name of the volume. This parameter is required. This corresponds to the name provided in the ECS TaskDefinition.- Returns:
this
-
managedEbsVolume
@Stability(Stable) public ServiceManagedVolumeProps.Builder managedEbsVolume(ServiceManagedEBSVolumeConfiguration managedEbsVolume) Sets the value ofinvalid @link
ServiceManagedVolumeProps#getManagedEbsVolume
- Parameters:
managedEbsVolume
- Configuration for an Amazon Elastic Block Store (EBS) volume managed by ECS.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ServiceManagedVolumeProps>
- Returns:
- a new instance of
ServiceManagedVolumeProps
- Throws:
NullPointerException
- if any required attribute was not provided
-