Class BlobInventoryPolicyFilter
- java.lang.Object
-
- com.azure.resourcemanager.storage.models.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 Summary
Constructors Constructor Description BlobInventoryPolicyFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>blobTypes()Get the blobTypes property: An array of predefined enum values.BooleanincludeBlobVersions()Get the includeBlobVersions property: Includes blob versions in blob inventory when value is set to true.BooleanincludeSnapshots()Get the includeSnapshots property: Includes blob snapshots in blob inventory when value is set to true.List<String>prefixMatch()Get the prefixMatch property: An array of strings for blob prefixes to be matched.voidvalidate()Validates the instance.BlobInventoryPolicyFilterwithBlobTypes(List<String> blobTypes)Set the blobTypes property: An array of predefined enum values.BlobInventoryPolicyFilterwithIncludeBlobVersions(Boolean includeBlobVersions)Set the includeBlobVersions property: Includes blob versions in blob inventory when value is set to true.BlobInventoryPolicyFilterwithIncludeSnapshots(Boolean includeSnapshots)Set the includeSnapshots property: Includes blob snapshots in blob inventory when value is set to true.BlobInventoryPolicyFilterwithPrefixMatch(List<String> prefixMatch)Set the prefixMatch property: An array of strings for blob prefixes to be matched.
-
-
-
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.
-
-