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 Snapshot
clone()
boolean
equals(Object obj)
String
getDirectoryId()
The directory identifier.String
getName()
The descriptive name of the snapshot.String
getSnapshotId()
The snapshot identifier.Date
getStartTime()
The date and time that the snapshot was taken.String
getStatus()
The snapshot status.String
getType()
The snapshot type.int
hashCode()
void
setDirectoryId(String directoryId)
The directory identifier.void
setName(String name)
The descriptive name of the snapshot.void
setSnapshotId(String snapshotId)
The snapshot identifier.void
setStartTime(Date startTime)
The date and time that the snapshot was taken.void
setStatus(SnapshotStatus status)
The snapshot status.void
setStatus(String status)
The snapshot status.void
setType(SnapshotType type)
The snapshot type.void
setType(String type)
The snapshot type.String
toString()
Returns a string representation of this object; useful for testing and debugging.Snapshot
withDirectoryId(String directoryId)
The directory identifier.Snapshot
withName(String name)
The descriptive name of the snapshot.Snapshot
withSnapshotId(String snapshotId)
The snapshot identifier.Snapshot
withStartTime(Date startTime)
The date and time that the snapshot was taken.Snapshot
withStatus(SnapshotStatus status)
The snapshot status.Snapshot
withStatus(String status)
The snapshot status.Snapshot
withType(SnapshotType type)
The snapshot type.Snapshot
withType(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-