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
See Also:
  • Constructor Details

    • CreateStorediSCSIVolumeRequest

      public CreateStorediSCSIVolumeRequest()
  • Method Details

    • 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, specifying TargetName 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, specifying TargetName 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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 class AmazonWebServiceRequest
      See Also: