Share via


AdditionalErrorInfo Class

  • java.lang.Object
    • com.azure.resourcemanager.databox.models.AdditionalErrorInfo

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 AdditionalErrorInfo class.

Method Summary

Modifier and Type Method and Description
static AdditionalErrorInfo fromJson(JsonReader jsonReader)

Reads an instance of AdditionalErrorInfo from the JsonReader.

Object info()

Get the info property: Additional information of the type of error.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Type of error (e.g.

void validate()

Validates the instance.

AdditionalErrorInfo withInfo(Object info)

Set the info property: Additional information of the type of error.

AdditionalErrorInfo withType(String type)

Set the type property: Type of error (e.g.

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:

jsonReader - The JsonReader being read.

Returns:

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

info

public Object info()

Get the info property: Additional information of the type of error.

Returns:

the info value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Type of error (e.g. CustomerIntervention, PolicyViolation, SecurityViolation).

Returns:

the type value.

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:

info - the info value to set.

Returns:

the AdditionalErrorInfo object itself.

withType

public AdditionalErrorInfo withType(String type)

Set the type property: Type of error (e.g. CustomerIntervention, PolicyViolation, SecurityViolation).

Parameters:

type - the type value to set.

Returns:

the AdditionalErrorInfo object itself.

Applies to