Class BlobInventoryPolicyDefinition
- java.lang.Object
-
- com.azure.resourcemanager.storage.models.BlobInventoryPolicyDefinition
-
public final class BlobInventoryPolicyDefinition extends Object
An object that defines the blob inventory rule.
-
-
Constructor Summary
Constructors Constructor Description BlobInventoryPolicyDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlobInventoryPolicyFilterfilters()Get the filters property: An object that defines the filter set.Formatformat()Get the format property: This is a required field, it specifies the format for the inventory files.ObjectTypeobjectType()Get the objectType property: This is a required field.Scheduleschedule()Get the schedule property: This is a required field.List<String>schemaFields()Get the schemaFields property: This is a required field.voidvalidate()Validates the instance.BlobInventoryPolicyDefinitionwithFilters(BlobInventoryPolicyFilter filters)Set the filters property: An object that defines the filter set.BlobInventoryPolicyDefinitionwithFormat(Format format)Set the format property: This is a required field, it specifies the format for the inventory files.BlobInventoryPolicyDefinitionwithObjectType(ObjectType objectType)Set the objectType property: This is a required field.BlobInventoryPolicyDefinitionwithSchedule(Schedule schedule)Set the schedule property: This is a required field.BlobInventoryPolicyDefinitionwithSchemaFields(List<String> schemaFields)Set the schemaFields property: This is a required field.
-
-
-
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.
-
-