CatalogErrorDetails Class

  • java.lang.Object
    • com.azure.resourcemanager.devcenter.models.CatalogErrorDetails

Implements

public final class CatalogErrorDetails
implements JsonSerializable<CatalogErrorDetails>

Catalog error details.

Constructor Summary

Constructor Description
CatalogErrorDetails()

Creates an instance of CatalogErrorDetails class.

Method Summary

Modifier and Type Method and Description
String code()

Get the code property: An identifier for the error.

static CatalogErrorDetails fromJson(JsonReader jsonReader)

Reads an instance of CatalogErrorDetails from the JsonReader.

String message()

Get the message property: A message describing the error.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CatalogErrorDetails withCode(String code)

Set the code property: An identifier for the error.

CatalogErrorDetails withMessage(String message)

Set the message property: A message describing the error.

Methods inherited from java.lang.Object

Constructor Details

CatalogErrorDetails

public CatalogErrorDetails()

Creates an instance of CatalogErrorDetails class.

Method Details

code

public String code()

Get the code property: An identifier for the error.

Returns:

the code value.

fromJson

public static CatalogErrorDetails fromJson(JsonReader jsonReader)

Reads an instance of CatalogErrorDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CatalogErrorDetails 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 CatalogErrorDetails.

message

public String message()

Get the message property: A message describing the error.

Returns:

the message value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCode

public CatalogErrorDetails withCode(String code)

Set the code property: An identifier for the error.

Parameters:

code - the code value to set.

Returns:

the CatalogErrorDetails object itself.

withMessage

public CatalogErrorDetails withMessage(String message)

Set the message property: A message describing the error.

Parameters:

message - the message value to set.

Returns:

the CatalogErrorDetails object itself.

Applies to