@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class CreateReplicationPolicyDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The details to create a replication policy.
Note: Objects should always be created or deserialized using the CreateReplicationPolicyDetails.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 CreateReplicationPolicyDetails.Builder
, which maintain a
set of all explicitly set fields called CreateReplicationPolicyDetails.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 |
CreateReplicationPolicyDetails.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
CreateReplicationPolicyDetails(String name,
String destinationRegionName,
String destinationBucketName)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static CreateReplicationPolicyDetails.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 |
getName()
The name of the policy.
|
int |
hashCode() |
CreateReplicationPolicyDetails.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"name","destinationRegionName","destinationBucketName"}) public CreateReplicationPolicyDetails(String name, String destinationRegionName, String destinationBucketName)
public static CreateReplicationPolicyDetails.Builder builder()
Create a new builder.
public CreateReplicationPolicyDetails.Builder toBuilder()
public String getName()
The name of the policy. Avoid entering confidential information.
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 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.