Class CreateStorediSCSIVolumeRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.storagegateway.model.CreateStorediSCSIVolumeRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class CreateStorediSCSIVolumeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
A JSON object containing one or more of the following fields:
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateStorediSCSIVolumeRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateStorediSCSIVolumeRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetDiskId()The unique identifier for the gateway local disk that is configured as a stored volume.StringgetGatewayARN()StringgetNetworkInterfaceId()The network interface of the gateway on which to expose the iSCSI target.BooleangetPreserveExistingData()Specify this field as true if you want to preserve the data on the local disk.StringgetSnapshotId()The snapshot ID (e.g.StringgetTargetName()The name of the iSCSI target used by initiators to connect to the target and as a suffix for the target ARN.inthashCode()BooleanisPreserveExistingData()Specify this field as true if you want to preserve the data on the local disk.voidsetDiskId(String diskId)The unique identifier for the gateway local disk that is configured as a stored volume.voidsetGatewayARN(String gatewayARN)voidsetNetworkInterfaceId(String networkInterfaceId)The network interface of the gateway on which to expose the iSCSI target.voidsetPreserveExistingData(Boolean preserveExistingData)Specify this field as true if you want to preserve the data on the local disk.voidsetSnapshotId(String snapshotId)The snapshot ID (e.g.voidsetTargetName(String targetName)The name of the iSCSI target used by initiators to connect to the target and as a suffix for the target ARN.StringtoString()Returns a string representation of this object; useful for testing and debugging.CreateStorediSCSIVolumeRequestwithDiskId(String diskId)The unique identifier for the gateway local disk that is configured as a stored volume.CreateStorediSCSIVolumeRequestwithGatewayARN(String gatewayARN)CreateStorediSCSIVolumeRequestwithNetworkInterfaceId(String networkInterfaceId)The network interface of the gateway on which to expose the iSCSI target.CreateStorediSCSIVolumeRequestwithPreserveExistingData(Boolean preserveExistingData)Specify this field as true if you want to preserve the data on the local disk.CreateStorediSCSIVolumeRequestwithSnapshotId(String snapshotId)The snapshot ID (e.g.CreateStorediSCSIVolumeRequestwithTargetName(String targetName)The name of the iSCSI target used by initiators to connect to the target and as a suffix for the target ARN.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setGatewayARN
public void setGatewayARN(String gatewayARN)
- Parameters:
gatewayARN-
-
getGatewayARN
public String getGatewayARN()
- Returns:
-
withGatewayARN
public CreateStorediSCSIVolumeRequest withGatewayARN(String gatewayARN)
- Parameters:
gatewayARN-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDiskId
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.
- Parameters:
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.
-
getDiskId
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.
- Returns:
- The unique identifier for the gateway local disk that is configured as a stored volume. Use ListLocalDisks to list disk IDs for a gateway.
-
withDiskId
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSnapshotId
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.
- Parameters:
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.
-
getSnapshotId
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.
- Returns:
- 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.
-
withSnapshotId
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPreserveExistingData
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
- Parameters:
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
-
getPreserveExistingData
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
- Returns:
- 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
-
withPreserveExistingData
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
- Parameters:
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
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isPreserveExistingData
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
- Returns:
- 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
-
setTargetName
public void setTargetName(String targetName)
The name of the iSCSI target used by initiators to connect to the target and as a suffix for the target ARN. For example, specifying
TargetNameas myvolume results in the target ARN of arn :aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/target/ iqn.1997-05.com.amazon:myvolume. The target name must be unique across all volumes of a gateway.- Parameters:
targetName- The name of the iSCSI target used by initiators to connect to the target and as a suffix for the target ARN. For example, specifyingTargetNameas myvolume results in the target ARN of arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12 A3456B/target/iqn.1997-05.com.amazon:myvolume. The target name must be unique across all volumes of a gateway.
-
getTargetName
public String getTargetName()
The name of the iSCSI target used by initiators to connect to the target and as a suffix for the target ARN. For example, specifying
TargetNameas myvolume results in the target ARN of arn :aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/target/ iqn.1997-05.com.amazon:myvolume. The target name must be unique across all volumes of a gateway.- Returns:
- The name of the iSCSI target used by initiators to connect to the
target and as a suffix for the target ARN. For example,
specifying
TargetNameas myvolume results in the target ARN of arn:aws:storagegateway:us-east-1:111122223333:gateway /sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume. The target name must be unique across all volumes of a gateway.
-
withTargetName
public CreateStorediSCSIVolumeRequest withTargetName(String targetName)
The name of the iSCSI target used by initiators to connect to the target and as a suffix for the target ARN. For example, specifying
TargetNameas myvolume results in the target ARN of arn :aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/target/ iqn.1997-05.com.amazon:myvolume. The target name must be unique across all volumes of a gateway.- Parameters:
targetName- The name of the iSCSI target used by initiators to connect to the target and as a suffix for the target ARN. For example, specifyingTargetNameas myvolume results in the target ARN of arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12 A3456B/target/iqn.1997-05.com.amazon:myvolume. The target name must be unique across all volumes of a gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNetworkInterfaceId
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.
- Parameters:
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.
-
getNetworkInterfaceId
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.
- Returns:
- 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.
-
withNetworkInterfaceId
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateStorediSCSIVolumeRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-