@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AutoSnapshotDetails extends Object implements Serializable, Cloneable, StructuredPojo
Describes an automatic snapshot.
Constructor and Description |
---|
AutoSnapshotDetails() |
Modifier and Type | Method and Description |
---|---|
AutoSnapshotDetails |
clone() |
boolean |
equals(Object obj) |
Date |
getCreatedAt()
The timestamp when the automatic snapshot was created.
|
String |
getDate()
The date of the automatic snapshot in
YYYY-MM-DD format. |
List<AttachedDisk> |
getFromAttachedDisks()
An array of objects that describe the block storage disks attached to the instance when the automatic snapshot
was created.
|
String |
getStatus()
The status of the automatic snapshot.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCreatedAt(Date createdAt)
The timestamp when the automatic snapshot was created.
|
void |
setDate(String date)
The date of the automatic snapshot in
YYYY-MM-DD format. |
void |
setFromAttachedDisks(Collection<AttachedDisk> fromAttachedDisks)
An array of objects that describe the block storage disks attached to the instance when the automatic snapshot
was created.
|
void |
setStatus(String status)
The status of the automatic snapshot.
|
String |
toString()
Returns a string representation of this object.
|
AutoSnapshotDetails |
withCreatedAt(Date createdAt)
The timestamp when the automatic snapshot was created.
|
AutoSnapshotDetails |
withDate(String date)
The date of the automatic snapshot in
YYYY-MM-DD format. |
AutoSnapshotDetails |
withFromAttachedDisks(AttachedDisk... fromAttachedDisks)
An array of objects that describe the block storage disks attached to the instance when the automatic snapshot
was created.
|
AutoSnapshotDetails |
withFromAttachedDisks(Collection<AttachedDisk> fromAttachedDisks)
An array of objects that describe the block storage disks attached to the instance when the automatic snapshot
was created.
|
AutoSnapshotDetails |
withStatus(AutoSnapshotStatus status)
The status of the automatic snapshot.
|
AutoSnapshotDetails |
withStatus(String status)
The status of the automatic snapshot.
|
public void setDate(String date)
The date of the automatic snapshot in YYYY-MM-DD
format.
date
- The date of the automatic snapshot in YYYY-MM-DD
format.public String getDate()
The date of the automatic snapshot in YYYY-MM-DD
format.
YYYY-MM-DD
format.public AutoSnapshotDetails withDate(String date)
The date of the automatic snapshot in YYYY-MM-DD
format.
date
- The date of the automatic snapshot in YYYY-MM-DD
format.public void setCreatedAt(Date createdAt)
The timestamp when the automatic snapshot was created.
createdAt
- The timestamp when the automatic snapshot was created.public Date getCreatedAt()
The timestamp when the automatic snapshot was created.
public AutoSnapshotDetails withCreatedAt(Date createdAt)
The timestamp when the automatic snapshot was created.
createdAt
- The timestamp when the automatic snapshot was created.public void setStatus(String status)
The status of the automatic snapshot.
status
- The status of the automatic snapshot.AutoSnapshotStatus
public String getStatus()
The status of the automatic snapshot.
AutoSnapshotStatus
public AutoSnapshotDetails withStatus(String status)
The status of the automatic snapshot.
status
- The status of the automatic snapshot.AutoSnapshotStatus
public AutoSnapshotDetails withStatus(AutoSnapshotStatus status)
The status of the automatic snapshot.
status
- The status of the automatic snapshot.AutoSnapshotStatus
public List<AttachedDisk> getFromAttachedDisks()
An array of objects that describe the block storage disks attached to the instance when the automatic snapshot was created.
public void setFromAttachedDisks(Collection<AttachedDisk> fromAttachedDisks)
An array of objects that describe the block storage disks attached to the instance when the automatic snapshot was created.
fromAttachedDisks
- An array of objects that describe the block storage disks attached to the instance when the automatic
snapshot was created.public AutoSnapshotDetails withFromAttachedDisks(AttachedDisk... fromAttachedDisks)
An array of objects that describe the block storage disks attached to the instance when the automatic snapshot was created.
NOTE: This method appends the values to the existing list (if any). Use
setFromAttachedDisks(java.util.Collection)
or withFromAttachedDisks(java.util.Collection)
if
you want to override the existing values.
fromAttachedDisks
- An array of objects that describe the block storage disks attached to the instance when the automatic
snapshot was created.public AutoSnapshotDetails withFromAttachedDisks(Collection<AttachedDisk> fromAttachedDisks)
An array of objects that describe the block storage disks attached to the instance when the automatic snapshot was created.
fromAttachedDisks
- An array of objects that describe the block storage disks attached to the instance when the automatic
snapshot was created.public String toString()
toString
in class Object
Object.toString()
public AutoSnapshotDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.