CatalogErrorDetails Class
- java.
lang. Object - com.
azure. resourcemanager. devcenter. models. CatalogErrorDetails
- com.
Implements
public final class CatalogErrorDetails
implements JsonSerializable<CatalogErrorDetails>
Catalog error details.
Constructor Summary
| Constructor | Description |
|---|---|
| CatalogErrorDetails() |
Creates an instance of Catalog |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
code()
Get the code property: An identifier for the error. |
|
static
Catalog |
fromJson(JsonReader jsonReader)
Reads an instance of Catalog |
| String |
message()
Get the message property: A message describing the error. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Catalog |
withCode(String code)
Set the code property: An identifier for the error. |
|
Catalog |
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:
fromJson
public static CatalogErrorDetails fromJson(JsonReader jsonReader)
Reads an instance of CatalogErrorDetails from the JsonReader.
Parameters:
Returns:
Throws:
message
public String message()
Get the message property: A message describing the error.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCode
public CatalogErrorDetails withCode(String code)
Set the code property: An identifier for the error.
Parameters:
Returns:
withMessage
public CatalogErrorDetails withMessage(String message)
Set the message property: A message describing the error.
Parameters:
Returns: