Interface Destination.Builder

    • Method Detail

      • bucket

        Destination.Builder bucket​(String 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.Builder account​(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 AccessControlTranslation property, 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 the AccessControlTranslation property, 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

        Destination.Builder storageClass​(String 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 StorageClass element 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 StorageClass element 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, StorageClass
      • storageClass

        Destination.Builder storageClass​(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 StorageClass element 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 StorageClass element 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, StorageClass
      • accessControlTranslation

        Destination.Builder 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. 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.
      • encryptionConfiguration

        Destination.Builder encryptionConfiguration​(EncryptionConfiguration encryptionConfiguration)

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

        Parameters:
        encryptionConfiguration - A container that provides information about encryption. If SourceSelectionCriteria is specified, you must specify this element.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • replicationTime

        Destination.Builder 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. Must be specified together with a Metrics block.

        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 a Metrics block.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metrics

        Destination.Builder metrics​(Metrics 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.