Class CloudError
java.lang.Object
com.azure.resourcemanager.databox.models.CloudError
Cloud error.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the additionalInfo property: Cloud error additional info.code()
Get the code property: Cloud error code.details()
Get the details property: Cloud error details.message()
Get the message property: Cloud error message.target()
Get the target property: Cloud error target.void
validate()
Validates the instance.Set the code property: Cloud error code.withMessage
(String message) Set the message property: Cloud error message.withTarget
(String target) Set the target property: Cloud error target.
-
Constructor Details
-
CloudError
public CloudError()Creates an instance of CloudError class.
-
-
Method Details
-
code
Get the code property: Cloud error code.- Returns:
- the code value.
-
withCode
Set the code property: Cloud error code.- Parameters:
code
- the code value to set.- Returns:
- the CloudError object itself.
-
message
Get the message property: Cloud error message.- Returns:
- the message value.
-
withMessage
Set the message property: Cloud error message.- Parameters:
message
- the message value to set.- Returns:
- the CloudError object itself.
-
target
Get the target property: Cloud error target.- Returns:
- the target value.
-
withTarget
Set the target property: Cloud error target.- Parameters:
target
- the target value to set.- Returns:
- the CloudError object itself.
-
details
Get the details property: Cloud error details.- Returns:
- the details value.
-
additionalInfo
Get the additionalInfo property: Cloud error additional info.- Returns:
- the additionalInfo value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-