Class Selector
java.lang.Object
com.azure.resourcemanager.resources.models.Selector
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Selector>
The selector expression.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SelectorfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Selector from the JsonReader.in()Get the in property: The list of values to filter in.kind()Get the kind property: The selector kind.notIn()Get the notIn property: The list of values to filter out.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the in property: The list of values to filter in.withKind(SelectorKind kind) Set the kind property: The selector kind.Set the notIn property: The list of values to filter out.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
-
Selector
public Selector()Creates an instance of Selector class.
-
-
Method Details
-
kind
Get the kind property: The selector kind.- Returns:
- the kind value.
-
withKind
Set the kind property: The selector kind.- Parameters:
kind- the kind value to set.- Returns:
- the Selector object itself.
-
in
Get the in property: The list of values to filter in.- Returns:
- the in value.
-
withIn
Set the in property: The list of values to filter in.- Parameters:
in- the in value to set.- Returns:
- the Selector object itself.
-
notIn
Get the notIn property: The list of values to filter out.- Returns:
- the notIn value.
-
withNotIn
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<Selector>- Throws:
IOException
-
fromJson
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.
-