public class ObjectReplicationPolicyInner
extends com.azure.core.management.ProxyResource
| Constructor and Description |
|---|
ObjectReplicationPolicyInner() |
| Modifier and Type | Method and Description |
|---|---|
String |
destinationAccount()
Get the destinationAccount property: Required.
|
OffsetDateTime |
enabledTime()
Get the enabledTime property: Indicates when the policy is enabled on the source account.
|
String |
policyId()
Get the policyId property: A unique id for object replication policy.
|
List<ObjectReplicationPolicyRule> |
rules()
Get the rules property: The storage account object replication rules.
|
String |
sourceAccount()
Get the sourceAccount property: Required.
|
void |
validate()
Validates the instance.
|
ObjectReplicationPolicyInner |
withDestinationAccount(String destinationAccount)
Set the destinationAccount property: Required.
|
ObjectReplicationPolicyInner |
withRules(List<ObjectReplicationPolicyRule> rules)
Set the rules property: The storage account object replication rules.
|
ObjectReplicationPolicyInner |
withSourceAccount(String sourceAccount)
Set the sourceAccount property: Required.
|
public String policyId()
public OffsetDateTime enabledTime()
public String sourceAccount()
public ObjectReplicationPolicyInner withSourceAccount(String sourceAccount)
sourceAccount - the sourceAccount value to set.public String destinationAccount()
public ObjectReplicationPolicyInner withDestinationAccount(String destinationAccount)
destinationAccount - the destinationAccount value to set.public List<ObjectReplicationPolicyRule> rules()
public ObjectReplicationPolicyInner withRules(List<ObjectReplicationPolicyRule> rules)
rules - the rules value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.