Class ObjectReplicationPolicyRule

java.lang.Object
com.azure.resourcemanager.storage.models.ObjectReplicationPolicyRule

public final class ObjectReplicationPolicyRule extends Object
The replication policy rule between two containers.
  • Constructor Details

    • ObjectReplicationPolicyRule

      public ObjectReplicationPolicyRule()
      Creates an instance of ObjectReplicationPolicyRule class.
  • Method Details

    • 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:
      the ruleId value.
    • 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:
      ruleId - the ruleId value to set.
      Returns:
      the ObjectReplicationPolicyRule object itself.
    • sourceContainer

      public String sourceContainer()
      Get the sourceContainer property: Required. Source container name.
      Returns:
      the sourceContainer value.
    • withSourceContainer

      public ObjectReplicationPolicyRule withSourceContainer(String sourceContainer)
      Set the sourceContainer property: Required. Source container name.
      Parameters:
      sourceContainer - the sourceContainer value to set.
      Returns:
      the ObjectReplicationPolicyRule object itself.
    • destinationContainer

      public String destinationContainer()
      Get the destinationContainer property: Required. Destination container name.
      Returns:
      the destinationContainer value.
    • withDestinationContainer

      public ObjectReplicationPolicyRule withDestinationContainer(String destinationContainer)
      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.