ErrorDetail Class
- java.
lang. Object - com.
azure. resourcemanager. connectedvmware. models. ErrorDetail
- com.
public final class ErrorDetail
Error details.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| ErrorDetail() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
code()
Get the code property: The error's code. |
|
List<Error |
details()
Get the details property: Additional error details. |
| String |
message()
Get the message property: A human readable error message. |
| String |
target()
Get the target property: Indicates which property in the request is responsible for the error. |
| void |
validate()
Validates the instance. |
|
Error |
withCode(String code)
Set the code property: The error's code. |
|
Error |
withDetails(List<ErrorDetail> details)
Set the details property: Additional error details. |
|
Error |
withMessage(String message)
Set the message property: A human readable error message. |
|
Error |
withTarget(String target)
Set the target property: Indicates which property in the request is responsible for the error. |
Methods inherited from java.lang.Object
Constructor Details
ErrorDetail
public ErrorDetail()
Method Details
code
public String code()
Get the code property: The error's code.
Returns:
details
public List<ErrorDetail> details()
Get the details property: Additional error details.
Returns:
message
public String message()
Get the message property: A human readable error message.
Returns:
target
public String target()
Get the target property: Indicates which property in the request is responsible for the error.
Returns:
validate
public void validate()
Validates the instance.
withCode
public ErrorDetail withCode(String code)
Set the code property: The error's code.
Parameters:
Returns:
withDetails
public ErrorDetail withDetails(List<ErrorDetail> details)
Set the details property: Additional error details.
Parameters:
Returns:
withMessage
public ErrorDetail withMessage(String message)
Set the message property: A human readable error message.
Parameters:
Returns:
withTarget
public ErrorDetail withTarget(String target)
Set the target property: Indicates which property in the request is responsible for the error.
Parameters:
Returns: