Class ErrorDetail
java.lang.Object
com.azure.resourcemanager.connectedvmware.models.ErrorDetail
Error details.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncode()
Get the code property: The error's code.details()
Get the details property: Additional error details.message()
Get the message property: A human readable error message.target()
Get the target property: Indicates which property in the request is responsible for the error.void
validate()
Validates the instance.Set the code property: The error's code.withDetails
(List<ErrorDetail> details) Set the details property: Additional error details.withMessage
(String message) Set the message property: A human readable error message.withTarget
(String target) Set the target property: Indicates which property in the request is responsible for the error.
-
Constructor Details
-
ErrorDetail
public ErrorDetail()
-
-
Method Details
-
code
Get the code property: The error's code.- Returns:
- the code value.
-
withCode
Set the code property: The error's code.- Parameters:
code
- the code value to set.- Returns:
- the ErrorDetail object itself.
-
message
Get the message property: A human readable error message.- Returns:
- the message value.
-
withMessage
Set the message property: A human readable error message.- Parameters:
message
- the message value to set.- Returns:
- the ErrorDetail object itself.
-
target
Get the target property: Indicates which property in the request is responsible for the error.- Returns:
- the target value.
-
withTarget
Set the target property: Indicates which property in the request is responsible for the error.- Parameters:
target
- the target value to set.- Returns:
- the ErrorDetail object itself.
-
details
Get the details property: Additional error details.- Returns:
- the details value.
-
withDetails
Set the details property: Additional error details.- Parameters:
details
- the details value to set.- Returns:
- the ErrorDetail object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-