AdditionalErrorInfo Class
- java.
lang. Object - com.
azure. resourcemanager. databox. models. AdditionalErrorInfo
- com.
Implements
public final class AdditionalErrorInfo
implements JsonSerializable<AdditionalErrorInfo>
This class represents additional info which Resource Providers pass when an error occurs.
Constructor Summary
| Constructor | Description |
|---|---|
| AdditionalErrorInfo() |
Creates an instance of Additional |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Additional |
fromJson(JsonReader jsonReader)
Reads an instance of Additional |
| Object |
info()
Get the info property: Additional information of the type of error. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: Type of error (e. |
| void |
validate()
Validates the instance. |
|
Additional |
withInfo(Object info)
Set the info property: Additional information of the type of error. |
|
Additional |
withType(String type)
Set the type property: Type of error (e. |
Methods inherited from java.lang.Object
Constructor Details
AdditionalErrorInfo
public AdditionalErrorInfo()
Creates an instance of AdditionalErrorInfo class.
Method Details
fromJson
public static AdditionalErrorInfo fromJson(JsonReader jsonReader)
Reads an instance of AdditionalErrorInfo from the JsonReader.
Parameters:
Returns:
Throws:
info
public Object info()
Get the info property: Additional information of the type of error.
Returns:
toJson
type
public String type()
Get the type property: Type of error (e.g. CustomerIntervention, PolicyViolation, SecurityViolation).
Returns:
validate
public void validate()
Validates the instance.
withInfo
public AdditionalErrorInfo withInfo(Object info)
Set the info property: Additional information of the type of error.
Parameters:
Returns:
withType
public AdditionalErrorInfo withType(String type)
Set the type property: Type of error (e.g. CustomerIntervention, PolicyViolation, SecurityViolation).
Parameters:
Returns: