Class ExpressionRoot
java.lang.Object
com.azure.resourcemanager.appservice.models.Expression
com.azure.resourcemanager.appservice.models.ExpressionRoot
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Expression>
The expression root.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExpressionRootfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ExpressionRoot from the JsonReader.path()Get the path property: The path.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withError(AzureResourceErrorInfo error) Set the error property: The azure resource error info.Set the path property: The path.withSubexpressions(List<Expression> subexpressions) Set the subexpressions property: The sub expressions.Set the text property: The text.Set the value property: Anything.Methods inherited from class com.azure.resourcemanager.appservice.models.Expression
error, subexpressions, text, valueMethods 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
-
ExpressionRoot
public ExpressionRoot()Creates an instance of ExpressionRoot class.
-
-
Method Details
-
path
Get the path property: The path.- Returns:
- the path value.
-
withPath
Set the path property: The path.- Parameters:
path- the path value to set.- Returns:
- the ExpressionRoot object itself.
-
withText
Set the text property: The text.- Overrides:
withTextin classExpression- Parameters:
text- the text value to set.- Returns:
- the Expression object itself.
-
withValue
Set the value property: Anything.- Overrides:
withValuein classExpression- Parameters:
value- the value value to set.- Returns:
- the Expression object itself.
-
withSubexpressions
Set the subexpressions property: The sub expressions.- Overrides:
withSubexpressionsin classExpression- Parameters:
subexpressions- the subexpressions value to set.- Returns:
- the Expression object itself.
-
withError
Set the error property: The azure resource error info.- Overrides:
withErrorin classExpression- Parameters:
error- the error value to set.- Returns:
- the Expression object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classExpression- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<Expression>- Overrides:
toJsonin classExpression- Throws:
IOException
-
fromJson
Reads an instance of ExpressionRoot from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ExpressionRoot 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 ExpressionRoot.
-