public static interface Destination.Builder extends SdkPojo, CopyableBuilder<Destination.Builder,Destination>
Modifier and Type | Method and Description |
---|---|
Destination.Builder |
accessControlTranslation(AccessControlTranslation accessControlTranslation)
A container for information about access control for replicas.
|
default Destination.Builder |
accessControlTranslation(Consumer<AccessControlTranslation.Builder> accessControlTranslation)
A container for information about access control for replicas.
|
Destination.Builder |
account(String account)
The account ID of the destination bucket.
|
Destination.Builder |
bucket(String bucket)
The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store replicas of the object
identified by the rule.
|
default Destination.Builder |
encryptionConfiguration(Consumer<EncryptionConfiguration.Builder> encryptionConfiguration)
A container that provides information about encryption.
|
Destination.Builder |
encryptionConfiguration(EncryptionConfiguration encryptionConfiguration)
A container that provides information about encryption.
|
Destination.Builder |
storageClass(StorageClass storageClass)
The class of storage used to store the object.
|
Destination.Builder |
storageClass(String storageClass)
The class of storage used to store the object.
|
copy
applyMutation, build
Destination.Builder bucket(String bucket)
The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store replicas of the object identified by the rule.
If there are multiple rules in your replication configuration, all rules must specify the same bucket as the destination. A replication configuration can replicate objects to only one destination bucket.
bucket
- The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store replicas of the object
identified by the rule.
If there are multiple rules in your replication configuration, all rules must specify the same bucket as the destination. A replication configuration can replicate objects to only one destination bucket.
Destination.Builder account(String account)
The account ID of the destination bucket. Currently, Amazon S3 verifies this value only if Access Control Translation is enabled.
In a cross-account scenario, if you change replica ownership to the AWS account that owns the destination
bucket by adding the AccessControlTranslation
element, this is the account ID of the owner of
the destination bucket.
account
- The account ID of the destination bucket. Currently, Amazon S3 verifies this value only if Access
Control Translation is enabled.
In a cross-account scenario, if you change replica ownership to the AWS account that owns the
destination bucket by adding the AccessControlTranslation
element, this is the account ID
of the owner of the destination bucket.
Destination.Builder storageClass(String storageClass)
The class of storage used to store the object. By default Amazon S3 uses storage class of the source object when creating a replica.
storageClass
- The class of storage used to store the object. By default Amazon S3 uses storage class of the source
object when creating a replica.StorageClass
,
StorageClass
Destination.Builder storageClass(StorageClass storageClass)
The class of storage used to store the object. By default Amazon S3 uses storage class of the source object when creating a replica.
storageClass
- The class of storage used to store the object. By default Amazon S3 uses storage class of the source
object when creating a replica.StorageClass
,
StorageClass
Destination.Builder accessControlTranslation(AccessControlTranslation accessControlTranslation)
A container for information about access control for replicas.
Use this element only in a cross-account scenario where source and destination bucket owners are not the same to change replica ownership to the AWS account that owns the destination bucket. If you don't add this element to the replication configuration, the replicas are owned by same AWS account that owns the source object.
accessControlTranslation
- A container for information about access control for replicas.
Use this element only in a cross-account scenario where source and destination bucket owners are not the same to change replica ownership to the AWS account that owns the destination bucket. If you don't add this element to the replication configuration, the replicas are owned by same AWS account that owns the source object.
default Destination.Builder accessControlTranslation(Consumer<AccessControlTranslation.Builder> accessControlTranslation)
A container for information about access control for replicas.
Use this element only in a cross-account scenario where source and destination bucket owners are not the same to change replica ownership to the AWS account that owns the destination bucket. If you don't add this element to the replication configuration, the replicas are owned by same AWS account that owns the source object.
This is a convenience that creates an instance of theAccessControlTranslation.Builder
avoiding the
need to create one manually via AccessControlTranslation.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to accessControlTranslation(AccessControlTranslation)
.accessControlTranslation
- a consumer that will call methods on AccessControlTranslation.Builder
accessControlTranslation(AccessControlTranslation)
Destination.Builder encryptionConfiguration(EncryptionConfiguration encryptionConfiguration)
A container that provides information about encryption. If SourceSelectionCriteria
is specified,
you must specify this element.
encryptionConfiguration
- A container that provides information about encryption. If SourceSelectionCriteria
is
specified, you must specify this element.default Destination.Builder encryptionConfiguration(Consumer<EncryptionConfiguration.Builder> encryptionConfiguration)
A container that provides information about encryption. If SourceSelectionCriteria
is specified,
you must specify this element.
EncryptionConfiguration.Builder
avoiding the
need to create one manually via EncryptionConfiguration.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to encryptionConfiguration(EncryptionConfiguration)
.encryptionConfiguration
- a consumer that will call methods on EncryptionConfiguration.Builder
encryptionConfiguration(EncryptionConfiguration)
Copyright © 2018. All rights reserved.