java.lang.Object
software.amazon.awssdk.services.s3control.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 the replication destination bucket and its settings for an S3 on Outposts replication configuration.

See Also:
  • Method Details

    • account

      public final String account()

      The destination bucket owner's account ID.

      Returns:
      The destination bucket owner's account ID.
    • bucket

      public final String bucket()

      The Amazon Resource Name (ARN) of the access point for the destination bucket where you want S3 on Outposts to store the replication results.

      Returns:
      The Amazon Resource Name (ARN) of the access point for the destination bucket where you want S3 on Outposts to store the replication results.
    • replicationTime

      public final ReplicationTime replicationTime()

      A container that specifies S3 Replication Time Control (S3 RTC) settings, 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 Metrics block.

      This is not supported by Amazon S3 on Outposts buckets.

      Returns:
      A container that specifies S3 Replication Time Control (S3 RTC) settings, 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 Metrics block.

      This is not supported by Amazon S3 on Outposts buckets.

    • accessControlTranslation

      public final AccessControlTranslation accessControlTranslation()

      Specify this property only in a cross-account scenario (where the 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 property is not specified in the replication configuration, the replicas are owned by same Amazon Web Services account that owns the source object.

      This is not supported by Amazon S3 on Outposts buckets.

      Returns:
      Specify this property only in a cross-account scenario (where the 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 property is not specified in the replication configuration, the replicas are owned by same Amazon Web Services account that owns the source object.

      This is not supported by Amazon S3 on Outposts buckets.

    • encryptionConfiguration

      public final EncryptionConfiguration encryptionConfiguration()

      A container that provides information about encryption. If SourceSelectionCriteria is specified, you must specify this element.

      This is not supported by Amazon S3 on Outposts buckets.

      Returns:
      A container that provides information about encryption. If SourceSelectionCriteria is specified, you must specify this element.

      This is not supported by Amazon S3 on Outposts buckets.

    • metrics

      public final Metrics metrics()

      A container that specifies replication metrics-related settings.

      Returns:
      A container that specifies replication metrics-related settings.
    • storageClass

      public final ReplicationStorageClass storageClass()

      The storage class to use when replicating objects. All objects stored on S3 on Outposts are stored in the OUTPOSTS storage class. S3 on Outposts uses the OUTPOSTS storage class to create the object replicas.

      Values other than OUTPOSTS aren't supported by Amazon S3 on Outposts.

      If the service returns an enum value that is not available in the current SDK version, storageClass will return ReplicationStorageClass.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from storageClassAsString().

      Returns:
      The storage class to use when replicating objects. All objects stored on S3 on Outposts are stored in the OUTPOSTS storage class. S3 on Outposts uses the OUTPOSTS storage class to create the object replicas.

      Values other than OUTPOSTS aren't supported by Amazon S3 on Outposts.

      See Also:
    • storageClassAsString

      public final String storageClassAsString()

      The storage class to use when replicating objects. All objects stored on S3 on Outposts are stored in the OUTPOSTS storage class. S3 on Outposts uses the OUTPOSTS storage class to create the object replicas.

      Values other than OUTPOSTS aren't supported by Amazon S3 on Outposts.

      If the service returns an enum value that is not available in the current SDK version, storageClass will return ReplicationStorageClass.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from storageClassAsString().

      Returns:
      The storage class to use when replicating objects. All objects stored on S3 on Outposts are stored in the OUTPOSTS storage class. S3 on Outposts uses the OUTPOSTS storage class to create the object replicas.

      Values other than OUTPOSTS aren't supported by Amazon S3 on Outposts.

      See Also:
    • toBuilder

      public Destination.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<Destination.Builder,Destination>
      Returns:
      a builder for type T
    • builder

      public static Destination.Builder builder()
    • serializableBuilderClass

      public static Class<? extends Destination.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.