public static class ReplicationPolicy.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ReplicationPolicy |
build() |
ReplicationPolicy.Builder |
copy(ReplicationPolicy model) |
ReplicationPolicy.Builder |
destinationBucketName(String destinationBucketName)
The bucket to replicate to in the destination region.
|
ReplicationPolicy.Builder |
destinationRegionName(String destinationRegionName)
The destination region to replicate to, for example “us-ashburn-1”.
|
ReplicationPolicy.Builder |
id(String id)
The id of the replication policy.
|
ReplicationPolicy.Builder |
name(String name)
The name of the policy.
|
ReplicationPolicy.Builder |
status(ReplicationPolicy.Status status)
The replication status of the policy.
|
ReplicationPolicy.Builder |
statusMessage(String statusMessage)
A human-readable description of the status.
|
ReplicationPolicy.Builder |
timeCreated(Date timeCreated)
The date when the replication policy was created as per RFC
3339.
|
ReplicationPolicy.Builder |
timeLastSync(Date timeLastSync)
Changes made to the source bucket before this time has been replicated.
|
public ReplicationPolicy.Builder id(String id)
The id of the replication policy.
id
- the value to setpublic ReplicationPolicy.Builder name(String name)
The name of the policy.
name
- the value to setpublic ReplicationPolicy.Builder destinationRegionName(String destinationRegionName)
The destination region to replicate to, for example “us-ashburn-1”.
destinationRegionName
- the value to setpublic 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.
destinationBucketName
- the value to setpublic ReplicationPolicy.Builder timeCreated(Date timeCreated)
The date when the replication policy was created as per RFC 3339.
timeCreated
- the value to setpublic ReplicationPolicy.Builder timeLastSync(Date timeLastSync)
Changes made to the source bucket before this time has been replicated.
timeLastSync
- the value to setpublic 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.
status
- the value to setpublic ReplicationPolicy.Builder statusMessage(String statusMessage)
A human-readable description of the status.
statusMessage
- the value to setpublic ReplicationPolicy build()
public ReplicationPolicy.Builder copy(ReplicationPolicy model)
Copyright © 2016–2024. All rights reserved.