Package org.cdk8s.plus25.k8s
Class AwsElasticBlockStoreVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.AwsElasticBlockStoreVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AwsElasticBlockStoreVolumeSource>
- Enclosing interface:
- AwsElasticBlockStoreVolumeSource
@Stability(Stable) public static final class AwsElasticBlockStoreVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<AwsElasticBlockStoreVolumeSource>
A builder forAwsElasticBlockStoreVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AwsElasticBlockStoreVolumeSourcebuild()Builds the configured instance.AwsElasticBlockStoreVolumeSource.BuilderfsType(String fsType)Sets the value ofAwsElasticBlockStoreVolumeSource.getFsType()AwsElasticBlockStoreVolumeSource.Builderpartition(Number partition)Sets the value ofAwsElasticBlockStoreVolumeSource.getPartition()AwsElasticBlockStoreVolumeSource.BuilderreadOnly(Boolean readOnly)Sets the value ofAwsElasticBlockStoreVolumeSource.getReadOnly()AwsElasticBlockStoreVolumeSource.BuildervolumeId(String volumeId)Sets the value ofAwsElasticBlockStoreVolumeSource.getVolumeId()
-
-
-
Method Detail
-
volumeId
@Stability(Stable) public AwsElasticBlockStoreVolumeSource.Builder volumeId(String volumeId)
Sets the value ofAwsElasticBlockStoreVolumeSource.getVolumeId()- Parameters:
volumeId- volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). This parameter is required. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore- Returns:
this
-
fsType
@Stability(Stable) public AwsElasticBlockStoreVolumeSource.Builder fsType(String fsType)
Sets the value ofAwsElasticBlockStoreVolumeSource.getFsType()- Parameters:
fsType- fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore- Returns:
this
-
partition
@Stability(Stable) public AwsElasticBlockStoreVolumeSource.Builder partition(Number partition)
Sets the value ofAwsElasticBlockStoreVolumeSource.getPartition()- Parameters:
partition- partition is 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 AwsElasticBlockStoreVolumeSource.Builder readOnly(Boolean readOnly)
Sets the value ofAwsElasticBlockStoreVolumeSource.getReadOnly()- Parameters:
readOnly- readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore- Returns:
this
-
build
@Stability(Stable) public AwsElasticBlockStoreVolumeSource build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AwsElasticBlockStoreVolumeSource>- Returns:
- a new instance of
AwsElasticBlockStoreVolumeSource - Throws:
NullPointerException- if any required attribute was not provided
-
-