AdditionalErrorInfo Class

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

public final class 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
Object info()

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

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

info

public Object info()

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

Returns:

the info value.

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