CassandraError Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.models.CassandraError

Implements

public final class CassandraError
implements JsonSerializable<CassandraError>

The CassandraError model.

Constructor Summary

Constructor Description
CassandraError()

Creates an instance of CassandraError class.

Method Summary

Modifier and Type Method and Description
String additionalErrorInfo()

Get the additionalErrorInfo property: Additional information about the error.

String code()

Get the code property: The code of error that occurred.

static CassandraError fromJson(JsonReader jsonReader)

Reads an instance of CassandraError from the JsonReader.

String message()

Get the message property: The message of the error.

String target()

Get the target property: The target resource of the error.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CassandraError withAdditionalErrorInfo(String additionalErrorInfo)

Set the additionalErrorInfo property: Additional information about the error.

CassandraError withCode(String code)

Set the code property: The code of error that occurred.

CassandraError withMessage(String message)

Set the message property: The message of the error.

CassandraError 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:

the additionalErrorInfo value.

code

public String code()

Get the code property: The code of error that occurred.

Returns:

the code value.

fromJson

public static CassandraError fromJson(JsonReader jsonReader)

Reads an instance of CassandraError from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CassandraError if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the CassandraError.

message

public String message()

Get the message property: The message of the error.

Returns:

the message value.

target

public String target()

Get the target property: The target resource of the error.

Returns:

the target value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalErrorInfo

public CassandraError withAdditionalErrorInfo(String additionalErrorInfo)

Set the additionalErrorInfo property: Additional information about the error.

Parameters:

additionalErrorInfo - the additionalErrorInfo value to set.

Returns:

the CassandraError object itself.

withCode

public CassandraError withCode(String code)

Set the code property: The code of error that occurred.

Parameters:

code - the code value to set.

Returns:

the CassandraError object itself.

withMessage

public CassandraError withMessage(String message)

Set the message property: The message of the error.

Parameters:

message - the message value to set.

Returns:

the CassandraError object itself.

withTarget

public CassandraError withTarget(String target)

Set the target property: The target resource of the error.

Parameters:

target - the target value to set.

Returns:

the CassandraError object itself.

Applies to