AzureResourceErrorInfo Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. ErrorInfo - com.
azure. resourcemanager. appservice. models. AzureResourceErrorInfo
- com.
- com.
public final class AzureResourceErrorInfo
extends ErrorInfo
The azure resource error info.
Constructor Summary
Constructor | Description |
---|---|
AzureResourceErrorInfo() |
Creates an instance of Azure |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Azure |
details()
Get the details property: The error details. |
static
Azure |
fromJson(JsonReader jsonReader)
Reads an instance of Azure |
String |
message()
Get the message property: The error message. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Azure |
withCode(String code)
Set the code property: The error code. |
Azure |
withDetails(List<AzureResourceErrorInfo> details)
Set the details property: The error details. |
Azure |
withMessage(String message)
Set the message property: The error message. |
Methods inherited from ErrorInfo
Methods inherited from java.lang.Object
Constructor Details
AzureResourceErrorInfo
public AzureResourceErrorInfo()
Creates an instance of AzureResourceErrorInfo class.
Method Details
details
public List
Get the details property: The error details.
Returns:
fromJson
public static AzureResourceErrorInfo fromJson(JsonReader jsonReader)
Reads an instance of AzureResourceErrorInfo from the JsonReader.
Parameters:
Returns:
Throws:
message
public String message()
Get the message property: The error message.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
AzureResourceErrorInfo.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
AzureResourceErrorInfo.validate()withCode
public AzureResourceErrorInfo withCode(String code)
Set the code property: The error code.
Overrides:
AzureResourceErrorInfo.withCode(String code)Parameters:
withDetails
public AzureResourceErrorInfo withDetails(List
Set the details property: The error details.
Parameters:
Returns:
withMessage
public AzureResourceErrorInfo withMessage(String message)
Set the message property: The error message.
Parameters:
Returns:
Applies to
Azure SDK for Java