Class InnerError
- java.lang.Object
-
- com.azure.resourcemanager.dataprotection.models.InnerError
-
public final class InnerError extends Object
InnerError Inner Error.
-
-
Constructor Summary
Constructors Constructor Description InnerError()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
additionalInfo()
Get the additionalInfo property: Any Key value pairs that can be provided to the client for additional verbose information.String
code()
Get the code property: Unique code for this error.InnerError
embeddedInnerError()
Get the embeddedInnerError property: InnerError Child Inner Error, to allow Nesting.void
validate()
Validates the instance.InnerError
withAdditionalInfo(Map<String,String> additionalInfo)
Set the additionalInfo property: Any Key value pairs that can be provided to the client for additional verbose information.InnerError
withCode(String code)
Set the code property: Unique code for this error.InnerError
withEmbeddedInnerError(InnerError embeddedInnerError)
Set the embeddedInnerError property: InnerError Child Inner Error, to allow Nesting.
-
-
-
Method Detail
-
additionalInfo
public Map<String,String> additionalInfo()
Get the additionalInfo property: Any Key value pairs that can be provided to the client for additional verbose information.- Returns:
- the additionalInfo value.
-
withAdditionalInfo
public InnerError withAdditionalInfo(Map<String,String> additionalInfo)
Set the additionalInfo property: Any Key value pairs that can be provided to the client for additional verbose information.- Parameters:
additionalInfo
- the additionalInfo value to set.- Returns:
- the InnerError object itself.
-
code
public String code()
Get the code property: Unique code for this error.- Returns:
- the code value.
-
withCode
public InnerError withCode(String code)
Set the code property: Unique code for this error.- Parameters:
code
- the code value to set.- Returns:
- the InnerError object itself.
-
embeddedInnerError
public InnerError embeddedInnerError()
Get the embeddedInnerError property: InnerError Child Inner Error, to allow Nesting.- Returns:
- the embeddedInnerError value.
-
withEmbeddedInnerError
public InnerError withEmbeddedInnerError(InnerError embeddedInnerError)
Set the embeddedInnerError property: InnerError Child Inner Error, to allow Nesting.- Parameters:
embeddedInnerError
- the embeddedInnerError value to set.- Returns:
- the InnerError object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-