Class AzureResourceErrorInfo
java.lang.Object
com.azure.resourcemanager.appservice.models.ErrorInfo
com.azure.resourcemanager.appservice.models.AzureResourceErrorInfo
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ErrorInfo>
The azure resource error info.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AzureResourceErrorInfo class. -
Method Summary
Modifier and TypeMethodDescriptiondetails()
Get the details property: The error details.static AzureResourceErrorInfo
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AzureResourceErrorInfo from the JsonReader.message()
Get the message property: The error message.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Set the code property: The error code.withDetails
(List<AzureResourceErrorInfo> details) Set the details property: The error details.withMessage
(String message) Set the message property: The error message.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AzureResourceErrorInfo
public AzureResourceErrorInfo()Creates an instance of AzureResourceErrorInfo class.
-
-
Method Details
-
message
Get the message property: The error message.- Returns:
- the message value.
-
withMessage
Set the message property: The error message.- Parameters:
message
- the message value to set.- Returns:
- the AzureResourceErrorInfo object itself.
-
details
Get the details property: The error details.- Returns:
- the details value.
-
withDetails
Set the details property: The error details.- Parameters:
details
- the details value to set.- Returns:
- the AzureResourceErrorInfo object itself.
-
withCode
Set the code property: The error code. -
validate
public void validate()Validates the instance.- Overrides:
validate
in classErrorInfo
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ErrorInfo>
- Overrides:
toJson
in classErrorInfo
- Throws:
IOException
-
fromJson
public static AzureResourceErrorInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AzureResourceErrorInfo from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of AzureResourceErrorInfo if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the AzureResourceErrorInfo.
-