Interface GetArchiveResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetArchiveResponse.Builder,GetArchiveResponse>,MailManagerResponse.Builder,SdkBuilder<GetArchiveResponse.Builder,GetArchiveResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetArchiveResponse
public static interface GetArchiveResponse.Builder extends MailManagerResponse.Builder, SdkPojo, CopyableBuilder<GetArchiveResponse.Builder,GetArchiveResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GetArchiveResponse.BuilderarchiveArn(String archiveArn)The Amazon Resource Name (ARN) of the archive.GetArchiveResponse.BuilderarchiveId(String archiveId)The unique identifier of the archive.GetArchiveResponse.BuilderarchiveName(String archiveName)The unique name assigned to the archive.GetArchiveResponse.BuilderarchiveState(String archiveState)The current state of the archive:GetArchiveResponse.BuilderarchiveState(ArchiveState archiveState)The current state of the archive:GetArchiveResponse.BuildercreatedTimestamp(Instant createdTimestamp)The timestamp of when the archive was created.GetArchiveResponse.BuilderkmsKeyArn(String kmsKeyArn)The Amazon Resource Name (ARN) of the KMS key used to encrypt the archive.GetArchiveResponse.BuilderlastUpdatedTimestamp(Instant lastUpdatedTimestamp)The timestamp of when the archive was modified.default GetArchiveResponse.Builderretention(Consumer<ArchiveRetention.Builder> retention)The retention period for emails in this archive.GetArchiveResponse.Builderretention(ArchiveRetention retention)The retention period for emails in this archive.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.mailmanager.model.MailManagerResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
archiveArn
GetArchiveResponse.Builder archiveArn(String archiveArn)
The Amazon Resource Name (ARN) of the archive.
- Parameters:
archiveArn- The Amazon Resource Name (ARN) of the archive.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
archiveId
GetArchiveResponse.Builder archiveId(String archiveId)
The unique identifier of the archive.
- Parameters:
archiveId- The unique identifier of the archive.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
archiveName
GetArchiveResponse.Builder archiveName(String archiveName)
The unique name assigned to the archive.
- Parameters:
archiveName- The unique name assigned to the archive.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
archiveState
GetArchiveResponse.Builder archiveState(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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ArchiveState,ArchiveState
-
-
archiveState
GetArchiveResponse.Builder archiveState(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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ArchiveState,ArchiveState
-
-
createdTimestamp
GetArchiveResponse.Builder createdTimestamp(Instant createdTimestamp)
The timestamp of when the archive was created.
- Parameters:
createdTimestamp- The timestamp of when the archive was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyArn
GetArchiveResponse.Builder kmsKeyArn(String kmsKeyArn)
The Amazon Resource Name (ARN) of the KMS key used to encrypt the archive.
- Parameters:
kmsKeyArn- The Amazon Resource Name (ARN) of the KMS key used to encrypt the archive.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdatedTimestamp
GetArchiveResponse.Builder lastUpdatedTimestamp(Instant lastUpdatedTimestamp)
The timestamp of when the archive was modified.
- Parameters:
lastUpdatedTimestamp- The timestamp of when the archive was modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retention
GetArchiveResponse.Builder retention(ArchiveRetention retention)
The retention period for emails in this archive.
- Parameters:
retention- The retention period for emails in this archive.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retention
default GetArchiveResponse.Builder retention(Consumer<ArchiveRetention.Builder> retention)
The retention period for emails in this archive.
This is a convenience method that creates an instance of theArchiveRetention.Builderavoiding the need to create one manually viaArchiveRetention.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toretention(ArchiveRetention).- Parameters:
retention- a consumer that will call methods onArchiveRetention.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
retention(ArchiveRetention)
-
-