Class Destination
- java.lang.Object
-
- software.amazon.awssdk.services.s3.model.Destination
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Destination.Builder,Destination>
@Generated("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 and S3 Replication Time Control (S3 RTC).
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDestination.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessControlTranslationaccessControlTranslation()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.Stringaccount()Destination bucket owner account ID.Stringbucket()The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results.static Destination.Builderbuilder()EncryptionConfigurationencryptionConfiguration()A container that provides information about encryption.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Metricsmetrics()A container specifying replication metrics-related settings enabling replication metrics and events.ReplicationTimereplicationTime()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.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Destination.Builder>serializableBuilderClass()StorageClassstorageClass()The storage class to use when replicating objects, such as S3 Standard or reduced redundancy.StringstorageClassAsString()The storage class to use when replicating objects, such as S3 Standard or reduced redundancy.Destination.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
bucket
public final String bucket()
The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results.
- Returns:
- The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results.
-
account
public final String 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.- Returns:
- 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.
-
storageClass
public final StorageClass 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.FSX_OPENZFSis not an accepted value when replicating objects.If the service returns an enum value that is not available in the current SDK version,
storageClasswill returnStorageClass.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstorageClassAsString().- Returns:
- 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.FSX_OPENZFSis not an accepted value when replicating objects. - See Also:
StorageClass
-
storageClassAsString
public final String storageClassAsString()
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.FSX_OPENZFSis not an accepted value when replicating objects.If the service returns an enum value that is not available in the current SDK version,
storageClasswill returnStorageClass.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstorageClassAsString().- Returns:
- 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.FSX_OPENZFSis not an accepted value when replicating objects. - See Also:
StorageClass
-
accessControlTranslation
public final 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. 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:
- 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.
-
encryptionConfiguration
public final EncryptionConfiguration encryptionConfiguration()
A container that provides information about encryption. If
SourceSelectionCriteriais specified, you must specify this element.- Returns:
- A container that provides information about encryption. If
SourceSelectionCriteriais specified, you must specify this element.
-
replicationTime
public final 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. Must be specified together with a
Metricsblock.- Returns:
- 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.
-
metrics
public final Metrics metrics()
A container specifying replication metrics-related settings enabling replication metrics and events.
- Returns:
- A container specifying replication metrics-related settings enabling replication metrics and events.
-
toBuilder
public Destination.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Destination.Builder,Destination>
-
builder
public static Destination.Builder builder()
-
serializableBuilderClass
public static Class<? extends Destination.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-