Class Archive
- java.lang.Object
-
- software.amazon.awssdk.services.mailmanager.model.Archive
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Archive.Builder,Archive>
@Generated("software.amazon.awssdk:codegen") public final class Archive extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Archive.Builder,Archive>
An archive resource for storing and retaining emails.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceArchive.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringarchiveId()The unique identifier of the archive.StringarchiveName()The unique name assigned to the archive.ArchiveStatearchiveState()The current state of the archive:StringarchiveStateAsString()The current state of the archive:static Archive.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InstantlastUpdatedTimestamp()The timestamp of when the archive was last updated.List<SdkField<?>>sdkFields()static Class<? extends Archive.Builder>serializableBuilderClass()Archive.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
archiveId
public final String archiveId()
The unique identifier of the archive.
- Returns:
- The unique identifier of the archive.
-
archiveName
public final String archiveName()
The unique name assigned to the archive.
- Returns:
- The unique name assigned to the archive.
-
archiveState
public final ArchiveState archiveState()
The current state of the archive:
-
ACTIVE– The archive is ready and available for use. -
PENDING_DELETION– The archive has been marked for deletion and will be permanently deleted in 30 days. No further modifications can be made in this state.
If the service returns an enum value that is not available in the current SDK version,
archiveStatewill returnArchiveState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromarchiveStateAsString().- Returns:
- The current state of the archive:
-
ACTIVE– The archive is ready and available for use. -
PENDING_DELETION– The archive has been marked for deletion and will be permanently deleted in 30 days. No further modifications can be made in this state.
-
- See Also:
ArchiveState
-
-
archiveStateAsString
public final String archiveStateAsString()
The current state of the archive:
-
ACTIVE– The archive is ready and available for use. -
PENDING_DELETION– The archive has been marked for deletion and will be permanently deleted in 30 days. No further modifications can be made in this state.
If the service returns an enum value that is not available in the current SDK version,
archiveStatewill returnArchiveState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromarchiveStateAsString().- Returns:
- The current state of the archive:
-
ACTIVE– The archive is ready and available for use. -
PENDING_DELETION– The archive has been marked for deletion and will be permanently deleted in 30 days. No further modifications can be made in this state.
-
- See Also:
ArchiveState
-
-
lastUpdatedTimestamp
public final Instant lastUpdatedTimestamp()
The timestamp of when the archive was last updated.
- Returns:
- The timestamp of when the archive was last updated.
-
toBuilder
public Archive.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Archive.Builder,Archive>
-
builder
public static Archive.Builder builder()
-
serializableBuilderClass
public static Class<? extends Archive.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.
-
-