Class Expression

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 Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Creates an instance of Expression class.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    Get the text property: The text.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Get the value property: Anything.

    Methods inherited from class 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

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

    • text

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

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

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

      public AzureResourceErrorInfo error()
      Get the error property: The azure resource error info.
      Returns:
      the error value.
    • 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.