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