@Generated(value="software.amazon.awssdk:codegen") public final class Destination extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Destination.Builder,Destination>
A container for information about the replication destination.
Modifier and Type | Class and Description |
---|---|
static interface |
Destination.Builder |
Modifier and Type | Method and Description |
---|---|
AccessControlTranslation |
accessControlTranslation()
A container for information about access control for replicas.
|
String |
account()
The account ID of the destination 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.
|
static Destination.Builder |
builder() |
EncryptionConfiguration |
encryptionConfiguration()
A container that provides information about encryption.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Destination.Builder> |
serializableBuilderClass() |
StorageClass |
storageClass()
The class of storage used to store the object.
|
String |
storageClassAsString()
The class of storage used to store the object.
|
Destination.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public 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.
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.
public 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.
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.
public 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.
If the service returns an enum value that is not available in the current SDK version, storageClass
will
return StorageClass.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
storageClassAsString()
.
StorageClass
public String storageClassAsString()
The class of storage used to store the object. By default Amazon S3 uses storage class of the source object when creating a replica.
If the service returns an enum value that is not available in the current SDK version, storageClass
will
return StorageClass.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
storageClassAsString()
.
StorageClass
public 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.
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.
public EncryptionConfiguration encryptionConfiguration()
A container that provides information about encryption. If SourceSelectionCriteria
is specified, you
must specify this element.
SourceSelectionCriteria
is
specified, you must specify this element.public Destination.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<Destination.Builder,Destination>
public static Destination.Builder builder()
public static Class<? extends Destination.Builder> serializableBuilderClass()
public String toString()
Copyright © 2019. All rights reserved.