Class BlobInventoryPolicyDefinition


  • public final class BlobInventoryPolicyDefinition
    extends Object
    An object that defines the blob inventory rule.
    • Constructor Detail

      • BlobInventoryPolicyDefinition

        public BlobInventoryPolicyDefinition()
    • Method Detail

      • filters

        public BlobInventoryPolicyFilter filters()
        Get the filters property: An object that defines the filter set.
        Returns:
        the filters value.
      • withFilters

        public BlobInventoryPolicyDefinition withFilters​(BlobInventoryPolicyFilter filters)
        Set the filters property: An object that defines the filter set.
        Parameters:
        filters - the filters value to set.
        Returns:
        the BlobInventoryPolicyDefinition object itself.
      • format

        public Format format()
        Get the format property: This is a required field, it specifies the format for the inventory files.
        Returns:
        the format value.
      • withFormat

        public BlobInventoryPolicyDefinition withFormat​(Format format)
        Set the format property: This is a required field, it specifies the format for the inventory files.
        Parameters:
        format - the format value to set.
        Returns:
        the BlobInventoryPolicyDefinition object itself.
      • schedule

        public Schedule schedule()
        Get the schedule property: This is a required field. This field is used to schedule an inventory formation.
        Returns:
        the schedule value.
      • withSchedule

        public BlobInventoryPolicyDefinition withSchedule​(Schedule schedule)
        Set the schedule property: This is a required field. This field is used to schedule an inventory formation.
        Parameters:
        schedule - the schedule value to set.
        Returns:
        the BlobInventoryPolicyDefinition object itself.
      • objectType

        public ObjectType objectType()
        Get the objectType property: This is a required field. This field specifies the scope of the inventory created either at the blob or container level.
        Returns:
        the objectType value.
      • withObjectType

        public BlobInventoryPolicyDefinition withObjectType​(ObjectType objectType)
        Set the objectType property: This is a required field. This field specifies the scope of the inventory created either at the blob or container level.
        Parameters:
        objectType - the objectType value to set.
        Returns:
        the BlobInventoryPolicyDefinition object itself.
      • schemaFields

        public List<String> schemaFields()
        Get the schemaFields property: This is a required field. This field specifies the fields and properties of the object to be included in the inventory. The Schema field value 'Name' is always required. The valid values for this field for the 'Blob' definition.objectType include 'Name, Creation-Time, Last-Modified, Content-Length, Content-MD5, BlobType, AccessTier, AccessTierChangeTime, Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, Snapshot, VersionId, IsCurrentVersion, Metadata, LastAccessTime'. The valid values for 'Container' definition.objectType include 'Name, Last-Modified, Metadata, LeaseStatus, LeaseState, LeaseDuration, PublicAccess, HasImmutabilityPolicy, HasLegalHold'. Schema field values 'Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl' are valid only for Hns enabled accounts.
        Returns:
        the schemaFields value.
      • withSchemaFields

        public BlobInventoryPolicyDefinition withSchemaFields​(List<String> schemaFields)
        Set the schemaFields property: This is a required field. This field specifies the fields and properties of the object to be included in the inventory. The Schema field value 'Name' is always required. The valid values for this field for the 'Blob' definition.objectType include 'Name, Creation-Time, Last-Modified, Content-Length, Content-MD5, BlobType, AccessTier, AccessTierChangeTime, Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, Snapshot, VersionId, IsCurrentVersion, Metadata, LastAccessTime'. The valid values for 'Container' definition.objectType include 'Name, Last-Modified, Metadata, LeaseStatus, LeaseState, LeaseDuration, PublicAccess, HasImmutabilityPolicy, HasLegalHold'. Schema field values 'Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl' are valid only for Hns enabled accounts.
        Parameters:
        schemaFields - the schemaFields value to set.
        Returns:
        the BlobInventoryPolicyDefinition object itself.
      • validate

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