MatchVariable Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.MatchVariable

Implements

public final class MatchVariable
implements JsonSerializable<MatchVariable>

Define match variables.

Constructor Summary

Constructor Description
MatchVariable()

Creates an instance of MatchVariable class.

Method Summary

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

Reads an instance of MatchVariable from the JsonReader.

String selector()

Get the selector property: The selector of match variable.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WebApplicationFirewallMatchVariable variableName()

Get the variableName property: Match Variable.

MatchVariable withSelector(String selector)

Set the selector property: The selector of match variable.

MatchVariable withVariableName(WebApplicationFirewallMatchVariable variableName)

Set the variableName property: Match Variable.

Methods inherited from java.lang.Object

Constructor Details

MatchVariable

public MatchVariable()

Creates an instance of MatchVariable class.

Method Details

fromJson

public static MatchVariable fromJson(JsonReader jsonReader)

Reads an instance of MatchVariable from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MatchVariable if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

selector

public String selector()

Get the selector property: The selector of match variable.

Returns:

the selector value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

variableName

public WebApplicationFirewallMatchVariable variableName()

Get the variableName property: Match Variable.

Returns:

the variableName value.

withSelector

public MatchVariable withSelector(String selector)

Set the selector property: The selector of match variable.

Parameters:

selector - the selector value to set.

Returns:

the MatchVariable object itself.

withVariableName

public MatchVariable withVariableName(WebApplicationFirewallMatchVariable variableName)

Set the variableName property: Match Variable.

Parameters:

variableName - the variableName value to set.

Returns:

the MatchVariable object itself.

Applies to