Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.cosmosdb;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
Cosmos DB Cassandra table schema.
/**
* Cosmos DB Cassandra table schema.
*/
public class CassandraSchema {
List of Cassandra table columns.
/**
* List of Cassandra table columns.
*/
@JsonProperty(value = "columns")
private List<Column> columns;
List of partition key.
/**
* List of partition key.
*/
@JsonProperty(value = "partitionKeys")
private List<CassandraPartitionKey> partitionKeys;
List of cluster key.
/**
* List of cluster key.
*/
@JsonProperty(value = "clusterKeys")
private List<ClusterKey> clusterKeys;
Get list of Cassandra table columns.
Returns: the columns value
/**
* Get list of Cassandra table columns.
*
* @return the columns value
*/
public List<Column> columns() {
return this.columns;
}
Set list of Cassandra table columns.
Params: - columns – the columns value to set
Returns: the CassandraSchema object itself.
/**
* Set list of Cassandra table columns.
*
* @param columns the columns value to set
* @return the CassandraSchema object itself.
*/
public CassandraSchema withColumns(List<Column> columns) {
this.columns = columns;
return this;
}
Get list of partition key.
Returns: the partitionKeys value
/**
* Get list of partition key.
*
* @return the partitionKeys value
*/
public List<CassandraPartitionKey> partitionKeys() {
return this.partitionKeys;
}
Set list of partition key.
Params: - partitionKeys – the partitionKeys value to set
Returns: the CassandraSchema object itself.
/**
* Set list of partition key.
*
* @param partitionKeys the partitionKeys value to set
* @return the CassandraSchema object itself.
*/
public CassandraSchema withPartitionKeys(List<CassandraPartitionKey> partitionKeys) {
this.partitionKeys = partitionKeys;
return this;
}
Get list of cluster key.
Returns: the clusterKeys value
/**
* Get list of cluster key.
*
* @return the clusterKeys value
*/
public List<ClusterKey> clusterKeys() {
return this.clusterKeys;
}
Set list of cluster key.
Params: - clusterKeys – the clusterKeys value to set
Returns: the CassandraSchema object itself.
/**
* Set list of cluster key.
*
* @param clusterKeys the clusterKeys value to set
* @return the CassandraSchema object itself.
*/
public CassandraSchema withClusterKeys(List<ClusterKey> clusterKeys) {
this.clusterKeys = clusterKeys;
return this;
}
}