@Generated(value="software.amazon.awssdk:codegen") public final class Archive extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Archive.Builder,Archive>
An Archive
object that contains details about an archive.
Modifier and Type | Class and Description |
---|---|
static interface |
Archive.Builder |
Modifier and Type | Method and Description |
---|---|
String |
archiveName()
The name of the archive.
|
static Archive.Builder |
builder() |
Instant |
creationTime()
The time stamp for the time that the archive was created.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
Long |
eventCount()
The number of events in the archive.
|
String |
eventSourceArn()
The ARN of the event bus associated with the archive.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
retentionDays()
The number of days to retain events in the archive before they are deleted.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Archive.Builder> |
serializableBuilderClass() |
Long |
sizeBytes()
The size of the archive, in bytes.
|
ArchiveState |
state()
The current state of the archive.
|
String |
stateAsString()
The current state of the archive.
|
String |
stateReason()
A description for the reason that the archive is in the current state.
|
Archive.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
copy
public final String archiveName()
The name of the archive.
public final String eventSourceArn()
The ARN of the event bus associated with the archive. Only events from this event bus are sent to the archive.
public final ArchiveState state()
The current state of the archive.
If the service returns an enum value that is not available in the current SDK version, state
will return
ArchiveState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateAsString()
.
ArchiveState
public final String stateAsString()
The current state of the archive.
If the service returns an enum value that is not available in the current SDK version, state
will return
ArchiveState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateAsString()
.
ArchiveState
public final String stateReason()
A description for the reason that the archive is in the current state.
public final Integer retentionDays()
The number of days to retain events in the archive before they are deleted.
public final Long sizeBytes()
The size of the archive, in bytes.
public final Long eventCount()
The number of events in the archive.
public final Instant creationTime()
The time stamp for the time that the archive was created.
public Archive.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Archive.Builder,Archive>
public static Archive.Builder builder()
public static Class<? extends Archive.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()