java.lang.Object
com.azure.resourcemanager.appservice.models.Expression
All Implemented Interfaces:
com.azure.json.JsonSerializable<Expression>
Direct Known Subclasses:
ExpressionRoot

public class Expression extends Object implements com.azure.json.JsonSerializable<Expression>
The expression.
  • Constructor Details

    • Expression

      public Expression()
      Creates an instance of Expression class.
  • Method Details

    • text

      public String text()
      Get the text property: The text.
      Returns:
      the text value.
    • withText

      public Expression withText(String text)
      Set the text property: The text.
      Parameters:
      text - the text value to set.
      Returns:
      the Expression object itself.
    • value

      public Object value()
      Get the value property: Anything.
      Returns:
      the value value.
    • withValue

      public Expression withValue(Object value)
      Set the value property: Anything.
      Parameters:
      value - the value value to set.
      Returns:
      the Expression object itself.
    • subexpressions

      public List<Expression> subexpressions()
      Get the subexpressions property: The sub expressions.
      Returns:
      the subexpressions value.
    • withSubexpressions

      public Expression withSubexpressions(List<Expression> subexpressions)
      Set the subexpressions property: The sub expressions.
      Parameters:
      subexpressions - the subexpressions value to set.
      Returns:
      the Expression object itself.
    • error

      public AzureResourceErrorInfo error()
      Get the error property: The azure resource error info.
      Returns:
      the error value.
    • withError

      public Expression withError(AzureResourceErrorInfo error)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<Expression>
      Throws:
      IOException
    • fromJson

      public static Expression fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.