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 CreateStorediSCSIVolumeRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getDiskId()
The unique identifier for the gateway local disk that is configured as a stored volume.String
getGatewayARN()
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.String
getTargetName()
The name of the iSCSI target used by initiators to connect to the target and as a suffix for the target ARN.int
hashCode()
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
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
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.String
toString()
Returns a string representation of this object; useful for testing and debugging.CreateStorediSCSIVolumeRequest
withDiskId(String diskId)
The unique identifier for the gateway local disk that is configured as a stored volume.CreateStorediSCSIVolumeRequest
withGatewayARN(String gatewayARN)
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
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.-
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
TargetName
as 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, specifyingTargetName
as 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
TargetName
as 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
TargetName
as 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
TargetName
as 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, specifyingTargetName
as 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateStorediSCSIVolumeRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-