Class FilterItems
java.lang.Object
com.azure.resourcemanager.network.models.FilterItems
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FilterItems>
public final class FilterItems
extends Object
implements com.azure.json.JsonSerializable<FilterItems>
Will contain the filter name and values to operate on.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfield()Get the field property: The name of the field we would like to filter.static FilterItemsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FilterItems from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.values()Get the values property: List of values to filter the current field by.Set the field property: The name of the field we would like to filter.withValues(List<String> values) Set the values property: List of values to filter the current field by.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
-
FilterItems
public FilterItems()Creates an instance of FilterItems class.
-
-
Method Details
-
field
Get the field property: The name of the field we would like to filter.- Returns:
- the field value.
-
withField
Set the field property: The name of the field we would like to filter.- Parameters:
field- the field value to set.- Returns:
- the FilterItems object itself.
-
values
-
withValues
Set the values property: List of values to filter the current field by.- Parameters:
values- the values value to set.- Returns:
- the FilterItems 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<FilterItems>- Throws:
IOException
-
fromJson
Reads an instance of FilterItems from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of FilterItems if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the FilterItems.
-