@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetArchiveResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
The response containing details of the requested archive.
Constructor and Description |
---|
GetArchiveResult() |
Modifier and Type | Method and Description |
---|---|
GetArchiveResult |
clone() |
boolean |
equals(Object obj) |
String |
getArchiveArn()
The Amazon Resource Name (ARN) of the archive.
|
String |
getArchiveId()
The unique identifier of the archive.
|
String |
getArchiveName()
The unique name assigned to the archive.
|
String |
getArchiveState()
The current state of the archive:
|
Date |
getCreatedTimestamp()
The timestamp of when the archive was created.
|
String |
getKmsKeyArn()
The Amazon Resource Name (ARN) of the KMS key used to encrypt the archive.
|
Date |
getLastUpdatedTimestamp()
The timestamp of when the archive was modified.
|
ArchiveRetention |
getRetention()
The retention period for emails in this archive.
|
int |
hashCode() |
void |
setArchiveArn(String archiveArn)
The Amazon Resource Name (ARN) of the archive.
|
void |
setArchiveId(String archiveId)
The unique identifier of the archive.
|
void |
setArchiveName(String archiveName)
The unique name assigned to the archive.
|
void |
setArchiveState(String archiveState)
The current state of the archive:
|
void |
setCreatedTimestamp(Date createdTimestamp)
The timestamp of when the archive was created.
|
void |
setKmsKeyArn(String kmsKeyArn)
The Amazon Resource Name (ARN) of the KMS key used to encrypt the archive.
|
void |
setLastUpdatedTimestamp(Date lastUpdatedTimestamp)
The timestamp of when the archive was modified.
|
void |
setRetention(ArchiveRetention retention)
The retention period for emails in this archive.
|
String |
toString()
Returns a string representation of this object.
|
GetArchiveResult |
withArchiveArn(String archiveArn)
The Amazon Resource Name (ARN) of the archive.
|
GetArchiveResult |
withArchiveId(String archiveId)
The unique identifier of the archive.
|
GetArchiveResult |
withArchiveName(String archiveName)
The unique name assigned to the archive.
|
GetArchiveResult |
withArchiveState(ArchiveState archiveState)
The current state of the archive:
|
GetArchiveResult |
withArchiveState(String archiveState)
The current state of the archive:
|
GetArchiveResult |
withCreatedTimestamp(Date createdTimestamp)
The timestamp of when the archive was created.
|
GetArchiveResult |
withKmsKeyArn(String kmsKeyArn)
The Amazon Resource Name (ARN) of the KMS key used to encrypt the archive.
|
GetArchiveResult |
withLastUpdatedTimestamp(Date lastUpdatedTimestamp)
The timestamp of when the archive was modified.
|
GetArchiveResult |
withRetention(ArchiveRetention retention)
The retention period for emails in this archive.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setArchiveArn(String archiveArn)
The Amazon Resource Name (ARN) of the archive.
archiveArn
- The Amazon Resource Name (ARN) of the archive.public String getArchiveArn()
The Amazon Resource Name (ARN) of the archive.
public GetArchiveResult withArchiveArn(String archiveArn)
The Amazon Resource Name (ARN) of the archive.
archiveArn
- The Amazon Resource Name (ARN) of the archive.public void setArchiveId(String archiveId)
The unique identifier of the archive.
archiveId
- The unique identifier of the archive.public String getArchiveId()
The unique identifier of the archive.
public GetArchiveResult withArchiveId(String archiveId)
The unique identifier of the archive.
archiveId
- The unique identifier of the archive.public void setArchiveName(String archiveName)
The unique name assigned to the archive.
archiveName
- The unique name assigned to the archive.public String getArchiveName()
The unique name assigned to the archive.
public GetArchiveResult withArchiveName(String archiveName)
The unique name assigned to the archive.
archiveName
- The unique name assigned to the archive.public void setArchiveState(String 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.
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.
ArchiveState
public String getArchiveState()
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.
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.
ArchiveState
public GetArchiveResult withArchiveState(String 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.
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.
ArchiveState
public GetArchiveResult withArchiveState(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.
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.
ArchiveState
public void setCreatedTimestamp(Date createdTimestamp)
The timestamp of when the archive was created.
createdTimestamp
- The timestamp of when the archive was created.public Date getCreatedTimestamp()
The timestamp of when the archive was created.
public GetArchiveResult withCreatedTimestamp(Date createdTimestamp)
The timestamp of when the archive was created.
createdTimestamp
- The timestamp of when the archive was created.public void setKmsKeyArn(String kmsKeyArn)
The Amazon Resource Name (ARN) of the KMS key used to encrypt the archive.
kmsKeyArn
- The Amazon Resource Name (ARN) of the KMS key used to encrypt the archive.public String getKmsKeyArn()
The Amazon Resource Name (ARN) of the KMS key used to encrypt the archive.
public GetArchiveResult withKmsKeyArn(String kmsKeyArn)
The Amazon Resource Name (ARN) of the KMS key used to encrypt the archive.
kmsKeyArn
- The Amazon Resource Name (ARN) of the KMS key used to encrypt the archive.public void setLastUpdatedTimestamp(Date lastUpdatedTimestamp)
The timestamp of when the archive was modified.
lastUpdatedTimestamp
- The timestamp of when the archive was modified.public Date getLastUpdatedTimestamp()
The timestamp of when the archive was modified.
public GetArchiveResult withLastUpdatedTimestamp(Date lastUpdatedTimestamp)
The timestamp of when the archive was modified.
lastUpdatedTimestamp
- The timestamp of when the archive was modified.public void setRetention(ArchiveRetention retention)
The retention period for emails in this archive.
retention
- The retention period for emails in this archive.public ArchiveRetention getRetention()
The retention period for emails in this archive.
public GetArchiveResult withRetention(ArchiveRetention retention)
The retention period for emails in this archive.
retention
- The retention period for emails in this archive.public String toString()
toString
in class Object
Object.toString()
public GetArchiveResult clone()