Class ErrorDetails
- java.lang.Object
-
- com.azure.resourcemanager.resourcegraph.models.ErrorDetails
-
public final class ErrorDetails extends Object
Error details.
-
-
Constructor Summary
Constructors Constructor Description ErrorDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
additionalProperties()
Get the additionalProperties property: Error details.String
code()
Get the code property: Error code identifying the specific error.String
message()
Get the message property: A human readable error message.void
validate()
Validates the instance.ErrorDetails
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: Error details.ErrorDetails
withCode(String code)
Set the code property: Error code identifying the specific error.ErrorDetails
withMessage(String message)
Set the message property: A human readable error message.
-
-
-
Method Detail
-
code
public String code()
Get the code property: Error code identifying the specific error.- Returns:
- the code value.
-
withCode
public ErrorDetails withCode(String code)
Set the code property: Error code identifying the specific error.- Parameters:
code
- the code value to set.- Returns:
- the ErrorDetails object itself.
-
message
public String message()
Get the message property: A human readable error message.- Returns:
- the message value.
-
withMessage
public ErrorDetails withMessage(String message)
Set the message property: A human readable error message.- Parameters:
message
- the message value to set.- Returns:
- the ErrorDetails object itself.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: Error details.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public ErrorDetails withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: Error details.- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the ErrorDetails object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-