Class VolumeInfo
- java.lang.Object
-
- com.amazonaws.services.storagegateway.model.VolumeInfo
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class VolumeInfo extends Object implements Serializable, Cloneable
Describes a storage volume object.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VolumeInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumeInfo
clone()
boolean
equals(Object obj)
String
getGatewayARN()
String
getGatewayId()
The unique identifier assigned to your gateway during activation.String
getVolumeARN()
The Amazon Resource Name (ARN) for the storage volume.String
getVolumeId()
The unique identifier assigned to the volume.Long
getVolumeSizeInBytes()
The size, in bytes, of the volume.String
getVolumeType()
int
hashCode()
void
setGatewayARN(String gatewayARN)
void
setGatewayId(String gatewayId)
The unique identifier assigned to your gateway during activation.void
setVolumeARN(String volumeARN)
The Amazon Resource Name (ARN) for the storage volume.void
setVolumeId(String volumeId)
The unique identifier assigned to the volume.void
setVolumeSizeInBytes(Long volumeSizeInBytes)
The size, in bytes, of the volume.void
setVolumeType(String volumeType)
String
toString()
Returns a string representation of this object; useful for testing and debugging.VolumeInfo
withGatewayARN(String gatewayARN)
VolumeInfo
withGatewayId(String gatewayId)
The unique identifier assigned to your gateway during activation.VolumeInfo
withVolumeARN(String volumeARN)
The Amazon Resource Name (ARN) for the storage volume.VolumeInfo
withVolumeId(String volumeId)
The unique identifier assigned to the volume.VolumeInfo
withVolumeSizeInBytes(Long volumeSizeInBytes)
The size, in bytes, of the volume.VolumeInfo
withVolumeType(String volumeType)
-
-
-
Method Detail
-
setVolumeARN
public void setVolumeARN(String volumeARN)
The Amazon Resource Name (ARN) for the storage volume. For example, the following is a valid ARN:
arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB
Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
- Parameters:
volumeARN
- The Amazon Resource Name (ARN) for the storage volume. For example, the following is a valid ARN:arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB
Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
-
getVolumeARN
public String getVolumeARN()
The Amazon Resource Name (ARN) for the storage volume. For example, the following is a valid ARN:
arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB
Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
- Returns:
- The Amazon Resource Name (ARN) for the storage volume. For
example, the following is a valid ARN:
arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB
Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
-
withVolumeARN
public VolumeInfo withVolumeARN(String volumeARN)
The Amazon Resource Name (ARN) for the storage volume. For example, the following is a valid ARN:
arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB
Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
- Parameters:
volumeARN
- The Amazon Resource Name (ARN) for the storage volume. For example, the following is a valid ARN:arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB
Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVolumeId
public void setVolumeId(String volumeId)
The unique identifier assigned to the volume. This ID becomes part of the volume Amazon Resource Name (ARN), which you use as input for other operations.
Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
- Parameters:
volumeId
- The unique identifier assigned to the volume. This ID becomes part of the volume Amazon Resource Name (ARN), which you use as input for other operations.Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
-
getVolumeId
public String getVolumeId()
The unique identifier assigned to the volume. This ID becomes part of the volume Amazon Resource Name (ARN), which you use as input for other operations.
Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
- Returns:
- The unique identifier assigned to the volume. This ID becomes
part of the volume Amazon Resource Name (ARN), which you use as
input for other operations.
Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
-
withVolumeId
public VolumeInfo withVolumeId(String volumeId)
The unique identifier assigned to the volume. This ID becomes part of the volume Amazon Resource Name (ARN), which you use as input for other operations.
Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
- Parameters:
volumeId
- The unique identifier assigned to the volume. This ID becomes part of the volume Amazon Resource Name (ARN), which you use as input for other operations.Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setGatewayARN
public void setGatewayARN(String gatewayARN)
- Parameters:
gatewayARN
-
-
getGatewayARN
public String getGatewayARN()
- Returns:
-
withGatewayARN
public VolumeInfo withGatewayARN(String gatewayARN)
- Parameters:
gatewayARN
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setGatewayId
public void setGatewayId(String gatewayId)
The unique identifier assigned to your gateway during activation. This ID becomes part of the gateway Amazon Resource Name (ARN), which you use as input for other operations.
Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
- Parameters:
gatewayId
- The unique identifier assigned to your gateway during activation. This ID becomes part of the gateway Amazon Resource Name (ARN), which you use as input for other operations.Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
-
getGatewayId
public String getGatewayId()
The unique identifier assigned to your gateway during activation. This ID becomes part of the gateway Amazon Resource Name (ARN), which you use as input for other operations.
Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
- Returns:
- The unique identifier assigned to your gateway during activation.
This ID becomes part of the gateway Amazon Resource Name (ARN),
which you use as input for other operations.
Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
-
withGatewayId
public VolumeInfo withGatewayId(String gatewayId)
The unique identifier assigned to your gateway during activation. This ID becomes part of the gateway Amazon Resource Name (ARN), which you use as input for other operations.
Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
- Parameters:
gatewayId
- The unique identifier assigned to your gateway during activation. This ID becomes part of the gateway Amazon Resource Name (ARN), which you use as input for other operations.Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVolumeType
public void setVolumeType(String volumeType)
- Parameters:
volumeType
-
-
getVolumeType
public String getVolumeType()
- Returns:
-
withVolumeType
public VolumeInfo withVolumeType(String volumeType)
- Parameters:
volumeType
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVolumeSizeInBytes
public void setVolumeSizeInBytes(Long volumeSizeInBytes)
The size, in bytes, of the volume.
Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
- Parameters:
volumeSizeInBytes
- The size, in bytes, of the volume.Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
-
getVolumeSizeInBytes
public Long getVolumeSizeInBytes()
The size, in bytes, of the volume.
Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
- Returns:
- The size, in bytes, of the volume.
Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
-
withVolumeSizeInBytes
public VolumeInfo withVolumeSizeInBytes(Long volumeSizeInBytes)
The size, in bytes, of the volume.
Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
- Parameters:
volumeSizeInBytes
- The size, in bytes, of the volume.Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
- 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 VolumeInfo clone()
-
-