Selector Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.models.Selector

Implements

public final class Selector
implements JsonSerializable<Selector>

The selector expression.

Constructor Summary

Constructor Description
Selector()

Creates an instance of Selector class.

Method Summary

Modifier and Type Method and Description
static Selector fromJson(JsonReader jsonReader)

Reads an instance of Selector from the JsonReader.

List<String> in()

Get the in property: The list of values to filter in.

SelectorKind kind()

Get the kind property: The selector kind.

List<String> notIn()

Get the notIn property: The list of values to filter out.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Selector withIn(List<String> in)

Set the in property: The list of values to filter in.

Selector withKind(SelectorKind kind)

Set the kind property: The selector kind.

Selector withNotIn(List<String> notIn)

Set the notIn property: The list of values to filter out.

Methods inherited from java.lang.Object

Constructor Details

Selector

public Selector()

Creates an instance of Selector class.

Method Details

fromJson

public static Selector fromJson(JsonReader jsonReader)

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.

in

public List in()

Get the in property: The list of values to filter in.

Returns:

the in value.

kind

public SelectorKind kind()

Get the kind property: The selector kind.

Returns:

the kind value.

notIn

public List notIn()

Get the notIn property: The list of values to filter out.

Returns:

the notIn value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIn

public Selector withIn(List in)

Set the in property: The list of values to filter in.

Parameters:

in - the in value to set.

Returns:

the Selector object itself.

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.

withNotIn

public Selector withNotIn(List notIn)

Set the notIn property: The list of values to filter out.

Parameters:

notIn - the notIn value to set.

Returns:

the Selector object itself.

Applies to