Class ManagementPolicyFilter
- java.lang.Object
-
- com.azure.resourcemanager.storage.models.ManagementPolicyFilter
-
public final class ManagementPolicyFilter extends Object
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
Constructors Constructor Description ManagementPolicyFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TagFilter>blobIndexMatch()Get the blobIndexMatch property: An array of blob index tag based filters, there can be at most 10 tag filters.List<String>blobTypes()Get the blobTypes property: An array of predefined enum values.List<String>prefixMatch()Get the prefixMatch property: An array of strings for prefixes to be match.voidvalidate()Validates the instance.ManagementPolicyFilterwithBlobIndexMatch(List<TagFilter> blobIndexMatch)Set the blobIndexMatch property: An array of blob index tag based filters, there can be at most 10 tag filters.ManagementPolicyFilterwithBlobTypes(List<String> blobTypes)Set the blobTypes property: An array of predefined enum values.ManagementPolicyFilterwithPrefixMatch(List<String> prefixMatch)Set the prefixMatch property: An array of strings for prefixes to be match.
-
-
-
Method Detail
-
prefixMatch
public List<String> prefixMatch()
Get the prefixMatch property: An array of strings for prefixes to be match.- Returns:
- the prefixMatch value.
-
withPrefixMatch
public ManagementPolicyFilter withPrefixMatch(List<String> prefixMatch)
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
public List<String> 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
public ManagementPolicyFilter withBlobTypes(List<String> blobTypes)
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
public List<TagFilter> 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
public ManagementPolicyFilter withBlobIndexMatch(List<TagFilter> blobIndexMatch)
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.
-
-