ErrorInfo Class

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

Implements

public class ErrorInfo
implements JsonSerializable<ErrorInfo>

The error info.

Constructor Summary

Constructor Description
ErrorInfo()

Creates an instance of ErrorInfo class.

Method Summary

Modifier and Type Method and Description
String code()

Get the code property: The error code.

static ErrorInfo fromJson(JsonReader jsonReader)

Reads an instance of ErrorInfo from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ErrorInfo withCode(String code)

Set the code property: The error code.

Methods inherited from java.lang.Object

Constructor Details

ErrorInfo

public ErrorInfo()

Creates an instance of ErrorInfo class.

Method Details

code

public String code()

Get the code property: The error code.

Returns:

the code value.

fromJson

public static ErrorInfo fromJson(JsonReader jsonReader)

Reads an instance of ErrorInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ErrorInfo if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCode

public ErrorInfo withCode(String code)

Set the code property: The error code.

Parameters:

code - the code value to set.

Returns:

the ErrorInfo object itself.

Applies to