@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AttachVolumeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
AttachVolumeInput
NOOP
Constructor and Description |
---|
AttachVolumeRequest() |
Modifier and Type | Method and Description |
---|---|
AttachVolumeRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDiskId()
The unique device ID or other distinguishing data that identifies the local disk used to create the volume.
|
String |
getGatewayARN()
The Amazon Resource Name (ARN) of the gateway that you want to attach the volume to.
|
String |
getNetworkInterfaceId()
The network interface of the gateway on which to expose the iSCSI target.
|
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.
|
String |
getVolumeARN()
The Amazon Resource Name (ARN) of the volume to attach to the specified gateway.
|
int |
hashCode() |
void |
setDiskId(String diskId)
The unique device ID or other distinguishing data that identifies the local disk used to create the volume.
|
void |
setGatewayARN(String gatewayARN)
The Amazon Resource Name (ARN) of the gateway that you want to attach the volume to.
|
void |
setNetworkInterfaceId(String networkInterfaceId)
The network interface of the gateway on which to expose the iSCSI target.
|
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.
|
void |
setVolumeARN(String volumeARN)
The Amazon Resource Name (ARN) of the volume to attach to the specified gateway.
|
String |
toString()
Returns a string representation of this object.
|
AttachVolumeRequest |
withDiskId(String diskId)
The unique device ID or other distinguishing data that identifies the local disk used to create the volume.
|
AttachVolumeRequest |
withGatewayARN(String gatewayARN)
The Amazon Resource Name (ARN) of the gateway that you want to attach the volume to.
|
AttachVolumeRequest |
withNetworkInterfaceId(String networkInterfaceId)
The network interface of the gateway on which to expose the iSCSI target.
|
AttachVolumeRequest |
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.
|
AttachVolumeRequest |
withVolumeARN(String volumeARN)
The Amazon Resource Name (ARN) of the volume to attach to the specified gateway.
|
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)
The Amazon Resource Name (ARN) of the gateway that you want to attach the volume to.
gatewayARN
- The Amazon Resource Name (ARN) of the gateway that you want to attach the volume to.public String getGatewayARN()
The Amazon Resource Name (ARN) of the gateway that you want to attach the volume to.
public AttachVolumeRequest withGatewayARN(String gatewayARN)
The Amazon Resource Name (ARN) of the gateway that you want to attach the volume to.
gatewayARN
- The Amazon Resource Name (ARN) of the gateway that you want to attach the volume to.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 AttachVolumeRequest 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 setVolumeARN(String volumeARN)
The Amazon Resource Name (ARN) of the volume to attach to the specified gateway.
volumeARN
- The Amazon Resource Name (ARN) of the volume to attach to the specified gateway.public String getVolumeARN()
The Amazon Resource Name (ARN) of the volume to attach to the specified gateway.
public AttachVolumeRequest withVolumeARN(String volumeARN)
The Amazon Resource Name (ARN) of the volume to attach to the specified gateway.
volumeARN
- The Amazon Resource Name (ARN) of the volume to attach to the specified gateway.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 AttachVolumeRequest 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 setDiskId(String diskId)
The unique device ID or other distinguishing data that identifies the local disk used to create the volume. This value is only required when you are attaching a stored volume.
diskId
- The unique device ID or other distinguishing data that identifies the local disk used to create the
volume. This value is only required when you are attaching a stored volume.public String getDiskId()
The unique device ID or other distinguishing data that identifies the local disk used to create the volume. This value is only required when you are attaching a stored volume.
public AttachVolumeRequest withDiskId(String diskId)
The unique device ID or other distinguishing data that identifies the local disk used to create the volume. This value is only required when you are attaching a stored volume.
diskId
- The unique device ID or other distinguishing data that identifies the local disk used to create the
volume. This value is only required when you are attaching a stored volume.public String toString()
toString
in class Object
Object.toString()
public AttachVolumeRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()