@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.
|
Boolean |
getEncrypted()
Whether the volume is encrypted.
|
String |
getKmsKeyId()
The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) 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.
|
int |
hashCode() |
Boolean |
isEncrypted()
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 |
setEncrypted(Boolean encrypted)
Whether the volume is encrypted.
|
void |
setKmsKeyId(String kmsKeyId)
The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) 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.
|
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 |
withEncrypted(Boolean encrypted)
Whether the volume is encrypted.
|
AwsEc2VolumeDetails |
withKmsKeyId(String kmsKeyId)
The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) 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.
|
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 setEncrypted(Boolean encrypted)
Whether the volume is encrypted.
encrypted
- Whether the volume is encrypted.public Boolean getEncrypted()
Whether the volume is encrypted.
public AwsEc2VolumeDetails withEncrypted(Boolean encrypted)
Whether the volume is encrypted.
encrypted
- Whether the volume is encrypted.public Boolean isEncrypted()
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 AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to protect the volume encryption key for the volume.
kmsKeyId
- The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to protect the
volume encryption key for the volume.public String getKmsKeyId()
The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to protect the volume encryption key for the volume.
public AwsEc2VolumeDetails withKmsKeyId(String kmsKeyId)
The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to protect the volume encryption key for the volume.
kmsKeyId
- The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) 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 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.