@Generated(value="software.amazon.awssdk:codegen") public final class Destination extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Destination.Builder,Destination>
Specifies information about where to publish analysis or configuration results for an Amazon S3 bucket.
Modifier and Type | Class and Description |
---|---|
static interface |
Destination.Builder |
Modifier and Type | Method and Description |
---|---|
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.
|
String |
account()
Destination bucket owner account ID.
|
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) |
boolean |
equalsBySdkFields(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 storage class to use when replicating objects, such as standard or reduced redundancy.
|
String |
storageClassAsString()
The storage class to use when replicating objects, such as standard or reduced redundancy.
|
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.
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.
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.
public 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.
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.public 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.
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()
.
For valid values, see the StorageClass
element of the PUT Bucket
replication action in the Amazon Simple Storage Service API Reference.
StorageClass
public String storageClassAsString()
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.
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()
.
For valid values, see the StorageClass
element of the PUT Bucket
replication action in the Amazon Simple Storage Service API Reference.
StorageClass
public 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.
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 boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
Copyright © 2019. All rights reserved.