Class TagFilter
java.lang.Object
com.azure.resourcemanager.storage.models.TagFilter
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TagFilter>
Blob index tag based filtering for blob objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TagFilterfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TagFilter from the JsonReader.name()Get the name property: This is the filter tag name, it can have 1 - 128 characters.op()Get the op property: This is the comparison operator which is used for object comparison and filtering.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.value()Get the value property: This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters.Set the name property: This is the filter tag name, it can have 1 - 128 characters.Set the op property: This is the comparison operator which is used for object comparison and filtering.Set the value property: This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters.Methods inherited from class java.lang.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
-
TagFilter
public TagFilter()Creates an instance of TagFilter class.
-
-
Method Details
-
name
Get the name property: This is the filter tag name, it can have 1 - 128 characters.- Returns:
- the name value.
-
withName
Set the name property: This is the filter tag name, it can have 1 - 128 characters.- Parameters:
name- the name value to set.- Returns:
- the TagFilter object itself.
-
op
Get the op property: This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported.- Returns:
- the op value.
-
withOp
Set the op property: This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported.- Parameters:
op- the op value to set.- Returns:
- the TagFilter object itself.
-
value
Get the value property: This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters.- Returns:
- the value value.
-
withValue
Set the value property: This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters.- Parameters:
value- the value value to set.- Returns:
- the TagFilter 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<TagFilter>- Throws:
IOException
-
fromJson
Reads an instance of TagFilter from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TagFilter 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 TagFilter.
-