Class BlobInventoryPolicyFilter


  • public final class BlobInventoryPolicyFilter
    extends Object
    An object that defines the blob inventory rule filter conditions. For 'Blob' definition.objectType all filter properties are applicable, 'blobTypes' is required and others are optional. For 'Container' definition.objectType only prefixMatch is applicable and is optional.
    • Constructor Detail

      • BlobInventoryPolicyFilter

        public BlobInventoryPolicyFilter()
    • Method Detail

      • prefixMatch

        public List<String> prefixMatch()
        Get the prefixMatch property: An array of strings for blob prefixes to be matched.
        Returns:
        the prefixMatch value.
      • withPrefixMatch

        public BlobInventoryPolicyFilter withPrefixMatch​(List<String> prefixMatch)
        Set the prefixMatch property: An array of strings for blob prefixes to be matched.
        Parameters:
        prefixMatch - the prefixMatch value to set.
        Returns:
        the BlobInventoryPolicyFilter object itself.
      • blobTypes

        public List<String> blobTypes()
        Get the blobTypes property: An array of predefined enum values. Valid values include blockBlob, appendBlob, pageBlob. Hns accounts does not support pageBlobs. This field is required when definition.objectType property is set to 'Blob'.
        Returns:
        the blobTypes value.
      • withBlobTypes

        public BlobInventoryPolicyFilter withBlobTypes​(List<String> blobTypes)
        Set the blobTypes property: An array of predefined enum values. Valid values include blockBlob, appendBlob, pageBlob. Hns accounts does not support pageBlobs. This field is required when definition.objectType property is set to 'Blob'.
        Parameters:
        blobTypes - the blobTypes value to set.
        Returns:
        the BlobInventoryPolicyFilter object itself.
      • includeBlobVersions

        public Boolean includeBlobVersions()
        Get the includeBlobVersions property: Includes blob versions in blob inventory when value is set to true. The definition.schemaFields values 'VersionId and IsCurrentVersion' are required if this property is set to true, else they must be excluded.
        Returns:
        the includeBlobVersions value.
      • withIncludeBlobVersions

        public BlobInventoryPolicyFilter withIncludeBlobVersions​(Boolean includeBlobVersions)
        Set the includeBlobVersions property: Includes blob versions in blob inventory when value is set to true. The definition.schemaFields values 'VersionId and IsCurrentVersion' are required if this property is set to true, else they must be excluded.
        Parameters:
        includeBlobVersions - the includeBlobVersions value to set.
        Returns:
        the BlobInventoryPolicyFilter object itself.
      • includeSnapshots

        public Boolean includeSnapshots()
        Get the includeSnapshots property: Includes blob snapshots in blob inventory when value is set to true. The definition.schemaFields value 'Snapshot' is required if this property is set to true, else it must be excluded.
        Returns:
        the includeSnapshots value.
      • withIncludeSnapshots

        public BlobInventoryPolicyFilter withIncludeSnapshots​(Boolean includeSnapshots)
        Set the includeSnapshots property: Includes blob snapshots in blob inventory when value is set to true. The definition.schemaFields value 'Snapshot' is required if this property is set to true, else it must be excluded.
        Parameters:
        includeSnapshots - the includeSnapshots value to set.
        Returns:
        the BlobInventoryPolicyFilter object itself.
      • validate

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