BlobInventoryPolicyDefinition Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. BlobInventoryPolicyDefinition
- com.
Implements
public final class BlobInventoryPolicyDefinition
implements JsonSerializable<BlobInventoryPolicyDefinition>
An object that defines the blob inventory rule.
Constructor Summary
Constructor | Description |
---|---|
BlobInventoryPolicyDefinition() |
Creates an instance of Blob |
Method Summary
Modifier and Type | Method and Description |
---|---|
Blob |
filters()
Get the filters property: An object that defines the filter set. |
Format |
format()
Get the format property: This is a required field, it specifies the format for the inventory files. |
static
Blob |
fromJson(JsonReader jsonReader)
Reads an instance of Blob |
Object |
objectType()
Get the object |
Schedule |
schedule()
Get the schedule property: This is a required field. |
List<String> |
schemaFields()
Get the schema |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Blob |
withFilters(BlobInventoryPolicyFilter filters)
Set the filters property: An object that defines the filter set. |
Blob |
withFormat(Format format)
Set the format property: This is a required field, it specifies the format for the inventory files. |
Blob |
withObjectType(ObjectType objectType)
Set the object |
Blob |
withSchedule(Schedule schedule)
Set the schedule property: This is a required field. |
Blob |
withSchemaFields(List<String> schemaFields)
Set the schema |
Methods inherited from java.lang.Object
Constructor Details
BlobInventoryPolicyDefinition
public BlobInventoryPolicyDefinition()
Creates an instance of BlobInventoryPolicyDefinition class.
Method Details
filters
public BlobInventoryPolicyFilter filters()
Get the filters property: An object that defines the filter set.
Returns:
format
public Format format()
Get the format property: This is a required field, it specifies the format for the inventory files.
Returns:
fromJson
public static BlobInventoryPolicyDefinition fromJson(JsonReader jsonReader)
Reads an instance of BlobInventoryPolicyDefinition from the JsonReader.
Parameters:
Returns:
Throws:
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:
schedule
public Schedule schedule()
Get the schedule property: This is a required field. This field is used to schedule an inventory formation.
Returns:
schemaFields
public List
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, AccessTierInferred, Tags, Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, Snapshot, VersionId, IsCurrentVersion, Metadata, LastAccessTime, Tags, Etag, ContentType, ContentEncoding, ContentLanguage, ContentCRC64, CacheControl, ContentDisposition, LeaseStatus, LeaseState, LeaseDuration, ServerEncrypted, Deleted, DeletionId, DeletedTime, RemainingRetentionDays, ImmutabilityPolicyUntilDate, ImmutabilityPolicyMode, LegalHold, CopyId, CopyStatus, CopySource, CopyProgress, CopyCompletionTime, CopyStatusDescription, CustomerProvidedKeySha256, RehydratePriority, ArchiveStatus, XmsBlobSequenceNumber, EncryptionScope, IncrementalCopy, TagCount'. For Blob object type schema field value 'DeletedTime' is applicable only for Hns enabled accounts. The valid values for 'Container' definition.objectType include 'Name, Last-Modified, Metadata, LeaseStatus, LeaseState, LeaseDuration, PublicAccess, HasImmutabilityPolicy, HasLegalHold, Etag, DefaultEncryptionScope, DenyEncryptionScopeOverride, ImmutableStorageWithVersioningEnabled, Deleted, Version, DeletedTime, RemainingRetentionDays'. Schema field values 'Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, DeletionId' are valid only for Hns enabled accounts.Schema field values 'Tags, TagCount' are only valid for Non-Hns accounts.
Returns:
toJson
validate
public void validate()
Validates the instance.
withFilters
public BlobInventoryPolicyDefinition withFilters(BlobInventoryPolicyFilter filters)
Set the filters property: An object that defines the filter set.
Parameters:
Returns:
withFormat
public BlobInventoryPolicyDefinition withFormat(Format format)
Set the format property: This is a required field, it specifies the format for the inventory files.
Parameters:
Returns:
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:
Returns:
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:
Returns:
withSchemaFields
public BlobInventoryPolicyDefinition withSchemaFields(List
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, AccessTierInferred, Tags, Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, Snapshot, VersionId, IsCurrentVersion, Metadata, LastAccessTime, Tags, Etag, ContentType, ContentEncoding, ContentLanguage, ContentCRC64, CacheControl, ContentDisposition, LeaseStatus, LeaseState, LeaseDuration, ServerEncrypted, Deleted, DeletionId, DeletedTime, RemainingRetentionDays, ImmutabilityPolicyUntilDate, ImmutabilityPolicyMode, LegalHold, CopyId, CopyStatus, CopySource, CopyProgress, CopyCompletionTime, CopyStatusDescription, CustomerProvidedKeySha256, RehydratePriority, ArchiveStatus, XmsBlobSequenceNumber, EncryptionScope, IncrementalCopy, TagCount'. For Blob object type schema field value 'DeletedTime' is applicable only for Hns enabled accounts. The valid values for 'Container' definition.objectType include 'Name, Last-Modified, Metadata, LeaseStatus, LeaseState, LeaseDuration, PublicAccess, HasImmutabilityPolicy, HasLegalHold, Etag, DefaultEncryptionScope, DenyEncryptionScopeOverride, ImmutableStorageWithVersioningEnabled, Deleted, Version, DeletedTime, RemainingRetentionDays'. Schema field values 'Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, DeletionId' are valid only for Hns enabled accounts.Schema field values 'Tags, TagCount' are only valid for Non-Hns accounts.
Parameters:
Returns:
Applies to
Azure SDK for Java