Class CfnService.ServiceManagedEBSVolumeConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnService.ServiceManagedEBSVolumeConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.ServiceManagedEBSVolumeConfigurationProperty>
- Enclosing interface:
CfnService.ServiceManagedEBSVolumeConfigurationProperty
@Stability(Stable)
public static final class CfnService.ServiceManagedEBSVolumeConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.ServiceManagedEBSVolumeConfigurationProperty>
A builder for
CfnService.ServiceManagedEBSVolumeConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnService.ServiceManagedEBSVolumeConfigurationProperty.getEncrypted()encrypted(IResolvable encrypted) Sets the value ofCfnService.ServiceManagedEBSVolumeConfigurationProperty.getEncrypted()filesystemType(String filesystemType) Sets the value ofCfnService.ServiceManagedEBSVolumeConfigurationProperty.getIops()Sets the value ofCfnService.ServiceManagedEBSVolumeConfigurationProperty.getKmsKeyId()Sets the value ofCfnService.ServiceManagedEBSVolumeConfigurationProperty.getRoleArn()Sets the value ofCfnService.ServiceManagedEBSVolumeConfigurationProperty.getSizeInGiB()snapshotId(String snapshotId) Sets the value ofCfnService.ServiceManagedEBSVolumeConfigurationProperty.getSnapshotId()tagSpecifications(List<? extends Object> tagSpecifications) tagSpecifications(IResolvable tagSpecifications) throughput(Number throughput) Sets the value ofCfnService.ServiceManagedEBSVolumeConfigurationProperty.getThroughput()volumeType(String volumeType) Sets the value ofCfnService.ServiceManagedEBSVolumeConfigurationProperty.getVolumeType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
roleArn
@Stability(Stable) public CfnService.ServiceManagedEBSVolumeConfigurationProperty.Builder roleArn(String roleArn) Sets the value ofCfnService.ServiceManagedEBSVolumeConfigurationProperty.getRoleArn()- Parameters:
roleArn- the value to be set. This parameter is required.- Returns:
this
-
encrypted
@Stability(Stable) public CfnService.ServiceManagedEBSVolumeConfigurationProperty.Builder encrypted(Boolean encrypted) Sets the value ofCfnService.ServiceManagedEBSVolumeConfigurationProperty.getEncrypted()- Parameters:
encrypted- the value to be set.- Returns:
this
-
encrypted
@Stability(Stable) public CfnService.ServiceManagedEBSVolumeConfigurationProperty.Builder encrypted(IResolvable encrypted) Sets the value ofCfnService.ServiceManagedEBSVolumeConfigurationProperty.getEncrypted()- Parameters:
encrypted- the value to be set.- Returns:
this
-
filesystemType
@Stability(Stable) public CfnService.ServiceManagedEBSVolumeConfigurationProperty.Builder filesystemType(String filesystemType) - Parameters:
filesystemType- the value to be set.- Returns:
this
-
iops
@Stability(Stable) public CfnService.ServiceManagedEBSVolumeConfigurationProperty.Builder iops(Number iops) Sets the value ofCfnService.ServiceManagedEBSVolumeConfigurationProperty.getIops()- Parameters:
iops- the value to be set.- Returns:
this
-
kmsKeyId
@Stability(Stable) public CfnService.ServiceManagedEBSVolumeConfigurationProperty.Builder kmsKeyId(String kmsKeyId) Sets the value ofCfnService.ServiceManagedEBSVolumeConfigurationProperty.getKmsKeyId()- Parameters:
kmsKeyId- the value to be set.- Returns:
this
-
sizeInGiB
@Stability(Stable) public CfnService.ServiceManagedEBSVolumeConfigurationProperty.Builder sizeInGiB(Number sizeInGiB) Sets the value ofCfnService.ServiceManagedEBSVolumeConfigurationProperty.getSizeInGiB()- Parameters:
sizeInGiB- the value to be set.- Returns:
this
-
snapshotId
@Stability(Stable) public CfnService.ServiceManagedEBSVolumeConfigurationProperty.Builder snapshotId(String snapshotId) Sets the value ofCfnService.ServiceManagedEBSVolumeConfigurationProperty.getSnapshotId()- Parameters:
snapshotId- the value to be set.- Returns:
this
-
tagSpecifications
@Stability(Stable) public CfnService.ServiceManagedEBSVolumeConfigurationProperty.Builder tagSpecifications(IResolvable tagSpecifications) - Parameters:
tagSpecifications- the value to be set.- Returns:
this
-
tagSpecifications
@Stability(Stable) public CfnService.ServiceManagedEBSVolumeConfigurationProperty.Builder tagSpecifications(List<? extends Object> tagSpecifications) - Parameters:
tagSpecifications- the value to be set.- Returns:
this
-
throughput
@Stability(Stable) public CfnService.ServiceManagedEBSVolumeConfigurationProperty.Builder throughput(Number throughput) Sets the value ofCfnService.ServiceManagedEBSVolumeConfigurationProperty.getThroughput()- Parameters:
throughput- the value to be set.- Returns:
this
-
volumeType
@Stability(Stable) public CfnService.ServiceManagedEBSVolumeConfigurationProperty.Builder volumeType(String volumeType) Sets the value ofCfnService.ServiceManagedEBSVolumeConfigurationProperty.getVolumeType()- Parameters:
volumeType- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnService.ServiceManagedEBSVolumeConfigurationProperty>- Returns:
- a new instance of
CfnService.ServiceManagedEBSVolumeConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-