Class Expression
java.lang.Object
com.azure.resourcemanager.appservice.models.Expression
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Expression>
- Direct Known Subclasses:
ExpressionRoot
The expression.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionerror()
Get the error property: The azure resource error info.static Expression
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of Expression from the JsonReader.Get the subexpressions property: The sub expressions.text()
Get the text property: The text.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.value()
Get the value property: Anything.withError
(AzureResourceErrorInfo error) Set the error property: The azure resource error info.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
Expression
public Expression()Creates an instance of Expression class.
-
-
Method Details
-
text
Get the text property: The text.- Returns:
- the text value.
-
withText
Set the text property: The text.- Parameters:
text
- the text value to set.- Returns:
- the Expression object itself.
-
value
Get the value property: Anything.- Returns:
- the value value.
-
withValue
Set the value property: Anything.- Parameters:
value
- the value value to set.- Returns:
- the Expression object itself.
-
subexpressions
Get the subexpressions property: The sub expressions.- Returns:
- the subexpressions value.
-
withSubexpressions
Set the subexpressions property: The sub expressions.- Parameters:
subexpressions
- the subexpressions value to set.- Returns:
- the Expression object itself.
-
error
Get the error property: The azure resource error info.- Returns:
- the error value.
-
withError
Set the error property: The azure resource error info.- Parameters:
error
- the error value to set.- Returns:
- the Expression object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<Expression>
- Throws:
IOException
-
fromJson
Reads an instance of Expression from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of Expression 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 Expression.
-