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>

public final class ExpressionRoot extends Expression
The expression root.
  • Constructor Details

    • ExpressionRoot

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

    • path

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

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

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

      public ExpressionRoot withValue(Object value)
      Set the value property: Anything.
      Overrides:
      withValue in class Expression
      Parameters:
      value - the value value to set.
      Returns:
      the Expression object itself.
    • withSubexpressions

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

      public ExpressionRoot withError(AzureResourceErrorInfo error)
      Set the error property: The azure resource error info.
      Overrides:
      withError in class Expression
      Parameters:
      error - the error value to set.
      Returns:
      the Expression object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class Expression
      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>
      Overrides:
      toJson in class Expression
      Throws:
      IOException
    • fromJson

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