Class ManagementPolicyFilter
java.lang.Object
com.azure.resourcemanager.storage.models.ManagementPolicyFilter
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagementPolicyFilter>
public final class ManagementPolicyFilter
extends Object
implements com.azure.json.JsonSerializable<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.static ManagementPolicyFilterfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagementPolicyFilter from the JsonReader.Get the prefixMatch property: An array of strings for prefixes to be match.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ManagementPolicyFilter
public ManagementPolicyFilter()Creates an instance of ManagementPolicyFilter class.
-
-
Method Details
-
prefixMatch
-
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
-
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
-
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ManagementPolicyFilter>- Throws:
IOException
-
fromJson
public static ManagementPolicyFilter fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagementPolicyFilter from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagementPolicyFilter if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ManagementPolicyFilter.
-