@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEc2VolumeDetails extends Object implements Serializable, Cloneable, StructuredPojo
Details about an EC2 volume.
Constructor and Description |
---|
AwsEc2VolumeDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEc2VolumeDetails |
clone() |
boolean |
equals(Object obj) |
List<AwsEc2VolumeAttachment> |
getAttachments()
The volume attachments.
|
String |
getCreateTime()
Indicates when the volume was created.
|
String |
getDeviceName()
The device name for the volume that is attached to the instance.
|
Boolean |
getEncrypted()
Specifies whether the volume is encrypted.
|
String |
getKmsKeyId()
The ARN of the KMS key that was used to protect the volume encryption key for the volume.
|
Integer |
getSize()
The size of the volume, in GiBs.
|
String |
getSnapshotId()
The snapshot from which the volume was created.
|
String |
getStatus()
The volume state.
|
String |
getVolumeId()
The ID of the volume.
|
String |
getVolumeScanStatus()
Indicates whether the volume was scanned or skipped.
|
String |
getVolumeType()
The volume type.
|
int |
hashCode() |
Boolean |
isEncrypted()
Specifies whether the volume is encrypted.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAttachments(Collection<AwsEc2VolumeAttachment> attachments)
The volume attachments.
|
void |
setCreateTime(String createTime)
Indicates when the volume was created.
|
void |
setDeviceName(String deviceName)
The device name for the volume that is attached to the instance.
|
void |
setEncrypted(Boolean encrypted)
Specifies whether the volume is encrypted.
|
void |
setKmsKeyId(String kmsKeyId)
The ARN of the KMS key that was used to protect the volume encryption key for the volume.
|
void |
setSize(Integer size)
The size of the volume, in GiBs.
|
void |
setSnapshotId(String snapshotId)
The snapshot from which the volume was created.
|
void |
setStatus(String status)
The volume state.
|
void |
setVolumeId(String volumeId)
The ID of the volume.
|
void |
setVolumeScanStatus(String volumeScanStatus)
Indicates whether the volume was scanned or skipped.
|
void |
setVolumeType(String volumeType)
The volume type.
|
String |
toString()
Returns a string representation of this object.
|
AwsEc2VolumeDetails |
withAttachments(AwsEc2VolumeAttachment... attachments)
The volume attachments.
|
AwsEc2VolumeDetails |
withAttachments(Collection<AwsEc2VolumeAttachment> attachments)
The volume attachments.
|
AwsEc2VolumeDetails |
withCreateTime(String createTime)
Indicates when the volume was created.
|
AwsEc2VolumeDetails |
withDeviceName(String deviceName)
The device name for the volume that is attached to the instance.
|
AwsEc2VolumeDetails |
withEncrypted(Boolean encrypted)
Specifies whether the volume is encrypted.
|
AwsEc2VolumeDetails |
withKmsKeyId(String kmsKeyId)
The ARN of the KMS key that was used to protect the volume encryption key for the volume.
|
AwsEc2VolumeDetails |
withSize(Integer size)
The size of the volume, in GiBs.
|
AwsEc2VolumeDetails |
withSnapshotId(String snapshotId)
The snapshot from which the volume was created.
|
AwsEc2VolumeDetails |
withStatus(String status)
The volume state.
|
AwsEc2VolumeDetails |
withVolumeId(String volumeId)
The ID of the volume.
|
AwsEc2VolumeDetails |
withVolumeScanStatus(String volumeScanStatus)
Indicates whether the volume was scanned or skipped.
|
AwsEc2VolumeDetails |
withVolumeType(String volumeType)
The volume type.
|
public void setCreateTime(String createTime)
Indicates when the volume was created.
Uses the date-time
format specified in RFC
3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example,
2020-03-22T13:22:13.933Z
.
createTime
- Indicates when the volume was created.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
public String getCreateTime()
Indicates when the volume was created.
Uses the date-time
format specified in RFC
3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example,
2020-03-22T13:22:13.933Z
.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
public AwsEc2VolumeDetails withCreateTime(String createTime)
Indicates when the volume was created.
Uses the date-time
format specified in RFC
3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example,
2020-03-22T13:22:13.933Z
.
createTime
- Indicates when the volume was created.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
public void setDeviceName(String deviceName)
The device name for the volume that is attached to the instance.
deviceName
- The device name for the volume that is attached to the instance.public String getDeviceName()
The device name for the volume that is attached to the instance.
public AwsEc2VolumeDetails withDeviceName(String deviceName)
The device name for the volume that is attached to the instance.
deviceName
- The device name for the volume that is attached to the instance.public void setEncrypted(Boolean encrypted)
Specifies whether the volume is encrypted.
encrypted
- Specifies whether the volume is encrypted.public Boolean getEncrypted()
Specifies whether the volume is encrypted.
public AwsEc2VolumeDetails withEncrypted(Boolean encrypted)
Specifies whether the volume is encrypted.
encrypted
- Specifies whether the volume is encrypted.public Boolean isEncrypted()
Specifies whether the volume is encrypted.
public void setSize(Integer size)
The size of the volume, in GiBs.
size
- The size of the volume, in GiBs.public Integer getSize()
The size of the volume, in GiBs.
public AwsEc2VolumeDetails withSize(Integer size)
The size of the volume, in GiBs.
size
- The size of the volume, in GiBs.public void setSnapshotId(String snapshotId)
The snapshot from which the volume was created.
snapshotId
- The snapshot from which the volume was created.public String getSnapshotId()
The snapshot from which the volume was created.
public AwsEc2VolumeDetails withSnapshotId(String snapshotId)
The snapshot from which the volume was created.
snapshotId
- The snapshot from which the volume was created.public void setStatus(String status)
The volume state.
status
- The volume state.public String getStatus()
The volume state.
public AwsEc2VolumeDetails withStatus(String status)
The volume state.
status
- The volume state.public void setKmsKeyId(String kmsKeyId)
The ARN of the KMS key that was used to protect the volume encryption key for the volume.
kmsKeyId
- The ARN of the KMS key that was used to protect the volume encryption key for the volume.public String getKmsKeyId()
The ARN of the KMS key that was used to protect the volume encryption key for the volume.
public AwsEc2VolumeDetails withKmsKeyId(String kmsKeyId)
The ARN of the KMS key that was used to protect the volume encryption key for the volume.
kmsKeyId
- The ARN of the KMS key that was used to protect the volume encryption key for the volume.public List<AwsEc2VolumeAttachment> getAttachments()
The volume attachments.
public void setAttachments(Collection<AwsEc2VolumeAttachment> attachments)
The volume attachments.
attachments
- The volume attachments.public AwsEc2VolumeDetails withAttachments(AwsEc2VolumeAttachment... attachments)
The volume attachments.
NOTE: This method appends the values to the existing list (if any). Use
setAttachments(java.util.Collection)
or withAttachments(java.util.Collection)
if you want to
override the existing values.
attachments
- The volume attachments.public AwsEc2VolumeDetails withAttachments(Collection<AwsEc2VolumeAttachment> attachments)
The volume attachments.
attachments
- The volume attachments.public void setVolumeId(String volumeId)
The ID of the volume.
volumeId
- The ID of the volume.public String getVolumeId()
The ID of the volume.
public AwsEc2VolumeDetails withVolumeId(String volumeId)
The ID of the volume.
volumeId
- The ID of the volume.public void setVolumeType(String volumeType)
The volume type.
volumeType
- The volume type.public String getVolumeType()
The volume type.
public AwsEc2VolumeDetails withVolumeType(String volumeType)
The volume type.
volumeType
- The volume type.public void setVolumeScanStatus(String volumeScanStatus)
Indicates whether the volume was scanned or skipped.
volumeScanStatus
- Indicates whether the volume was scanned or skipped.public String getVolumeScanStatus()
Indicates whether the volume was scanned or skipped.
public AwsEc2VolumeDetails withVolumeScanStatus(String volumeScanStatus)
Indicates whether the volume was scanned or skipped.
volumeScanStatus
- Indicates whether the volume was scanned or skipped.public String toString()
toString
in class Object
Object.toString()
public AwsEc2VolumeDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.