ObjectReplicationPolicyInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. storage. fluent. models. ObjectReplicationPolicyInner
- com.
- com.
public final class ObjectReplicationPolicyInner
extends ProxyResource
The replication policy between two storage accounts. Multiple rules can be defined in one policy.
Constructor Summary
Constructor | Description |
---|---|
ObjectReplicationPolicyInner() |
Creates an instance of Object |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
destinationAccount()
Get the destination |
Offset |
enabledTime()
Get the enabled |
static
Object |
fromJson(JsonReader jsonReader)
Reads an instance of Object |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
name()
Get the name property: The name of the resource. |
String |
policyId()
Get the policy |
List<Object |
rules()
Get the rules property: The storage account object replication rules. |
String |
sourceAccount()
Get the source |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Object |
withDestinationAccount(String destinationAccount)
Set the destination |
Object |
withRules(List<ObjectReplicationPolicyRule> rules)
Set the rules property: The storage account object replication rules. |
Object |
withSourceAccount(String sourceAccount)
Set the source |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
ObjectReplicationPolicyInner
public ObjectReplicationPolicyInner()
Creates an instance of ObjectReplicationPolicyInner class.
Method Details
destinationAccount
public String destinationAccount()
Get the destinationAccount property: Required. Destination account name. It should be full resource id if allowCrossTenantReplication set to false.
Returns:
enabledTime
public OffsetDateTime enabledTime()
Get the enabledTime property: Indicates when the policy is enabled on the source account.
Returns:
fromJson
public static ObjectReplicationPolicyInner fromJson(JsonReader jsonReader)
Reads an instance of ObjectReplicationPolicyInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
ObjectReplicationPolicyInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
ObjectReplicationPolicyInner.name()Returns:
policyId
public String policyId()
Get the policyId property: A unique id for object replication policy.
Returns:
rules
public List
Get the rules property: The storage account object replication rules.
Returns:
sourceAccount
public String sourceAccount()
Get the sourceAccount property: Required. Source account name. It should be full resource id if allowCrossTenantReplication set to false.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ObjectReplicationPolicyInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
ObjectReplicationPolicyInner.type()Returns:
validate
public void validate()
Validates the instance.
withDestinationAccount
public ObjectReplicationPolicyInner withDestinationAccount(String destinationAccount)
Set the destinationAccount property: Required. Destination account name. It should be full resource id if allowCrossTenantReplication set to false.
Parameters:
Returns:
withRules
public ObjectReplicationPolicyInner withRules(List
Set the rules property: The storage account object replication rules.
Parameters:
Returns:
withSourceAccount
public ObjectReplicationPolicyInner withSourceAccount(String sourceAccount)
Set the sourceAccount property: Required. Source account name. It should be full resource id if allowCrossTenantReplication set to false.
Parameters:
Returns:
Applies to
Azure SDK for Java