Class Snapshot
- java.lang.Object
-
- software.amazon.awssdk.services.directory.model.Snapshot
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Snapshot.Builder,Snapshot>
@Generated("software.amazon.awssdk:codegen") public final class Snapshot extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Snapshot.Builder,Snapshot>
Describes a directory snapshot.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSnapshot.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Snapshot.Builderbuilder()StringdirectoryId()The directory identifier.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()The descriptive name of the snapshot.List<SdkField<?>>sdkFields()static Class<? extends Snapshot.Builder>serializableBuilderClass()StringsnapshotId()The snapshot identifier.InstantstartTime()The date and time that the snapshot was taken.SnapshotStatusstatus()The snapshot status.StringstatusAsString()The snapshot status.Snapshot.BuildertoBuilder()StringtoString()Returns a string representation of this object.SnapshotTypetype()The snapshot type.StringtypeAsString()The snapshot type.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
directoryId
public final String directoryId()
The directory identifier.
- Returns:
- The directory identifier.
-
snapshotId
public final String snapshotId()
The snapshot identifier.
- Returns:
- The snapshot identifier.
-
type
public final SnapshotType type()
The snapshot type.
If the service returns an enum value that is not available in the current SDK version,
typewill returnSnapshotType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The snapshot type.
- See Also:
SnapshotType
-
typeAsString
public final String typeAsString()
The snapshot type.
If the service returns an enum value that is not available in the current SDK version,
typewill returnSnapshotType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The snapshot type.
- See Also:
SnapshotType
-
name
public final String name()
The descriptive name of the snapshot.
- Returns:
- The descriptive name of the snapshot.
-
status
public final SnapshotStatus status()
The snapshot status.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnSnapshotStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The snapshot status.
- See Also:
SnapshotStatus
-
statusAsString
public final String statusAsString()
The snapshot status.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnSnapshotStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The snapshot status.
- See Also:
SnapshotStatus
-
startTime
public final Instant startTime()
The date and time that the snapshot was taken.
- Returns:
- The date and time that the snapshot was taken.
-
toBuilder
public Snapshot.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Snapshot.Builder,Snapshot>
-
builder
public static Snapshot.Builder builder()
-
serializableBuilderClass
public static Class<? extends Snapshot.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-