Class ReplicationPolicy.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • destinationRegionName

        public ReplicationPolicy.Builder destinationRegionName​(String destinationRegionName)
        The destination region to replicate to, for example “us-ashburn-1”.
        Parameters:
        destinationRegionName - the value to set
        Returns:
        this builder
      • destinationBucketName

        public ReplicationPolicy.Builder destinationBucketName​(String destinationBucketName)
        The bucket to replicate to in the destination region.

        Replication policy creation does not automatically create a destination bucket. Create the destination bucket before creating the policy.

        Parameters:
        destinationBucketName - the value to set
        Returns:
        this builder
      • timeCreated

        public ReplicationPolicy.Builder timeCreated​(Date timeCreated)
        The date when the replication policy was created as per RFC 3339.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeLastSync

        public ReplicationPolicy.Builder timeLastSync​(Date timeLastSync)
        Changes made to the source bucket before this time has been replicated.
        Parameters:
        timeLastSync - the value to set
        Returns:
        this builder
      • status

        public ReplicationPolicy.Builder status​(ReplicationPolicy.Status status)
        The replication status of the policy.

        If the status is CLIENT_ERROR, once the user fixes the issue described in the status message, the status will become ACTIVE.

        Parameters:
        status - the value to set
        Returns:
        this builder
      • statusMessage

        public ReplicationPolicy.Builder statusMessage​(String statusMessage)
        A human-readable description of the status.
        Parameters:
        statusMessage - the value to set
        Returns:
        this builder