Column Class

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

Implements

public final class Column
implements JsonSerializable<Column>

Cosmos DB Cassandra table column.

Constructor Summary

Constructor Description
Column()

Creates an instance of Column class.

Method Summary

Modifier and Type Method and Description
static Column fromJson(JsonReader jsonReader)

Reads an instance of Column from the JsonReader.

String name()

Get the name property: Name of the Cosmos DB Cassandra table column.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Type of the Cosmos DB Cassandra table column.

void validate()

Validates the instance.

Column withName(String name)

Set the name property: Name of the Cosmos DB Cassandra table column.

Column withType(String type)

Set the type property: Type of the Cosmos DB Cassandra table column.

Methods inherited from java.lang.Object

Constructor Details

Column

public Column()

Creates an instance of Column class.

Method Details

fromJson

public static Column fromJson(JsonReader jsonReader)

Reads an instance of Column from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Column 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 Column.

name

public String name()

Get the name property: Name of the Cosmos DB Cassandra table column.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Type of the Cosmos DB Cassandra table column.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withName

public Column withName(String name)

Set the name property: Name of the Cosmos DB Cassandra table column.

Parameters:

name - the name value to set.

Returns:

the Column object itself.

withType

public Column withType(String type)

Set the type property: Type of the Cosmos DB Cassandra table column.

Parameters:

type - the type value to set.

Returns:

the Column object itself.

Applies to