Class ExpressionEvaluationOptions
java.lang.Object
com.azure.resourcemanager.resources.models.ExpressionEvaluationOptions
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ExpressionEvaluationOptions>
public final class ExpressionEvaluationOptions
extends Object
implements com.azure.json.JsonSerializable<ExpressionEvaluationOptions>
Specifies whether template expressions are evaluated within the scope of the parent template or nested template.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ExpressionEvaluationOptions class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExpressionEvaluationOptionsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ExpressionEvaluationOptions from the JsonReader.scope()Get the scope property: The scope to be used for evaluation of parameters, variables and functions in a nested template.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the scope property: The scope to be used for evaluation of parameters, variables and functions in a nested template.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
-
ExpressionEvaluationOptions
public ExpressionEvaluationOptions()Creates an instance of ExpressionEvaluationOptions class.
-
-
Method Details
-
scope
Get the scope property: The scope to be used for evaluation of parameters, variables and functions in a nested template.- Returns:
- the scope value.
-
withScope
Set the scope property: The scope to be used for evaluation of parameters, variables and functions in a nested template.- Parameters:
scope- the scope value to set.- Returns:
- the ExpressionEvaluationOptions 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<ExpressionEvaluationOptions>- Throws:
IOException
-
fromJson
public static ExpressionEvaluationOptions fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ExpressionEvaluationOptions from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ExpressionEvaluationOptions 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 ExpressionEvaluationOptions.
-