public static interface Destination.Builder extends SdkPojo, CopyableBuilder<Destination.Builder,Destination>
Modifier and Type | Method and Description |
---|---|
Destination.Builder |
accessControlTranslation(AccessControlTranslation accessControlTranslation)
Specify this only in a cross-account scenario (where source and destination bucket owners are not the same),
and you want to change replica ownership to the AWS account that owns the destination bucket.
|
default Destination.Builder |
accessControlTranslation(Consumer<AccessControlTranslation.Builder> accessControlTranslation)
Specify this only in a cross-account scenario (where source and destination bucket owners are not the same),
and you want to change replica ownership to the AWS account that owns the destination bucket.
|
Destination.Builder |
account(String account)
Destination bucket owner account ID.
|
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 storage class to use when replicating objects, such as standard or reduced redundancy.
|
Destination.Builder |
storageClass(String storageClass)
The storage class to use when replicating objects, such as standard or reduced redundancy.
|
equalsBySdkFields, sdkFields
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.
A replication configuration can replicate objects to only one destination bucket. If there are multiple rules in your replication configuration, all rules must specify the same 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.
A replication configuration can replicate objects to only one destination bucket. If there are multiple rules in your replication configuration, all rules must specify the same destination bucket.
Destination.Builder account(String account)
Destination bucket owner account ID. In a cross-account scenario, if you direct Amazon S3 to change replica
ownership to the AWS account that owns the destination bucket by specifying the
AccessControlTranslation
property, this is the account ID of the destination bucket owner. For
more information, see Cross-Region Replication
Additional Configuration: Change Replica Owner in the Amazon Simple Storage Service Developer
Guide.
account
- Destination bucket owner account ID. In a cross-account scenario, if you direct Amazon S3 to change
replica ownership to the AWS account that owns the destination bucket by specifying the
AccessControlTranslation
property, this is the account ID of the destination bucket
owner. For more information, see Cross-Region Replication
Additional Configuration: Change Replica Owner in the Amazon Simple Storage Service Developer
Guide.Destination.Builder storageClass(String storageClass)
The storage class to use when replicating objects, such as standard or reduced redundancy. By default, Amazon S3 uses the storage class of the source object to create the object replica.
For valid values, see the StorageClass
element of the PUT Bucket
replication action in the Amazon Simple Storage Service API Reference.
storageClass
- The storage class to use when replicating objects, such as standard or reduced redundancy. By default,
Amazon S3 uses the storage class of the source object to create the object replica.
For valid values, see the StorageClass
element of the PUT Bucket
replication action in the Amazon Simple Storage Service API Reference.
StorageClass
,
StorageClass
Destination.Builder storageClass(StorageClass storageClass)
The storage class to use when replicating objects, such as standard or reduced redundancy. By default, Amazon S3 uses the storage class of the source object to create the object replica.
For valid values, see the StorageClass
element of the PUT Bucket
replication action in the Amazon Simple Storage Service API Reference.
storageClass
- The storage class to use when replicating objects, such as standard or reduced redundancy. By default,
Amazon S3 uses the storage class of the source object to create the object replica.
For valid values, see the StorageClass
element of the PUT Bucket
replication action in the Amazon Simple Storage Service API Reference.
StorageClass
,
StorageClass
Destination.Builder accessControlTranslation(AccessControlTranslation accessControlTranslation)
Specify this only in a cross-account scenario (where source and destination bucket owners are not the same), and you want to change replica ownership to the AWS account that owns the destination bucket. If this is not specified in the replication configuration, the replicas are owned by same AWS account that owns the source object.
accessControlTranslation
- Specify this only in a cross-account scenario (where source and destination bucket owners are not the
same), and you want to change replica ownership to the AWS account that owns the destination bucket.
If this is not specified in the replication configuration, the replicas are owned by same AWS account
that owns the source object.default Destination.Builder accessControlTranslation(Consumer<AccessControlTranslation.Builder> accessControlTranslation)
Specify this only in a cross-account scenario (where source and destination bucket owners are not the same), and you want to change replica ownership to the AWS account that owns the destination bucket. If this is not specified in 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 © 2019. All rights reserved.