@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class ReplicationPolicy extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The details of a replication policy.
Note: Objects should always be created or deserialized using the ReplicationPolicy.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 ReplicationPolicy.Builder
, which maintain a
set of all explicitly set fields called ReplicationPolicy.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
ReplicationPolicy.Builder |
static class |
ReplicationPolicy.Status
The replication status of the policy.
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
ReplicationPolicy(String id,
String name,
String destinationRegionName,
String destinationBucketName,
Date timeCreated,
Date timeLastSync,
ReplicationPolicy.Status status,
String statusMessage)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ReplicationPolicy.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
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.
|
ReplicationPolicy.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() |
ReplicationPolicy.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"id","name","destinationRegionName","destinationBucketName","timeCreated","timeLastSync","status","statusMessage"}) public ReplicationPolicy(String id, String name, String destinationRegionName, String destinationBucketName, Date timeCreated, Date timeLastSync, ReplicationPolicy.Status status, String statusMessage)
public static ReplicationPolicy.Builder builder()
Create a new builder.
public ReplicationPolicy.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 ReplicationPolicy.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.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.