@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) |
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() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String archiveName()
The name of the archive.
public String eventSourceArn()
The ARN of the event bus associated with the archive. Only events from this event bus are sent to the archive.
public 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().
ArchiveStatepublic 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().
ArchiveStatepublic String stateReason()
A description for the reason that the archive is in the current state.
public Integer retentionDays()
The number of days to retain events in the archive before they are deleted.
public Long sizeBytes()
The size of the archive, in bytes.
public Long eventCount()
The number of events in the archive.
public Instant creationTime()
The time stamp for the time that the archive was created.
public Archive.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Archive.Builder,Archive>public static Archive.Builder builder()
public static Class<? extends Archive.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.