Package org.cdk8s.plus24
Class AwsElasticBlockStoreVolumeOptions.Builder
- java.lang.Object
-
- org.cdk8s.plus24.AwsElasticBlockStoreVolumeOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AwsElasticBlockStoreVolumeOptions>
- Enclosing interface:
- AwsElasticBlockStoreVolumeOptions
@Stability(Stable) public static final class AwsElasticBlockStoreVolumeOptions.Builder extends Object implements software.amazon.jsii.Builder<AwsElasticBlockStoreVolumeOptions>
A builder forAwsElasticBlockStoreVolumeOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AwsElasticBlockStoreVolumeOptions
build()
Builds the configured instance.AwsElasticBlockStoreVolumeOptions.Builder
fsType(String fsType)
Sets the value ofAwsElasticBlockStoreVolumeOptions.getFsType()
AwsElasticBlockStoreVolumeOptions.Builder
name(String name)
Sets the value ofAwsElasticBlockStoreVolumeOptions.getName()
AwsElasticBlockStoreVolumeOptions.Builder
partition(Number partition)
Sets the value ofAwsElasticBlockStoreVolumeOptions.getPartition()
AwsElasticBlockStoreVolumeOptions.Builder
readOnly(Boolean readOnly)
Sets the value ofAwsElasticBlockStoreVolumeOptions.getReadOnly()
-
-
-
Method Detail
-
fsType
@Stability(Stable) public AwsElasticBlockStoreVolumeOptions.Builder fsType(String fsType)
Sets the value ofAwsElasticBlockStoreVolumeOptions.getFsType()
- Parameters:
fsType
- Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system.- Returns:
this
-
name
@Stability(Stable) public AwsElasticBlockStoreVolumeOptions.Builder name(String name)
Sets the value ofAwsElasticBlockStoreVolumeOptions.getName()
- Parameters:
name
- The volume name.- Returns:
this
-
partition
@Stability(Stable) public AwsElasticBlockStoreVolumeOptions.Builder partition(Number partition)
Sets the value ofAwsElasticBlockStoreVolumeOptions.getPartition()
- Parameters:
partition
- The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).- Returns:
this
-
readOnly
@Stability(Stable) public AwsElasticBlockStoreVolumeOptions.Builder readOnly(Boolean readOnly)
Sets the value ofAwsElasticBlockStoreVolumeOptions.getReadOnly()
- Parameters:
readOnly
- Specify "true" to force and set the ReadOnly property in VolumeMounts to "true".- Returns:
this
-
build
@Stability(Stable) public AwsElasticBlockStoreVolumeOptions build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AwsElasticBlockStoreVolumeOptions>
- Returns:
- a new instance of
AwsElasticBlockStoreVolumeOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-
-