Class Snapshot
- java.lang.Object
-
- com.amazonaws.services.directory.model.Snapshot
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Snapshot extends Object implements Serializable, Cloneable
Describes a directory snapshot.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Snapshot()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Snapshotclone()booleanequals(Object obj)StringgetDirectoryId()The directory identifier.StringgetName()The descriptive name of the snapshot.StringgetSnapshotId()The snapshot identifier.DategetStartTime()The date and time that the snapshot was taken.StringgetStatus()The snapshot status.StringgetType()The snapshot type.inthashCode()voidsetDirectoryId(String directoryId)The directory identifier.voidsetName(String name)The descriptive name of the snapshot.voidsetSnapshotId(String snapshotId)The snapshot identifier.voidsetStartTime(Date startTime)The date and time that the snapshot was taken.voidsetStatus(SnapshotStatus status)The snapshot status.voidsetStatus(String status)The snapshot status.voidsetType(SnapshotType type)The snapshot type.voidsetType(String type)The snapshot type.StringtoString()Returns a string representation of this object; useful for testing and debugging.SnapshotwithDirectoryId(String directoryId)The directory identifier.SnapshotwithName(String name)The descriptive name of the snapshot.SnapshotwithSnapshotId(String snapshotId)The snapshot identifier.SnapshotwithStartTime(Date startTime)The date and time that the snapshot was taken.SnapshotwithStatus(SnapshotStatus status)The snapshot status.SnapshotwithStatus(String status)The snapshot status.SnapshotwithType(SnapshotType type)The snapshot type.SnapshotwithType(String type)The snapshot type.
-
-
-
Method Detail
-
setDirectoryId
public void setDirectoryId(String directoryId)
The directory identifier.
- Parameters:
directoryId- The directory identifier.
-
getDirectoryId
public String getDirectoryId()
The directory identifier.
- Returns:
- The directory identifier.
-
withDirectoryId
public Snapshot withDirectoryId(String directoryId)
The directory identifier.
- Parameters:
directoryId- The directory identifier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSnapshotId
public void setSnapshotId(String snapshotId)
The snapshot identifier.
- Parameters:
snapshotId- The snapshot identifier.
-
getSnapshotId
public String getSnapshotId()
The snapshot identifier.
- Returns:
- The snapshot identifier.
-
withSnapshotId
public Snapshot withSnapshotId(String snapshotId)
The snapshot identifier.
- Parameters:
snapshotId- The snapshot identifier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setType
public void setType(String type)
The snapshot type.
- Parameters:
type- The snapshot type.- See Also:
SnapshotType
-
getType
public String getType()
The snapshot type.
- Returns:
- The snapshot type.
- See Also:
SnapshotType
-
withType
public Snapshot withType(String type)
The snapshot type.
- Parameters:
type- The snapshot type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SnapshotType
-
setType
public void setType(SnapshotType type)
The snapshot type.
- Parameters:
type- The snapshot type.- See Also:
SnapshotType
-
withType
public Snapshot withType(SnapshotType type)
The snapshot type.
- Parameters:
type- The snapshot type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SnapshotType
-
setName
public void setName(String name)
The descriptive name of the snapshot.
- Parameters:
name- The descriptive name of the snapshot.
-
getName
public String getName()
The descriptive name of the snapshot.
- Returns:
- The descriptive name of the snapshot.
-
withName
public Snapshot withName(String name)
The descriptive name of the snapshot.
- Parameters:
name- The descriptive name of the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
public void setStatus(String status)
The snapshot status.
- Parameters:
status- The snapshot status.- See Also:
SnapshotStatus
-
getStatus
public String getStatus()
The snapshot status.
- Returns:
- The snapshot status.
- See Also:
SnapshotStatus
-
withStatus
public Snapshot withStatus(String status)
The snapshot status.
- Parameters:
status- The snapshot status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SnapshotStatus
-
setStatus
public void setStatus(SnapshotStatus status)
The snapshot status.
- Parameters:
status- The snapshot status.- See Also:
SnapshotStatus
-
withStatus
public Snapshot withStatus(SnapshotStatus status)
The snapshot status.
- Parameters:
status- The snapshot status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SnapshotStatus
-
setStartTime
public void setStartTime(Date startTime)
The date and time that the snapshot was taken.
- Parameters:
startTime- The date and time that the snapshot was taken.
-
getStartTime
public Date getStartTime()
The date and time that the snapshot was taken.
- Returns:
- The date and time that the snapshot was taken.
-
withStartTime
public Snapshot withStartTime(Date startTime)
The date and time that the snapshot was taken.
- Parameters:
startTime- The date and time that the snapshot was taken.- 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-