@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class ReplicationPolicySummary extends Object
The summary of a replication policy.
Note: Objects should always be created or deserialized using the ReplicationPolicySummary.Builder
. This model distinguishes fields
that are null
because they are unset from fields that are explicitly set to null
. This is done in
the setter methods of the ReplicationPolicySummary.Builder
, which maintain a set of all explicitly set fields called
__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take
__explicitlySet__
into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
ReplicationPolicySummary.Builder |
static class |
ReplicationPolicySummary.Status
The replication status of the policy.
|
Constructor and Description |
---|
ReplicationPolicySummary(String id,
String name,
String destinationRegionName,
String destinationBucketName,
Date timeCreated,
Date timeLastSync,
ReplicationPolicySummary.Status status,
String statusMessage)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ReplicationPolicySummary.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
String |
getDestinationBucketName()
The bucket to replicate to in the destination region.
|
String |
getDestinationRegionName()
The destination region to replicate to, for example "us-ashburn-1".
|
String |
getId()
The id of the replication policy.
|
String |
getName()
The name of the policy.
|
ReplicationPolicySummary.Status |
getStatus()
The replication status of the policy.
|
String |
getStatusMessage()
A human-readable description of the status.
|
Date |
getTimeCreated()
The date when the replication policy was created as per RFC 3339.
|
Date |
getTimeLastSync()
Changes made to the source bucket before this time has been replicated.
|
int |
hashCode() |
ReplicationPolicySummary.Builder |
toBuilder() |
String |
toString() |
@ConstructorProperties(value={"id","name","destinationRegionName","destinationBucketName","timeCreated","timeLastSync","status","statusMessage"}) @Deprecated public ReplicationPolicySummary(String id, String name, String destinationRegionName, String destinationBucketName, Date timeCreated, Date timeLastSync, ReplicationPolicySummary.Status status, String statusMessage)
public static ReplicationPolicySummary.Builder builder()
Create a new builder.
public ReplicationPolicySummary.Builder toBuilder()
public String getId()
The id of the replication policy.
public String getName()
The name of the policy.
public String getDestinationRegionName()
The destination region to replicate to, for example "us-ashburn-1".
public String getDestinationBucketName()
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.
public Date getTimeCreated()
The date when the replication policy was created as per RFC 3339.
public Date getTimeLastSync()
Changes made to the source bucket before this time has been replicated.
public ReplicationPolicySummary.Status getStatus()
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.
public String getStatusMessage()
A human-readable description of the status.
Copyright © 2016–2021. All rights reserved.