Class ObjectReplicationPolicyRule
java.lang.Object
com.azure.resourcemanager.storage.models.ObjectReplicationPolicyRule
The replication policy rule between two containers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the destinationContainer property: Required.filters()Get the filters property: Optional.ruleId()Get the ruleId property: Rule Id is auto-generated for each new rule on destination account.Get the sourceContainer property: Required.voidvalidate()Validates the instance.withDestinationContainer(String destinationContainer) Set the destinationContainer property: Required.withFilters(ObjectReplicationPolicyFilter filters) Set the filters property: Optional.withRuleId(String ruleId) Set the ruleId property: Rule Id is auto-generated for each new rule on destination account.withSourceContainer(String sourceContainer) Set the sourceContainer property: Required.
-
Constructor Details
-
ObjectReplicationPolicyRule
public ObjectReplicationPolicyRule()
-
-
Method Details
-
ruleId
Get the ruleId property: Rule Id is auto-generated for each new rule on destination account. It is required for put policy on source account.- Returns:
- the ruleId value.
-
withRuleId
Set the ruleId property: Rule Id is auto-generated for each new rule on destination account. It is required for put policy on source account.- Parameters:
ruleId- the ruleId value to set.- Returns:
- the ObjectReplicationPolicyRule object itself.
-
sourceContainer
Get the sourceContainer property: Required. Source container name.- Returns:
- the sourceContainer value.
-
withSourceContainer
Set the sourceContainer property: Required. Source container name.- Parameters:
sourceContainer- the sourceContainer value to set.- Returns:
- the ObjectReplicationPolicyRule object itself.
-
destinationContainer
Get the destinationContainer property: Required. Destination container name.- Returns:
- the destinationContainer value.
-
withDestinationContainer
Set the destinationContainer property: Required. Destination container name.- Parameters:
destinationContainer- the destinationContainer value to set.- Returns:
- the ObjectReplicationPolicyRule object itself.
-
filters
Get the filters property: Optional. An object that defines the filter set.- Returns:
- the filters value.
-
withFilters
Set the filters property: Optional. An object that defines the filter set.- Parameters:
filters- the filters value to set.- Returns:
- the ObjectReplicationPolicyRule object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-