/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Keyspaces { namespace Model { /** *

Describes the schema of the table.

See Also:

AWS * API Reference

*/ class SchemaDefinition { public: AWS_KEYSPACES_API SchemaDefinition(); AWS_KEYSPACES_API SchemaDefinition(Aws::Utils::Json::JsonView jsonValue); AWS_KEYSPACES_API SchemaDefinition& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The regular columns of the table.

*/ inline const Aws::Vector& GetAllColumns() const{ return m_allColumns; } /** *

The regular columns of the table.

*/ inline bool AllColumnsHasBeenSet() const { return m_allColumnsHasBeenSet; } /** *

The regular columns of the table.

*/ inline void SetAllColumns(const Aws::Vector& value) { m_allColumnsHasBeenSet = true; m_allColumns = value; } /** *

The regular columns of the table.

*/ inline void SetAllColumns(Aws::Vector&& value) { m_allColumnsHasBeenSet = true; m_allColumns = std::move(value); } /** *

The regular columns of the table.

*/ inline SchemaDefinition& WithAllColumns(const Aws::Vector& value) { SetAllColumns(value); return *this;} /** *

The regular columns of the table.

*/ inline SchemaDefinition& WithAllColumns(Aws::Vector&& value) { SetAllColumns(std::move(value)); return *this;} /** *

The regular columns of the table.

*/ inline SchemaDefinition& AddAllColumns(const ColumnDefinition& value) { m_allColumnsHasBeenSet = true; m_allColumns.push_back(value); return *this; } /** *

The regular columns of the table.

*/ inline SchemaDefinition& AddAllColumns(ColumnDefinition&& value) { m_allColumnsHasBeenSet = true; m_allColumns.push_back(std::move(value)); return *this; } /** *

The columns that are part of the partition key of the table .

*/ inline const Aws::Vector& GetPartitionKeys() const{ return m_partitionKeys; } /** *

The columns that are part of the partition key of the table .

*/ inline bool PartitionKeysHasBeenSet() const { return m_partitionKeysHasBeenSet; } /** *

The columns that are part of the partition key of the table .

*/ inline void SetPartitionKeys(const Aws::Vector& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys = value; } /** *

The columns that are part of the partition key of the table .

*/ inline void SetPartitionKeys(Aws::Vector&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys = std::move(value); } /** *

The columns that are part of the partition key of the table .

*/ inline SchemaDefinition& WithPartitionKeys(const Aws::Vector& value) { SetPartitionKeys(value); return *this;} /** *

The columns that are part of the partition key of the table .

*/ inline SchemaDefinition& WithPartitionKeys(Aws::Vector&& value) { SetPartitionKeys(std::move(value)); return *this;} /** *

The columns that are part of the partition key of the table .

*/ inline SchemaDefinition& AddPartitionKeys(const PartitionKey& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys.push_back(value); return *this; } /** *

The columns that are part of the partition key of the table .

*/ inline SchemaDefinition& AddPartitionKeys(PartitionKey&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys.push_back(std::move(value)); return *this; } /** *

The columns that are part of the clustering key of the table.

*/ inline const Aws::Vector& GetClusteringKeys() const{ return m_clusteringKeys; } /** *

The columns that are part of the clustering key of the table.

*/ inline bool ClusteringKeysHasBeenSet() const { return m_clusteringKeysHasBeenSet; } /** *

The columns that are part of the clustering key of the table.

*/ inline void SetClusteringKeys(const Aws::Vector& value) { m_clusteringKeysHasBeenSet = true; m_clusteringKeys = value; } /** *

The columns that are part of the clustering key of the table.

*/ inline void SetClusteringKeys(Aws::Vector&& value) { m_clusteringKeysHasBeenSet = true; m_clusteringKeys = std::move(value); } /** *

The columns that are part of the clustering key of the table.

*/ inline SchemaDefinition& WithClusteringKeys(const Aws::Vector& value) { SetClusteringKeys(value); return *this;} /** *

The columns that are part of the clustering key of the table.

*/ inline SchemaDefinition& WithClusteringKeys(Aws::Vector&& value) { SetClusteringKeys(std::move(value)); return *this;} /** *

The columns that are part of the clustering key of the table.

*/ inline SchemaDefinition& AddClusteringKeys(const ClusteringKey& value) { m_clusteringKeysHasBeenSet = true; m_clusteringKeys.push_back(value); return *this; } /** *

The columns that are part of the clustering key of the table.

*/ inline SchemaDefinition& AddClusteringKeys(ClusteringKey&& value) { m_clusteringKeysHasBeenSet = true; m_clusteringKeys.push_back(std::move(value)); return *this; } /** *

The columns that have been defined as STATIC. Static columns * store values that are shared by all rows in the same partition.

*/ inline const Aws::Vector& GetStaticColumns() const{ return m_staticColumns; } /** *

The columns that have been defined as STATIC. Static columns * store values that are shared by all rows in the same partition.

*/ inline bool StaticColumnsHasBeenSet() const { return m_staticColumnsHasBeenSet; } /** *

The columns that have been defined as STATIC. Static columns * store values that are shared by all rows in the same partition.

*/ inline void SetStaticColumns(const Aws::Vector& value) { m_staticColumnsHasBeenSet = true; m_staticColumns = value; } /** *

The columns that have been defined as STATIC. Static columns * store values that are shared by all rows in the same partition.

*/ inline void SetStaticColumns(Aws::Vector&& value) { m_staticColumnsHasBeenSet = true; m_staticColumns = std::move(value); } /** *

The columns that have been defined as STATIC. Static columns * store values that are shared by all rows in the same partition.

*/ inline SchemaDefinition& WithStaticColumns(const Aws::Vector& value) { SetStaticColumns(value); return *this;} /** *

The columns that have been defined as STATIC. Static columns * store values that are shared by all rows in the same partition.

*/ inline SchemaDefinition& WithStaticColumns(Aws::Vector&& value) { SetStaticColumns(std::move(value)); return *this;} /** *

The columns that have been defined as STATIC. Static columns * store values that are shared by all rows in the same partition.

*/ inline SchemaDefinition& AddStaticColumns(const StaticColumn& value) { m_staticColumnsHasBeenSet = true; m_staticColumns.push_back(value); return *this; } /** *

The columns that have been defined as STATIC. Static columns * store values that are shared by all rows in the same partition.

*/ inline SchemaDefinition& AddStaticColumns(StaticColumn&& value) { m_staticColumnsHasBeenSet = true; m_staticColumns.push_back(std::move(value)); return *this; } private: Aws::Vector m_allColumns; bool m_allColumnsHasBeenSet = false; Aws::Vector m_partitionKeys; bool m_partitionKeysHasBeenSet = false; Aws::Vector m_clusteringKeys; bool m_clusteringKeysHasBeenSet = false; Aws::Vector m_staticColumns; bool m_staticColumnsHasBeenSet = false; }; } // namespace Model } // namespace Keyspaces } // namespace Aws