public class CreateCachediSCSIVolumeRequest extends AmazonWebServiceRequest implements Serializable
CreateCachediSCSIVolume operation
.
This operation creates a cached volume on a specified cached gateway. This operation is supported only for the gateway-cached volume architecture.
NOTE:Cache storage must be allocated to the gateway before you can create a cached volume. Use the AddCache operation to add cache storage to a gateway.
In the request, you must specify the gateway, size of the volume in bytes, the iSCSI target name, an IP address on which to expose the target, and a unique client token. In response, AWS Storage Gateway creates the volume and returns information about it such as the volume Amazon Resource Name (ARN), its size, and the iSCSI target ARN that initiators can use to connect to the volume target.
Constructor and Description |
---|
CreateCachediSCSIVolumeRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getClientToken()
Returns the value of the ClientToken property for this object.
|
String |
getGatewayARN()
The Amazon Resource Name (ARN) of the gateway.
|
String |
getNetworkInterfaceId()
Returns the value of the NetworkInterfaceId property for this object.
|
String |
getSnapshotId()
Returns the value of the SnapshotId property for this object.
|
String |
getTargetName()
Returns the value of the TargetName property for this object.
|
Long |
getVolumeSizeInBytes()
Returns the value of the VolumeSizeInBytes property for this object.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
Sets the value of the ClientToken property for this object.
|
void |
setGatewayARN(String gatewayARN)
The Amazon Resource Name (ARN) of the gateway.
|
void |
setNetworkInterfaceId(String networkInterfaceId)
Sets the value of the NetworkInterfaceId property for this object.
|
void |
setSnapshotId(String snapshotId)
Sets the value of the SnapshotId property for this object.
|
void |
setTargetName(String targetName)
Sets the value of the TargetName property for this object.
|
void |
setVolumeSizeInBytes(Long volumeSizeInBytes)
Sets the value of the VolumeSizeInBytes property for this object.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateCachediSCSIVolumeRequest |
withClientToken(String clientToken)
Sets the value of the ClientToken property for this object.
|
CreateCachediSCSIVolumeRequest |
withGatewayARN(String gatewayARN)
The Amazon Resource Name (ARN) of the gateway.
|
CreateCachediSCSIVolumeRequest |
withNetworkInterfaceId(String networkInterfaceId)
Sets the value of the NetworkInterfaceId property for this object.
|
CreateCachediSCSIVolumeRequest |
withSnapshotId(String snapshotId)
Sets the value of the SnapshotId property for this object.
|
CreateCachediSCSIVolumeRequest |
withTargetName(String targetName)
Sets the value of the TargetName property for this object.
|
CreateCachediSCSIVolumeRequest |
withVolumeSizeInBytes(Long volumeSizeInBytes)
Sets the value of the VolumeSizeInBytes property for this object.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public String getGatewayARN()
Constraints:
Length: 50 - 500
public void setGatewayARN(String gatewayARN)
Constraints:
Length: 50 - 500
gatewayARN
- The Amazon Resource Name (ARN) of the gateway. Use the
ListGateways operation to return a list of gateways for your
account and region.public CreateCachediSCSIVolumeRequest withGatewayARN(String gatewayARN)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 50 - 500
gatewayARN
- The Amazon Resource Name (ARN) of the gateway. Use the
ListGateways operation to return a list of gateways for your
account and region.public Long getVolumeSizeInBytes()
public void setVolumeSizeInBytes(Long volumeSizeInBytes)
volumeSizeInBytes
- The new value for the VolumeSizeInBytes property for this object.public CreateCachediSCSIVolumeRequest withVolumeSizeInBytes(Long volumeSizeInBytes)
Returns a reference to this object so that method calls can be chained together.
volumeSizeInBytes
- The new value for the VolumeSizeInBytes property for this object.public String getSnapshotId()
Constraints:
Pattern: \Asnap-[0-9a-fA-F]{8}\z
public void setSnapshotId(String snapshotId)
Constraints:
Pattern: \Asnap-[0-9a-fA-F]{8}\z
snapshotId
- The new value for the SnapshotId property for this object.public CreateCachediSCSIVolumeRequest withSnapshotId(String snapshotId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: \Asnap-[0-9a-fA-F]{8}\z
snapshotId
- The new value for the SnapshotId property for this object.public String getTargetName()
Constraints:
Length: 1 - 200
Pattern: ^[-\.;a-z0-9]+$
public void setTargetName(String targetName)
Constraints:
Length: 1 - 200
Pattern: ^[-\.;a-z0-9]+$
targetName
- The new value for the TargetName property for this object.public CreateCachediSCSIVolumeRequest withTargetName(String targetName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 200
Pattern: ^[-\.;a-z0-9]+$
targetName
- The new value for the TargetName property for this object.public String getNetworkInterfaceId()
Constraints:
Pattern: \A(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}\z
public void setNetworkInterfaceId(String networkInterfaceId)
Constraints:
Pattern: \A(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}\z
networkInterfaceId
- The new value for the NetworkInterfaceId property for this object.public CreateCachediSCSIVolumeRequest withNetworkInterfaceId(String networkInterfaceId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: \A(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}\z
networkInterfaceId
- The new value for the NetworkInterfaceId property for this object.public String getClientToken()
Constraints:
Length: 5 - 100
public void setClientToken(String clientToken)
Constraints:
Length: 5 - 100
clientToken
- The new value for the ClientToken property for this object.public CreateCachediSCSIVolumeRequest withClientToken(String clientToken)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 5 - 100
clientToken
- The new value for the ClientToken property for this object.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.