Class CfnVolumeProps.Builder
java.lang.Object
software.amazon.awscdk.services.storagegateway.CfnVolumeProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVolumeProps>
- Enclosing interface:
CfnVolumeProps
@Stability(Stable)
public static final class CfnVolumeProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVolumeProps>
A builder for
CfnVolumeProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.gatewayArn(String gatewayArn) Sets the value ofCfnVolumeProps.getGatewayArn()kmsEncrypted(Boolean kmsEncrypted) Sets the value ofCfnVolumeProps.getKmsEncrypted()kmsEncrypted(IResolvable kmsEncrypted) Sets the value ofCfnVolumeProps.getKmsEncrypted()Sets the value ofCfnVolumeProps.getKmsKey()networkInterfaceId(String networkInterfaceId) Sets the value ofCfnVolumeProps.getNetworkInterfaceId()snapshotId(String snapshotId) Sets the value ofCfnVolumeProps.getSnapshotId()sourceVolumeArn(String sourceVolumeArn) Sets the value ofCfnVolumeProps.getSourceVolumeArn()Sets the value ofCfnVolumeProps.getTags()targetName(String targetName) Sets the value ofCfnVolumeProps.getTargetName()volumeSizeInBytes(Number volumeSizeInBytes) Sets the value ofCfnVolumeProps.getVolumeSizeInBytes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
gatewayArn
Sets the value ofCfnVolumeProps.getGatewayArn()- Parameters:
gatewayArn- The Amazon Resource Name (ARN) of the gateway on which to create the volume. This parameter is required.- Returns:
this
-
networkInterfaceId
Sets the value ofCfnVolumeProps.getNetworkInterfaceId()- Parameters:
networkInterfaceId- The network interface of the gateway on which to expose the iSCSI target. This parameter is required. Only IPv4 addresses are accepted.- Returns:
this
-
targetName
Sets the value ofCfnVolumeProps.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. This parameter is required.- Returns:
this
-
volumeSizeInBytes
Sets the value ofCfnVolumeProps.getVolumeSizeInBytes()- Parameters:
volumeSizeInBytes- The size of the volume in bytes. This parameter is required.- Returns:
this
-
kmsEncrypted
Sets the value ofCfnVolumeProps.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 ofCfnVolumeProps.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 ofCfnVolumeProps.getKmsKey()- Parameters:
kmsKey- The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption.- Returns:
this
-
snapshotId
Sets the value ofCfnVolumeProps.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 ofCfnVolumeProps.getSourceVolumeArn()- Parameters:
sourceVolumeArn- The ARN of an existing volume from which to create the new volume.- Returns:
this
-
tags
Sets the value ofCfnVolumeProps.getTags()- Parameters:
tags- A list of up to 50 tags to assign to the volume.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVolumeProps>- Returns:
- a new instance of
CfnVolumeProps - Throws:
NullPointerException- if any required attribute was not provided
-