CassandraError Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. CassandraError
- com.
Implements
public final class CassandraError
implements JsonSerializable<CassandraError>
The CassandraError model.
Constructor Summary
Constructor | Description |
---|---|
CassandraError() |
Creates an instance of Cassandra |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
additionalErrorInfo()
Get the additional |
String |
code()
Get the code property: The code of error that occurred. |
static
Cassandra |
fromJson(JsonReader jsonReader)
Reads an instance of Cassandra |
String |
message()
Get the message property: The message of the error. |
String |
target()
Get the target property: The target resource of the error. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Cassandra |
withAdditionalErrorInfo(String additionalErrorInfo)
Set the additional |
Cassandra |
withCode(String code)
Set the code property: The code of error that occurred. |
Cassandra |
withMessage(String message)
Set the message property: The message of the error. |
Cassandra |
withTarget(String target)
Set the target property: The target resource of the error. |
Methods inherited from java.lang.Object
Constructor Details
CassandraError
public CassandraError()
Creates an instance of CassandraError class.
Method Details
additionalErrorInfo
public String additionalErrorInfo()
Get the additionalErrorInfo property: Additional information about the error.
Returns:
code
public String code()
Get the code property: The code of error that occurred.
Returns:
fromJson
public static CassandraError fromJson(JsonReader jsonReader)
Reads an instance of CassandraError from the JsonReader.
Parameters:
Returns:
Throws:
message
public String message()
Get the message property: The message of the error.
Returns:
target
public String target()
Get the target property: The target resource of the error.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAdditionalErrorInfo
public CassandraError withAdditionalErrorInfo(String additionalErrorInfo)
Set the additionalErrorInfo property: Additional information about the error.
Parameters:
Returns:
withCode
public CassandraError withCode(String code)
Set the code property: The code of error that occurred.
Parameters:
Returns:
withMessage
public CassandraError withMessage(String message)
Set the message property: The message of the error.
Parameters:
Returns:
withTarget
public CassandraError withTarget(String target)
Set the target property: The target resource of the error.
Parameters:
Returns:
Applies to
Azure SDK for Java