Class CassandraError
java.lang.Object
com.azure.resourcemanager.cosmos.models.CassandraError
The CassandraError model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalErrorInfo property: Additional information about the error.code()Get the code property: The code of error that occurred.message()Get the message property: The message of the error.target()Get the target property: The target resource of the error.voidvalidate()Validates the instance.withAdditionalErrorInfo(String additionalErrorInfo) Set the additionalErrorInfo property: Additional information about the error.Set the code property: The code of error that occurred.withMessage(String message) Set the message property: The message of the error.withTarget(String target) Set the target property: The target resource of the error.
-
Constructor Details
-
CassandraError
public CassandraError()Creates an instance of CassandraError class.
-
-
Method Details
-
code
Get the code property: The code of error that occurred.- Returns:
- the code value.
-
withCode
Set the code property: The code of error that occurred.- Parameters:
code- the code value to set.- Returns:
- the CassandraError object itself.
-
message
Get the message property: The message of the error.- Returns:
- the message value.
-
withMessage
Set the message property: The message of the error.- Parameters:
message- the message value to set.- Returns:
- the CassandraError object itself.
-
target
Get the target property: The target resource of the error.- Returns:
- the target value.
-
withTarget
Set the target property: The target resource of the error.- Parameters:
target- the target value to set.- Returns:
- the CassandraError object itself.
-
additionalErrorInfo
Get the additionalErrorInfo property: Additional information about the error.- Returns:
- the additionalErrorInfo value.
-
withAdditionalErrorInfo
Set the additionalErrorInfo property: Additional information about the error.- Parameters:
additionalErrorInfo- the additionalErrorInfo value to set.- Returns:
- the CassandraError object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-