Class ManagementPolicyFilter
java.lang.Object
com.azure.resourcemanager.storage.models.ManagementPolicyFilter
Filters limit rule actions to a subset of blobs within the storage account. If multiple filters are defined, a
logical AND is performed on all filters.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagementPolicyFilter class. -
Method Summary
Modifier and TypeMethodDescriptionGet the blobIndexMatch property: An array of blob index tag based filters, there can be at most 10 tag filters.Get the blobTypes property: An array of predefined enum values.Get the prefixMatch property: An array of strings for prefixes to be match.voidvalidate()Validates the instance.withBlobIndexMatch(List<TagFilter> blobIndexMatch) Set the blobIndexMatch property: An array of blob index tag based filters, there can be at most 10 tag filters.withBlobTypes(List<String> blobTypes) Set the blobTypes property: An array of predefined enum values.withPrefixMatch(List<String> prefixMatch) Set the prefixMatch property: An array of strings for prefixes to be match.
-
Constructor Details
-
ManagementPolicyFilter
public ManagementPolicyFilter()Creates an instance of ManagementPolicyFilter class.
-
-
Method Details
-
prefixMatch
Get the prefixMatch property: An array of strings for prefixes to be match.- Returns:
- the prefixMatch value.
-
withPrefixMatch
Set the prefixMatch property: An array of strings for prefixes to be match.- Parameters:
prefixMatch- the prefixMatch value to set.- Returns:
- the ManagementPolicyFilter object itself.
-
blobTypes
Get the blobTypes property: An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.- Returns:
- the blobTypes value.
-
withBlobTypes
Set the blobTypes property: An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.- Parameters:
blobTypes- the blobTypes value to set.- Returns:
- the ManagementPolicyFilter object itself.
-
blobIndexMatch
Get the blobIndexMatch property: An array of blob index tag based filters, there can be at most 10 tag filters.- Returns:
- the blobIndexMatch value.
-
withBlobIndexMatch
Set the blobIndexMatch property: An array of blob index tag based filters, there can be at most 10 tag filters.- Parameters:
blobIndexMatch- the blobIndexMatch value to set.- Returns:
- the ManagementPolicyFilter object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-