Class BlobInventoryPolicyRule


  • public final class BlobInventoryPolicyRule
    extends Object
    An object that wraps the blob inventory rule. Each rule is uniquely defined by name.
    • Constructor Detail

      • BlobInventoryPolicyRule

        public BlobInventoryPolicyRule()
    • Method Detail

      • enabled

        public boolean enabled()
        Get the enabled property: Rule is enabled when set to true.
        Returns:
        the enabled value.
      • withEnabled

        public BlobInventoryPolicyRule withEnabled​(boolean enabled)
        Set the enabled property: Rule is enabled when set to true.
        Parameters:
        enabled - the enabled value to set.
        Returns:
        the BlobInventoryPolicyRule object itself.
      • name

        public String name()
        Get the name property: A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
        Returns:
        the name value.
      • withName

        public BlobInventoryPolicyRule withName​(String name)
        Set the name property: A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
        Parameters:
        name - the name value to set.
        Returns:
        the BlobInventoryPolicyRule object itself.
      • destination

        public String destination()
        Get the destination property: Container name where blob inventory files are stored. Must be pre-created.
        Returns:
        the destination value.
      • withDestination

        public BlobInventoryPolicyRule withDestination​(String destination)
        Set the destination property: Container name where blob inventory files are stored. Must be pre-created.
        Parameters:
        destination - the destination value to set.
        Returns:
        the BlobInventoryPolicyRule object itself.
      • definition

        public BlobInventoryPolicyDefinition definition()
        Get the definition property: An object that defines the blob inventory policy rule.
        Returns:
        the definition value.
      • withDefinition

        public BlobInventoryPolicyRule withDefinition​(BlobInventoryPolicyDefinition definition)
        Set the definition property: An object that defines the blob inventory policy rule.
        Parameters:
        definition - the definition value to set.
        Returns:
        the BlobInventoryPolicyRule object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.