Class MatchVariable
java.lang.Object
com.azure.resourcemanager.network.models.MatchVariable
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MatchVariable>
public final class MatchVariable
extends Object
implements com.azure.json.JsonSerializable<MatchVariable>
Define match variables.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MatchVariablefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MatchVariable from the JsonReader.selector()Get the selector property: The selector of match variable.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the variableName property: Match Variable.withSelector(String selector) Set the selector property: The selector of match variable.withVariableName(WebApplicationFirewallMatchVariable variableName) Set the variableName property: Match Variable.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
-
MatchVariable
public MatchVariable()Creates an instance of MatchVariable class.
-
-
Method Details
-
variableName
Get the variableName property: Match Variable.- Returns:
- the variableName value.
-
withVariableName
Set the variableName property: Match Variable.- Parameters:
variableName- the variableName value to set.- Returns:
- the MatchVariable object itself.
-
selector
Get the selector property: The selector of match variable.- Returns:
- the selector value.
-
withSelector
Set the selector property: The selector of match variable.- Parameters:
selector- the selector value to set.- Returns:
- the MatchVariable 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<MatchVariable>- Throws:
IOException
-
fromJson
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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the MatchVariable.
-