Class CfnVolumeMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.storagegateway.CfnVolumeMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVolumeMixinProps>
- Enclosing interface:
CfnVolumeMixinProps
@Stability(Stable)
public static final class CfnVolumeMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVolumeMixinProps>
A builder for
CfnVolumeMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.gatewayArn(String gatewayArn) Sets the value ofCfnVolumeMixinProps.getGatewayArn()kmsEncrypted(Boolean kmsEncrypted) Sets the value ofCfnVolumeMixinProps.getKmsEncrypted()kmsEncrypted(IResolvable kmsEncrypted) Sets the value ofCfnVolumeMixinProps.getKmsEncrypted()Sets the value ofCfnVolumeMixinProps.getKmsKey()networkInterfaceId(String networkInterfaceId) Sets the value ofCfnVolumeMixinProps.getNetworkInterfaceId()snapshotId(String snapshotId) Sets the value ofCfnVolumeMixinProps.getSnapshotId()sourceVolumeArn(String sourceVolumeArn) Sets the value ofCfnVolumeMixinProps.getSourceVolumeArn()Sets the value ofCfnVolumeMixinProps.getTags()targetName(String targetName) Sets the value ofCfnVolumeMixinProps.getTargetName()volumeSizeInBytes(Number volumeSizeInBytes) Sets the value ofCfnVolumeMixinProps.getVolumeSizeInBytes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
gatewayArn
Sets the value ofCfnVolumeMixinProps.getGatewayArn()- Parameters:
gatewayArn- The Amazon Resource Name (ARN) of the gateway on which to create the volume.- Returns:
this
-
kmsEncrypted
Sets the value ofCfnVolumeMixinProps.getKmsEncrypted()- Parameters:
kmsEncrypted- Set to true to use Amazon S3 server-side encryption with your own KMS key, or false to use a key managed by Amazon S3.- Returns:
this
-
kmsEncrypted
Sets the value ofCfnVolumeMixinProps.getKmsEncrypted()- Parameters:
kmsEncrypted- Set to true to use Amazon S3 server-side encryption with your own KMS key, or false to use a key managed by Amazon S3.- Returns:
this
-
kmsKey
Sets the value ofCfnVolumeMixinProps.getKmsKey()- Parameters:
kmsKey- The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption.- Returns:
this
-
networkInterfaceId
Sets the value ofCfnVolumeMixinProps.getNetworkInterfaceId()- Parameters:
networkInterfaceId- The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted.- Returns:
this
-
snapshotId
Sets the value ofCfnVolumeMixinProps.getSnapshotId()- Parameters:
snapshotId- The snapshot ID of the snapshot to restore as the new cached volume (e.g., snap-1122aabb).- Returns:
this
-
sourceVolumeArn
Sets the value ofCfnVolumeMixinProps.getSourceVolumeArn()- Parameters:
sourceVolumeArn- The ARN of an existing volume from which to create the new volume.- Returns:
this
-
tags
Sets the value ofCfnVolumeMixinProps.getTags()- Parameters:
tags- A list of up to 50 tags to assign to the volume.- Returns:
this
-
targetName
Sets the value ofCfnVolumeMixinProps.getTargetName()- Parameters:
targetName- The name of the iSCSI target used by an initiator to connect to a volume and used as a suffix for the target ARN.- Returns:
this
-
volumeSizeInBytes
Sets the value ofCfnVolumeMixinProps.getVolumeSizeInBytes()- Parameters:
volumeSizeInBytes- The size of the volume in bytes.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVolumeMixinProps>- Returns:
- a new instance of
CfnVolumeMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-