ObjectReplicationPolicyRule Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. ObjectReplicationPolicyRule
- com.
Implements
public final class ObjectReplicationPolicyRule
implements JsonSerializable<ObjectReplicationPolicyRule>
The replication policy rule between two containers.
Constructor Summary
Constructor | Description |
---|---|
ObjectReplicationPolicyRule() |
Creates an instance of Object |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
destinationContainer()
Get the destination |
Object |
filters()
Get the filters property: Optional. |
static
Object |
fromJson(JsonReader jsonReader)
Reads an instance of Object |
String |
ruleId()
Get the rule |
String |
sourceContainer()
Get the source |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Object |
withDestinationContainer(String destinationContainer)
Set the destination |
Object |
withFilters(ObjectReplicationPolicyFilter filters)
Set the filters property: Optional. |
Object |
withRuleId(String ruleId)
Set the rule |
Object |
withSourceContainer(String sourceContainer)
Set the source |
Methods inherited from java.lang.Object
Constructor Details
ObjectReplicationPolicyRule
public ObjectReplicationPolicyRule()
Creates an instance of ObjectReplicationPolicyRule class.
Method Details
destinationContainer
public String destinationContainer()
Get the destinationContainer property: Required. Destination container name.
Returns:
filters
public ObjectReplicationPolicyFilter filters()
Get the filters property: Optional. An object that defines the filter set.
Returns:
fromJson
public static ObjectReplicationPolicyRule fromJson(JsonReader jsonReader)
Reads an instance of ObjectReplicationPolicyRule from the JsonReader.
Parameters:
Returns:
Throws:
ruleId
public String 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:
sourceContainer
public String sourceContainer()
Get the sourceContainer property: Required. Source container name.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDestinationContainer
public ObjectReplicationPolicyRule withDestinationContainer(String destinationContainer)
Set the destinationContainer property: Required. Destination container name.
Parameters:
Returns:
withFilters
public ObjectReplicationPolicyRule withFilters(ObjectReplicationPolicyFilter filters)
Set the filters property: Optional. An object that defines the filter set.
Parameters:
Returns:
withRuleId
public ObjectReplicationPolicyRule withRuleId(String ruleId)
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:
Returns:
withSourceContainer
public ObjectReplicationPolicyRule withSourceContainer(String sourceContainer)
Set the sourceContainer property: Required. Source container name.
Parameters:
Returns:
Applies to
Azure SDK for Java