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
    Constructor
    Description
    Creates an instance of FilterItems class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the field property: The name of the field we would like to filter.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of FilterItems from the JsonReader.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    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.
    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, wait

    Methods 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

      public String field()
      Get the field property: The name of the field we would like to filter.
      Returns:
      the field value.
    • withField

      public FilterItems withField(String field)
      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

      public List<String> values()
      Get the values property: List of values to filter the current field by.
      Returns:
      the values value.
    • withValues

      public FilterItems withValues(List<String> values)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<FilterItems>
      Throws:
      IOException
    • fromJson

      public static FilterItems fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.