Interface Destination.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Destination.Builder,,Destination> SdkBuilder<Destination.Builder,,Destination> SdkPojo
- Enclosing class:
Destination
-
Method Summary
Modifier and TypeMethodDescriptiondefault Destination.BuilderaccessControlTranslation(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 Amazon Web Services account that owns the destination bucket.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 Amazon Web Services account that owns the destination bucket.Destination bucket owner account ID.The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results.default Destination.BuilderencryptionConfiguration(Consumer<EncryptionConfiguration.Builder> encryptionConfiguration) A container that provides information about encryption.encryptionConfiguration(EncryptionConfiguration encryptionConfiguration) A container that provides information about encryption.default Destination.Buildermetrics(Consumer<Metrics.Builder> metrics) A container specifying replication metrics-related settings enabling replication metrics and events.A container specifying replication metrics-related settings enabling replication metrics and events.default Destination.BuilderreplicationTime(Consumer<ReplicationTime.Builder> replicationTime) A container specifying S3 Replication Time Control (S3 RTC), including whether S3 RTC is enabled and the time when all objects and operations on objects must be replicated.replicationTime(ReplicationTime replicationTime) A container specifying S3 Replication Time Control (S3 RTC), including whether S3 RTC is enabled and the time when all objects and operations on objects must be replicated.storageClass(String storageClass) The storage class to use when replicating objects, such as S3 Standard or reduced redundancy.storageClass(StorageClass storageClass) The storage class to use when replicating objects, such as S3 Standard or reduced redundancy.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
bucket
The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results.
- Parameters:
bucket- The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
account
Destination bucket owner account ID. In a cross-account scenario, if you direct Amazon S3 to change replica ownership to the Amazon Web Services account that owns the destination bucket by specifying the
AccessControlTranslationproperty, this is the account ID of the destination bucket owner. For more information, see Replication Additional Configuration: Changing the Replica Owner in the Amazon S3 User Guide.- Parameters:
account- Destination bucket owner account ID. In a cross-account scenario, if you direct Amazon S3 to change replica ownership to the Amazon Web Services account that owns the destination bucket by specifying theAccessControlTranslationproperty, this is the account ID of the destination bucket owner. For more information, see Replication Additional Configuration: Changing the Replica Owner in the Amazon S3 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageClass
The storage class to use when replicating objects, such as S3 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
StorageClasselement of the PUT Bucket replication action in the Amazon S3 API Reference.- Parameters:
storageClass- The storage class to use when replicating objects, such as S3 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
StorageClasselement of the PUT Bucket replication action in the Amazon S3 API Reference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
storageClass
The storage class to use when replicating objects, such as S3 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
StorageClasselement of the PUT Bucket replication action in the Amazon S3 API Reference.- Parameters:
storageClass- The storage class to use when replicating objects, such as S3 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
StorageClasselement of the PUT Bucket replication action in the Amazon S3 API Reference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 Amazon Web Services account that owns the destination bucket. If this is not specified in the replication configuration, the replicas are owned by same Amazon Web Services account that owns the source object.
- Parameters:
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 Amazon Web Services account that owns the destination bucket. If this is not specified in the replication configuration, the replicas are owned by same Amazon Web Services account that owns the source object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessControlTranslation
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 Amazon Web Services account that owns the destination bucket. If this is not specified in the replication configuration, the replicas are owned by same Amazon Web Services account that owns the source object.
This is a convenience method that creates an instance of theAccessControlTranslation.Builderavoiding the need to create one manually viaAccessControlTranslation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaccessControlTranslation(AccessControlTranslation).- Parameters:
accessControlTranslation- a consumer that will call methods onAccessControlTranslation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
encryptionConfiguration
A container that provides information about encryption. If
SourceSelectionCriteriais specified, you must specify this element.- Parameters:
encryptionConfiguration- A container that provides information about encryption. IfSourceSelectionCriteriais specified, you must specify this element.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encryptionConfiguration
default Destination.Builder encryptionConfiguration(Consumer<EncryptionConfiguration.Builder> encryptionConfiguration) A container that provides information about encryption. If
This is a convenience method that creates an instance of theSourceSelectionCriteriais specified, you must specify this element.EncryptionConfiguration.Builderavoiding the need to create one manually viaEncryptionConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toencryptionConfiguration(EncryptionConfiguration).- Parameters:
encryptionConfiguration- a consumer that will call methods onEncryptionConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
replicationTime
A container specifying S3 Replication Time Control (S3 RTC), including whether S3 RTC is enabled and the time when all objects and operations on objects must be replicated. Must be specified together with a
Metricsblock.- Parameters:
replicationTime- A container specifying S3 Replication Time Control (S3 RTC), including whether S3 RTC is enabled and the time when all objects and operations on objects must be replicated. Must be specified together with aMetricsblock.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replicationTime
A container specifying S3 Replication Time Control (S3 RTC), including whether S3 RTC is enabled and the time when all objects and operations on objects must be replicated. Must be specified together with a
This is a convenience method that creates an instance of theMetricsblock.ReplicationTime.Builderavoiding the need to create one manually viaReplicationTime.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toreplicationTime(ReplicationTime).- Parameters:
replicationTime- a consumer that will call methods onReplicationTime.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metrics
A container specifying replication metrics-related settings enabling replication metrics and events.
- Parameters:
metrics- A container specifying replication metrics-related settings enabling replication metrics and events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
A container specifying replication metrics-related settings enabling replication metrics and events.
This is a convenience method that creates an instance of theMetrics.Builderavoiding the need to create one manually viaMetrics.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometrics(Metrics).- Parameters:
metrics- a consumer that will call methods onMetrics.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-