java.lang.Object
com.azure.resourcemanager.resources.models.Selector
All Implemented Interfaces:
com.azure.json.JsonSerializable<Selector>

public final class Selector extends Object implements com.azure.json.JsonSerializable<Selector>
The selector expression.
  • Constructor Details

    • Selector

      public Selector()
      Creates an instance of Selector class.
  • Method Details

    • kind

      public SelectorKind kind()
      Get the kind property: The selector kind.
      Returns:
      the kind value.
    • withKind

      public Selector withKind(SelectorKind kind)
      Set the kind property: The selector kind.
      Parameters:
      kind - the kind value to set.
      Returns:
      the Selector object itself.
    • in

      public List<String> in()
      Get the in property: The list of values to filter in.
      Returns:
      the in value.
    • withIn

      public Selector withIn(List<String> in)
      Set the in property: The list of values to filter in.
      Parameters:
      in - the in value to set.
      Returns:
      the Selector object itself.
    • notIn

      public List<String> notIn()
      Get the notIn property: The list of values to filter out.
      Returns:
      the notIn value.
    • withNotIn

      public Selector withNotIn(List<String> notIn)
      Set the notIn property: The list of values to filter out.
      Parameters:
      notIn - the notIn value to set.
      Returns:
      the Selector 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<Selector>
      Throws:
      IOException
    • fromJson

      public static Selector fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of Selector from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of Selector 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 Selector.