@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Archive extends Object implements Serializable, Cloneable, StructuredPojo
An Archive
object that contains details about an archive.
Constructor and Description |
---|
Archive() |
Modifier and Type | Method and Description |
---|---|
Archive |
clone() |
boolean |
equals(Object obj) |
String |
getArchiveName()
The name of the archive.
|
Date |
getCreationTime()
The time stamp for the time that the archive was created.
|
Long |
getEventCount()
The number of events in the archive.
|
String |
getEventSourceArn()
The ARN of the event bus associated with the archive.
|
Integer |
getRetentionDays()
The number of days to retain events in the archive before they are deleted.
|
Long |
getSizeBytes()
The size of the archive, in bytes.
|
String |
getState()
The current state of the archive.
|
String |
getStateReason()
A description for the reason that the archive is in the current state.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArchiveName(String archiveName)
The name of the archive.
|
void |
setCreationTime(Date creationTime)
The time stamp for the time that the archive was created.
|
void |
setEventCount(Long eventCount)
The number of events in the archive.
|
void |
setEventSourceArn(String eventSourceArn)
The ARN of the event bus associated with the archive.
|
void |
setRetentionDays(Integer retentionDays)
The number of days to retain events in the archive before they are deleted.
|
void |
setSizeBytes(Long sizeBytes)
The size of the archive, in bytes.
|
void |
setState(String state)
The current state of the archive.
|
void |
setStateReason(String stateReason)
A description for the reason that the archive is in the current state.
|
String |
toString()
Returns a string representation of this object.
|
Archive |
withArchiveName(String archiveName)
The name of the archive.
|
Archive |
withCreationTime(Date creationTime)
The time stamp for the time that the archive was created.
|
Archive |
withEventCount(Long eventCount)
The number of events in the archive.
|
Archive |
withEventSourceArn(String eventSourceArn)
The ARN of the event bus associated with the archive.
|
Archive |
withRetentionDays(Integer retentionDays)
The number of days to retain events in the archive before they are deleted.
|
Archive |
withSizeBytes(Long sizeBytes)
The size of the archive, in bytes.
|
Archive |
withState(ArchiveState state)
The current state of the archive.
|
Archive |
withState(String state)
The current state of the archive.
|
Archive |
withStateReason(String stateReason)
A description for the reason that the archive is in the current state.
|
public void setArchiveName(String archiveName)
The name of the archive.
archiveName
- The name of the archive.public String getArchiveName()
The name of the archive.
public Archive withArchiveName(String archiveName)
The name of the archive.
archiveName
- The name of the archive.public void setEventSourceArn(String eventSourceArn)
The ARN of the event bus associated with the archive. Only events from this event bus are sent to the archive.
eventSourceArn
- The ARN of the event bus associated with the archive. Only events from this event bus are sent to the
archive.public String getEventSourceArn()
The ARN of the event bus associated with the archive. Only events from this event bus are sent to the archive.
public Archive withEventSourceArn(String eventSourceArn)
The ARN of the event bus associated with the archive. Only events from this event bus are sent to the archive.
eventSourceArn
- The ARN of the event bus associated with the archive. Only events from this event bus are sent to the
archive.public void setState(String state)
The current state of the archive.
state
- The current state of the archive.ArchiveState
public String getState()
The current state of the archive.
ArchiveState
public Archive withState(String state)
The current state of the archive.
state
- The current state of the archive.ArchiveState
public Archive withState(ArchiveState state)
The current state of the archive.
state
- The current state of the archive.ArchiveState
public void setStateReason(String stateReason)
A description for the reason that the archive is in the current state.
stateReason
- A description for the reason that the archive is in the current state.public String getStateReason()
A description for the reason that the archive is in the current state.
public Archive withStateReason(String stateReason)
A description for the reason that the archive is in the current state.
stateReason
- A description for the reason that the archive is in the current state.public void setRetentionDays(Integer retentionDays)
The number of days to retain events in the archive before they are deleted.
retentionDays
- The number of days to retain events in the archive before they are deleted.public Integer getRetentionDays()
The number of days to retain events in the archive before they are deleted.
public Archive withRetentionDays(Integer retentionDays)
The number of days to retain events in the archive before they are deleted.
retentionDays
- The number of days to retain events in the archive before they are deleted.public void setSizeBytes(Long sizeBytes)
The size of the archive, in bytes.
sizeBytes
- The size of the archive, in bytes.public Long getSizeBytes()
The size of the archive, in bytes.
public Archive withSizeBytes(Long sizeBytes)
The size of the archive, in bytes.
sizeBytes
- The size of the archive, in bytes.public void setEventCount(Long eventCount)
The number of events in the archive.
eventCount
- The number of events in the archive.public Long getEventCount()
The number of events in the archive.
public Archive withEventCount(Long eventCount)
The number of events in the archive.
eventCount
- The number of events in the archive.public void setCreationTime(Date creationTime)
The time stamp for the time that the archive was created.
creationTime
- The time stamp for the time that the archive was created.public Date getCreationTime()
The time stamp for the time that the archive was created.
public Archive withCreationTime(Date creationTime)
The time stamp for the time that the archive was created.
creationTime
- The time stamp for the time that the archive was created.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.