@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateStorediSCSIVolumeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
A JSON object containing one or more of the following fields:
NOOP
Constructor and Description |
---|
CreateStorediSCSIVolumeRequest() |
Modifier and Type | Method and Description |
---|---|
CreateStorediSCSIVolumeRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDiskId()
The unique identifier for the gateway local disk that is configured as a stored volume.
|
String |
getGatewayARN() |
Boolean |
getKMSEncrypted()
True to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by Amazon
S3.
|
String |
getKMSKey()
The Amazon Resource Name (ARN) of the KMS key used for Amazon S3 server side encryption.
|
String |
getNetworkInterfaceId()
The network interface of the gateway on which to expose the iSCSI target.
|
Boolean |
getPreserveExistingData()
Specify this field as true if you want to preserve the data on the local disk.
|
String |
getSnapshotId()
The snapshot ID (e.g.
|
List<Tag> |
getTags()
A list of up to 50 tags that can be assigned to a stored volume.
|
String |
getTargetName()
The name of the iSCSI target used by an initiator to connect to a volume and used as a suffix for the target ARN.
|
int |
hashCode() |
Boolean |
isKMSEncrypted()
True to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by Amazon
S3.
|
Boolean |
isPreserveExistingData()
Specify this field as true if you want to preserve the data on the local disk.
|
void |
setDiskId(String diskId)
The unique identifier for the gateway local disk that is configured as a stored volume.
|
void |
setGatewayARN(String gatewayARN) |
void |
setKMSEncrypted(Boolean kMSEncrypted)
True to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by Amazon
S3.
|
void |
setKMSKey(String kMSKey)
The Amazon Resource Name (ARN) of the KMS key used for Amazon S3 server side encryption.
|
void |
setNetworkInterfaceId(String networkInterfaceId)
The network interface of the gateway on which to expose the iSCSI target.
|
void |
setPreserveExistingData(Boolean preserveExistingData)
Specify this field as true if you want to preserve the data on the local disk.
|
void |
setSnapshotId(String snapshotId)
The snapshot ID (e.g.
|
void |
setTags(Collection<Tag> tags)
A list of up to 50 tags that can be assigned to a stored volume.
|
void |
setTargetName(String 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.
|
String |
toString()
Returns a string representation of this object.
|
CreateStorediSCSIVolumeRequest |
withDiskId(String diskId)
The unique identifier for the gateway local disk that is configured as a stored volume.
|
CreateStorediSCSIVolumeRequest |
withGatewayARN(String gatewayARN) |
CreateStorediSCSIVolumeRequest |
withKMSEncrypted(Boolean kMSEncrypted)
True to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by Amazon
S3.
|
CreateStorediSCSIVolumeRequest |
withKMSKey(String kMSKey)
The Amazon Resource Name (ARN) of the KMS key used for Amazon S3 server side encryption.
|
CreateStorediSCSIVolumeRequest |
withNetworkInterfaceId(String networkInterfaceId)
The network interface of the gateway on which to expose the iSCSI target.
|
CreateStorediSCSIVolumeRequest |
withPreserveExistingData(Boolean preserveExistingData)
Specify this field as true if you want to preserve the data on the local disk.
|
CreateStorediSCSIVolumeRequest |
withSnapshotId(String snapshotId)
The snapshot ID (e.g.
|
CreateStorediSCSIVolumeRequest |
withTags(Collection<Tag> tags)
A list of up to 50 tags that can be assigned to a stored volume.
|
CreateStorediSCSIVolumeRequest |
withTags(Tag... tags)
A list of up to 50 tags that can be assigned to a stored volume.
|
CreateStorediSCSIVolumeRequest |
withTargetName(String 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.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setGatewayARN(String gatewayARN)
gatewayARN
- public String getGatewayARN()
public CreateStorediSCSIVolumeRequest withGatewayARN(String gatewayARN)
gatewayARN
- public void setDiskId(String diskId)
The unique identifier for the gateway local disk that is configured as a stored volume. Use ListLocalDisks to list disk IDs for a gateway.
diskId
- The unique identifier for the gateway local disk that is configured as a stored volume. Use ListLocalDisks to list disk IDs for a gateway.public String getDiskId()
The unique identifier for the gateway local disk that is configured as a stored volume. Use ListLocalDisks to list disk IDs for a gateway.
public CreateStorediSCSIVolumeRequest withDiskId(String diskId)
The unique identifier for the gateway local disk that is configured as a stored volume. Use ListLocalDisks to list disk IDs for a gateway.
diskId
- The unique identifier for the gateway local disk that is configured as a stored volume. Use ListLocalDisks to list disk IDs for a gateway.public void setSnapshotId(String snapshotId)
The snapshot ID (e.g. "snap-1122aabb") of the snapshot to restore as the new stored volume. Specify this field if you want to create the iSCSI storage volume from a snapshot otherwise do not include this field. To list snapshots for your account use DescribeSnapshots in the Amazon Elastic Compute Cloud API Reference.
snapshotId
- The snapshot ID (e.g. "snap-1122aabb") of the snapshot to restore as the new stored volume. Specify this
field if you want to create the iSCSI storage volume from a snapshot otherwise do not include this field.
To list snapshots for your account use DescribeSnapshots in the Amazon Elastic Compute Cloud API Reference.public String getSnapshotId()
The snapshot ID (e.g. "snap-1122aabb") of the snapshot to restore as the new stored volume. Specify this field if you want to create the iSCSI storage volume from a snapshot otherwise do not include this field. To list snapshots for your account use DescribeSnapshots in the Amazon Elastic Compute Cloud API Reference.
public CreateStorediSCSIVolumeRequest withSnapshotId(String snapshotId)
The snapshot ID (e.g. "snap-1122aabb") of the snapshot to restore as the new stored volume. Specify this field if you want to create the iSCSI storage volume from a snapshot otherwise do not include this field. To list snapshots for your account use DescribeSnapshots in the Amazon Elastic Compute Cloud API Reference.
snapshotId
- The snapshot ID (e.g. "snap-1122aabb") of the snapshot to restore as the new stored volume. Specify this
field if you want to create the iSCSI storage volume from a snapshot otherwise do not include this field.
To list snapshots for your account use DescribeSnapshots in the Amazon Elastic Compute Cloud API Reference.public void setPreserveExistingData(Boolean preserveExistingData)
Specify this field as true if you want to preserve the data on the local disk. Otherwise, specifying this field as false creates an empty volume.
Valid Values: true, false
preserveExistingData
- Specify this field as true if you want to preserve the data on the local disk. Otherwise, specifying this
field as false creates an empty volume.
Valid Values: true, false
public Boolean getPreserveExistingData()
Specify this field as true if you want to preserve the data on the local disk. Otherwise, specifying this field as false creates an empty volume.
Valid Values: true, false
Valid Values: true, false
public CreateStorediSCSIVolumeRequest withPreserveExistingData(Boolean preserveExistingData)
Specify this field as true if you want to preserve the data on the local disk. Otherwise, specifying this field as false creates an empty volume.
Valid Values: true, false
preserveExistingData
- Specify this field as true if you want to preserve the data on the local disk. Otherwise, specifying this
field as false creates an empty volume.
Valid Values: true, false
public Boolean isPreserveExistingData()
Specify this field as true if you want to preserve the data on the local disk. Otherwise, specifying this field as false creates an empty volume.
Valid Values: true, false
Valid Values: true, false
public void setTargetName(String 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.
For example, specifying TargetName
as myvolume results in the target ARN of
arn:aws:storagegateway:us-east-2:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume
. The target name must be unique across all volumes on a gateway.
If you don't specify a value, Storage Gateway uses the value that was previously used for this volume as the new target name.
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. For example, specifying TargetName
as myvolume results in the target ARN
of
arn:aws:storagegateway:us-east-2:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume
. The target name must be unique across all volumes on a gateway.
If you don't specify a value, Storage Gateway uses the value that was previously used for this volume as the new target name.
public String getTargetName()
The name of the iSCSI target used by an initiator to connect to a volume and used as a suffix for the target ARN.
For example, specifying TargetName
as myvolume results in the target ARN of
arn:aws:storagegateway:us-east-2:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume
. The target name must be unique across all volumes on a gateway.
If you don't specify a value, Storage Gateway uses the value that was previously used for this volume as the new target name.
TargetName
as myvolume results in the target ARN
of
arn:aws:storagegateway:us-east-2:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume
. The target name must be unique across all volumes on a gateway.
If you don't specify a value, Storage Gateway uses the value that was previously used for this volume as the new target name.
public CreateStorediSCSIVolumeRequest withTargetName(String 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.
For example, specifying TargetName
as myvolume results in the target ARN of
arn:aws:storagegateway:us-east-2:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume
. The target name must be unique across all volumes on a gateway.
If you don't specify a value, Storage Gateway uses the value that was previously used for this volume as the new target name.
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. For example, specifying TargetName
as myvolume results in the target ARN
of
arn:aws:storagegateway:us-east-2:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume
. The target name must be unique across all volumes on a gateway.
If you don't specify a value, Storage Gateway uses the value that was previously used for this volume as the new target name.
public void setNetworkInterfaceId(String networkInterfaceId)
The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted. Use DescribeGatewayInformation to get a list of the network interfaces available on a gateway.
Valid Values: A valid IP address.
networkInterfaceId
- The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are
accepted. Use DescribeGatewayInformation to get a list of the network interfaces available on a
gateway.
Valid Values: A valid IP address.
public String getNetworkInterfaceId()
The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted. Use DescribeGatewayInformation to get a list of the network interfaces available on a gateway.
Valid Values: A valid IP address.
Valid Values: A valid IP address.
public CreateStorediSCSIVolumeRequest withNetworkInterfaceId(String networkInterfaceId)
The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted. Use DescribeGatewayInformation to get a list of the network interfaces available on a gateway.
Valid Values: A valid IP address.
networkInterfaceId
- The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are
accepted. Use DescribeGatewayInformation to get a list of the network interfaces available on a
gateway.
Valid Values: A valid IP address.
public void setKMSEncrypted(Boolean kMSEncrypted)
True to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by Amazon S3. Optional.
kMSEncrypted
- True to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by
Amazon S3. Optional.public Boolean getKMSEncrypted()
True to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by Amazon S3. Optional.
public CreateStorediSCSIVolumeRequest withKMSEncrypted(Boolean kMSEncrypted)
True to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by Amazon S3. Optional.
kMSEncrypted
- True to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by
Amazon S3. Optional.public Boolean isKMSEncrypted()
True to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by Amazon S3. Optional.
public void setKMSKey(String kMSKey)
The Amazon Resource Name (ARN) of the KMS key used for Amazon S3 server side encryption. This value can only be set when KMSEncrypted is true. Optional.
kMSKey
- The Amazon Resource Name (ARN) of the KMS key used for Amazon S3 server side encryption. This value can
only be set when KMSEncrypted is true. Optional.public String getKMSKey()
The Amazon Resource Name (ARN) of the KMS key used for Amazon S3 server side encryption. This value can only be set when KMSEncrypted is true. Optional.
public CreateStorediSCSIVolumeRequest withKMSKey(String kMSKey)
The Amazon Resource Name (ARN) of the KMS key used for Amazon S3 server side encryption. This value can only be set when KMSEncrypted is true. Optional.
kMSKey
- The Amazon Resource Name (ARN) of the KMS key used for Amazon S3 server side encryption. This value can
only be set when KMSEncrypted is true. Optional.public List<Tag> getTags()
A list of up to 50 tags that can be assigned to a stored volume. Each tag is a key-value pair.
Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.
Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.
public void setTags(Collection<Tag> tags)
A list of up to 50 tags that can be assigned to a stored volume. Each tag is a key-value pair.
Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.
tags
- A list of up to 50 tags that can be assigned to a stored volume. Each tag is a key-value pair. Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.
public CreateStorediSCSIVolumeRequest withTags(Tag... tags)
A list of up to 50 tags that can be assigned to a stored volume. Each tag is a key-value pair.
Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- A list of up to 50 tags that can be assigned to a stored volume. Each tag is a key-value pair. Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.
public CreateStorediSCSIVolumeRequest withTags(Collection<Tag> tags)
A list of up to 50 tags that can be assigned to a stored volume. Each tag is a key-value pair.
Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.
tags
- A list of up to 50 tags that can be assigned to a stored volume. Each tag is a key-value pair. Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.
public String toString()
toString
in class Object
Object.toString()
public CreateStorediSCSIVolumeRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.