Expression Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.Expression

Implements

public class Expression
implements JsonSerializable<Expression>

The expression.

Constructor Summary

Constructor Description
Expression()

Creates an instance of Expression class.

Method Summary

Modifier and Type Method and Description
AzureResourceErrorInfo error()

Get the error property: The azure resource error info.

static Expression fromJson(JsonReader jsonReader)

Reads an instance of Expression from the JsonReader.

List<Expression> subexpressions()

Get the subexpressions property: The sub expressions.

String text()

Get the text property: The text.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Object value()

Get the value property: Anything.

Expression withError(AzureResourceErrorInfo error)

Set the error property: The azure resource error info.

Expression withSubexpressions(List<Expression> subexpressions)

Set the subexpressions property: The sub expressions.

Expression withText(String text)

Set the text property: The text.

Expression withValue(Object value)

Set the value property: Anything.

Methods inherited from java.lang.Object

Constructor Details

Expression

public Expression()

Creates an instance of Expression class.

Method Details

error

public AzureResourceErrorInfo error()

Get the error property: The azure resource error info.

Returns:

the error value.

fromJson

public static Expression fromJson(JsonReader jsonReader)

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.

subexpressions

public List subexpressions()

Get the subexpressions property: The sub expressions.

Returns:

the subexpressions value.

text

public String text()

Get the text property: The text.

Returns:

the text value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public Object value()

Get the value property: Anything.

Returns:

the value 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.

withSubexpressions

public Expression withSubexpressions(List subexpressions)

Set the subexpressions property: The sub expressions.

Parameters:

subexpressions - the subexpressions value to set.

Returns:

the Expression object itself.

withText

public Expression withText(String text)

Set the text property: The text.

Parameters:

text - the text value to set.

Returns:

the Expression object itself.

withValue

public Expression withValue(Object value)

Set the value property: Anything.

Parameters:

value - the value value to set.

Returns:

the Expression object itself.

Applies to