AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SchemaDefinition.h
1
6#pragma once
7#include <aws/keyspaces/Keyspaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/keyspaces/model/ColumnDefinition.h>
10#include <aws/keyspaces/model/PartitionKey.h>
11#include <aws/keyspaces/model/ClusteringKey.h>
12#include <aws/keyspaces/model/StaticColumn.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Keyspaces
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_KEYSPACES_API SchemaDefinition();
39 AWS_KEYSPACES_API SchemaDefinition(Aws::Utils::Json::JsonView jsonValue);
41 AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<ColumnDefinition>& GetAllColumns() const{ return m_allColumns; }
49 inline bool AllColumnsHasBeenSet() const { return m_allColumnsHasBeenSet; }
50 inline void SetAllColumns(const Aws::Vector<ColumnDefinition>& value) { m_allColumnsHasBeenSet = true; m_allColumns = value; }
51 inline void SetAllColumns(Aws::Vector<ColumnDefinition>&& value) { m_allColumnsHasBeenSet = true; m_allColumns = std::move(value); }
52 inline SchemaDefinition& WithAllColumns(const Aws::Vector<ColumnDefinition>& value) { SetAllColumns(value); return *this;}
53 inline SchemaDefinition& WithAllColumns(Aws::Vector<ColumnDefinition>&& value) { SetAllColumns(std::move(value)); return *this;}
54 inline SchemaDefinition& AddAllColumns(const ColumnDefinition& value) { m_allColumnsHasBeenSet = true; m_allColumns.push_back(value); return *this; }
55 inline SchemaDefinition& AddAllColumns(ColumnDefinition&& value) { m_allColumnsHasBeenSet = true; m_allColumns.push_back(std::move(value)); return *this; }
57
59
62 inline const Aws::Vector<PartitionKey>& GetPartitionKeys() const{ return m_partitionKeys; }
63 inline bool PartitionKeysHasBeenSet() const { return m_partitionKeysHasBeenSet; }
64 inline void SetPartitionKeys(const Aws::Vector<PartitionKey>& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys = value; }
65 inline void SetPartitionKeys(Aws::Vector<PartitionKey>&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys = std::move(value); }
67 inline SchemaDefinition& WithPartitionKeys(Aws::Vector<PartitionKey>&& value) { SetPartitionKeys(std::move(value)); return *this;}
68 inline SchemaDefinition& AddPartitionKeys(const PartitionKey& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys.push_back(value); return *this; }
69 inline SchemaDefinition& AddPartitionKeys(PartitionKey&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys.push_back(std::move(value)); return *this; }
71
73
76 inline const Aws::Vector<ClusteringKey>& GetClusteringKeys() const{ return m_clusteringKeys; }
77 inline bool ClusteringKeysHasBeenSet() const { return m_clusteringKeysHasBeenSet; }
78 inline void SetClusteringKeys(const Aws::Vector<ClusteringKey>& value) { m_clusteringKeysHasBeenSet = true; m_clusteringKeys = value; }
79 inline void SetClusteringKeys(Aws::Vector<ClusteringKey>&& value) { m_clusteringKeysHasBeenSet = true; m_clusteringKeys = std::move(value); }
81 inline SchemaDefinition& WithClusteringKeys(Aws::Vector<ClusteringKey>&& value) { SetClusteringKeys(std::move(value)); return *this;}
82 inline SchemaDefinition& AddClusteringKeys(const ClusteringKey& value) { m_clusteringKeysHasBeenSet = true; m_clusteringKeys.push_back(value); return *this; }
83 inline SchemaDefinition& AddClusteringKeys(ClusteringKey&& value) { m_clusteringKeysHasBeenSet = true; m_clusteringKeys.push_back(std::move(value)); return *this; }
85
87
91 inline const Aws::Vector<StaticColumn>& GetStaticColumns() const{ return m_staticColumns; }
92 inline bool StaticColumnsHasBeenSet() const { return m_staticColumnsHasBeenSet; }
93 inline void SetStaticColumns(const Aws::Vector<StaticColumn>& value) { m_staticColumnsHasBeenSet = true; m_staticColumns = value; }
94 inline void SetStaticColumns(Aws::Vector<StaticColumn>&& value) { m_staticColumnsHasBeenSet = true; m_staticColumns = std::move(value); }
96 inline SchemaDefinition& WithStaticColumns(Aws::Vector<StaticColumn>&& value) { SetStaticColumns(std::move(value)); return *this;}
97 inline SchemaDefinition& AddStaticColumns(const StaticColumn& value) { m_staticColumnsHasBeenSet = true; m_staticColumns.push_back(value); return *this; }
98 inline SchemaDefinition& AddStaticColumns(StaticColumn&& value) { m_staticColumnsHasBeenSet = true; m_staticColumns.push_back(std::move(value)); return *this; }
100 private:
101
103 bool m_allColumnsHasBeenSet = false;
104
105 Aws::Vector<PartitionKey> m_partitionKeys;
106 bool m_partitionKeysHasBeenSet = false;
107
108 Aws::Vector<ClusteringKey> m_clusteringKeys;
109 bool m_clusteringKeysHasBeenSet = false;
110
111 Aws::Vector<StaticColumn> m_staticColumns;
112 bool m_staticColumnsHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace Keyspaces
117} // namespace Aws
SchemaDefinition & WithStaticColumns(Aws::Vector< StaticColumn > &&value)
const Aws::Vector< StaticColumn > & GetStaticColumns() const
SchemaDefinition & WithPartitionKeys(const Aws::Vector< PartitionKey > &value)
SchemaDefinition & WithPartitionKeys(Aws::Vector< PartitionKey > &&value)
void SetPartitionKeys(const Aws::Vector< PartitionKey > &value)
SchemaDefinition & AddStaticColumns(StaticColumn &&value)
AWS_KEYSPACES_API SchemaDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStaticColumns(Aws::Vector< StaticColumn > &&value)
SchemaDefinition & WithStaticColumns(const Aws::Vector< StaticColumn > &value)
SchemaDefinition & WithAllColumns(const Aws::Vector< ColumnDefinition > &value)
SchemaDefinition & AddStaticColumns(const StaticColumn &value)
const Aws::Vector< ColumnDefinition > & GetAllColumns() const
void SetStaticColumns(const Aws::Vector< StaticColumn > &value)
SchemaDefinition & AddPartitionKeys(PartitionKey &&value)
AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
SchemaDefinition & AddAllColumns(ColumnDefinition &&value)
SchemaDefinition & WithAllColumns(Aws::Vector< ColumnDefinition > &&value)
void SetClusteringKeys(const Aws::Vector< ClusteringKey > &value)
SchemaDefinition & AddPartitionKeys(const PartitionKey &value)
const Aws::Vector< PartitionKey > & GetPartitionKeys() const
AWS_KEYSPACES_API SchemaDefinition(Aws::Utils::Json::JsonView jsonValue)
SchemaDefinition & AddClusteringKeys(const ClusteringKey &value)
SchemaDefinition & WithClusteringKeys(Aws::Vector< ClusteringKey > &&value)
void SetAllColumns(const Aws::Vector< ColumnDefinition > &value)
const Aws::Vector< ClusteringKey > & GetClusteringKeys() const
SchemaDefinition & WithClusteringKeys(const Aws::Vector< ClusteringKey > &value)
void SetClusteringKeys(Aws::Vector< ClusteringKey > &&value)
SchemaDefinition & AddAllColumns(const ColumnDefinition &value)
void SetAllColumns(Aws::Vector< ColumnDefinition > &&value)
void SetPartitionKeys(Aws::Vector< PartitionKey > &&value)
SchemaDefinition & AddClusteringKeys(ClusteringKey &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue