AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SourceTableDetails.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/dynamodb/model/ProvisionedThroughput.h>
12#include <aws/dynamodb/model/OnDemandThroughput.h>
13#include <aws/dynamodb/model/BillingMode.h>
14#include <aws/dynamodb/model/KeySchemaElement.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace DynamoDB
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_DYNAMODB_API SourceTableDetails() = default;
44 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetTableName() const { return m_tableName; }
52 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
53 template<typename TableNameT = Aws::String>
54 void SetTableName(TableNameT&& value) { m_tableNameHasBeenSet = true; m_tableName = std::forward<TableNameT>(value); }
55 template<typename TableNameT = Aws::String>
56 SourceTableDetails& WithTableName(TableNameT&& value) { SetTableName(std::forward<TableNameT>(value)); return *this;}
58
60
63 inline const Aws::String& GetTableId() const { return m_tableId; }
64 inline bool TableIdHasBeenSet() const { return m_tableIdHasBeenSet; }
65 template<typename TableIdT = Aws::String>
66 void SetTableId(TableIdT&& value) { m_tableIdHasBeenSet = true; m_tableId = std::forward<TableIdT>(value); }
67 template<typename TableIdT = Aws::String>
68 SourceTableDetails& WithTableId(TableIdT&& value) { SetTableId(std::forward<TableIdT>(value)); return *this;}
70
72
75 inline const Aws::String& GetTableArn() const { return m_tableArn; }
76 inline bool TableArnHasBeenSet() const { return m_tableArnHasBeenSet; }
77 template<typename TableArnT = Aws::String>
78 void SetTableArn(TableArnT&& value) { m_tableArnHasBeenSet = true; m_tableArn = std::forward<TableArnT>(value); }
79 template<typename TableArnT = Aws::String>
80 SourceTableDetails& WithTableArn(TableArnT&& value) { SetTableArn(std::forward<TableArnT>(value)); return *this;}
82
84
87 inline long long GetTableSizeBytes() const { return m_tableSizeBytes; }
88 inline bool TableSizeBytesHasBeenSet() const { return m_tableSizeBytesHasBeenSet; }
89 inline void SetTableSizeBytes(long long value) { m_tableSizeBytesHasBeenSet = true; m_tableSizeBytes = value; }
90 inline SourceTableDetails& WithTableSizeBytes(long long value) { SetTableSizeBytes(value); return *this;}
92
94
97 inline const Aws::Vector<KeySchemaElement>& GetKeySchema() const { return m_keySchema; }
98 inline bool KeySchemaHasBeenSet() const { return m_keySchemaHasBeenSet; }
99 template<typename KeySchemaT = Aws::Vector<KeySchemaElement>>
100 void SetKeySchema(KeySchemaT&& value) { m_keySchemaHasBeenSet = true; m_keySchema = std::forward<KeySchemaT>(value); }
101 template<typename KeySchemaT = Aws::Vector<KeySchemaElement>>
102 SourceTableDetails& WithKeySchema(KeySchemaT&& value) { SetKeySchema(std::forward<KeySchemaT>(value)); return *this;}
103 template<typename KeySchemaT = KeySchemaElement>
104 SourceTableDetails& AddKeySchema(KeySchemaT&& value) { m_keySchemaHasBeenSet = true; m_keySchema.emplace_back(std::forward<KeySchemaT>(value)); return *this; }
106
108
111 inline const Aws::Utils::DateTime& GetTableCreationDateTime() const { return m_tableCreationDateTime; }
112 inline bool TableCreationDateTimeHasBeenSet() const { return m_tableCreationDateTimeHasBeenSet; }
113 template<typename TableCreationDateTimeT = Aws::Utils::DateTime>
114 void SetTableCreationDateTime(TableCreationDateTimeT&& value) { m_tableCreationDateTimeHasBeenSet = true; m_tableCreationDateTime = std::forward<TableCreationDateTimeT>(value); }
115 template<typename TableCreationDateTimeT = Aws::Utils::DateTime>
116 SourceTableDetails& WithTableCreationDateTime(TableCreationDateTimeT&& value) { SetTableCreationDateTime(std::forward<TableCreationDateTimeT>(value)); return *this;}
118
120
123 inline const ProvisionedThroughput& GetProvisionedThroughput() const { return m_provisionedThroughput; }
124 inline bool ProvisionedThroughputHasBeenSet() const { return m_provisionedThroughputHasBeenSet; }
125 template<typename ProvisionedThroughputT = ProvisionedThroughput>
126 void SetProvisionedThroughput(ProvisionedThroughputT&& value) { m_provisionedThroughputHasBeenSet = true; m_provisionedThroughput = std::forward<ProvisionedThroughputT>(value); }
127 template<typename ProvisionedThroughputT = ProvisionedThroughput>
128 SourceTableDetails& WithProvisionedThroughput(ProvisionedThroughputT&& value) { SetProvisionedThroughput(std::forward<ProvisionedThroughputT>(value)); return *this;}
130
132
133 inline const OnDemandThroughput& GetOnDemandThroughput() const { return m_onDemandThroughput; }
134 inline bool OnDemandThroughputHasBeenSet() const { return m_onDemandThroughputHasBeenSet; }
135 template<typename OnDemandThroughputT = OnDemandThroughput>
136 void SetOnDemandThroughput(OnDemandThroughputT&& value) { m_onDemandThroughputHasBeenSet = true; m_onDemandThroughput = std::forward<OnDemandThroughputT>(value); }
137 template<typename OnDemandThroughputT = OnDemandThroughput>
138 SourceTableDetails& WithOnDemandThroughput(OnDemandThroughputT&& value) { SetOnDemandThroughput(std::forward<OnDemandThroughputT>(value)); return *this;}
140
142
145 inline long long GetItemCount() const { return m_itemCount; }
146 inline bool ItemCountHasBeenSet() const { return m_itemCountHasBeenSet; }
147 inline void SetItemCount(long long value) { m_itemCountHasBeenSet = true; m_itemCount = value; }
148 inline SourceTableDetails& WithItemCount(long long value) { SetItemCount(value); return *this;}
150
152
161 inline BillingMode GetBillingMode() const { return m_billingMode; }
162 inline bool BillingModeHasBeenSet() const { return m_billingModeHasBeenSet; }
163 inline void SetBillingMode(BillingMode value) { m_billingModeHasBeenSet = true; m_billingMode = value; }
164 inline SourceTableDetails& WithBillingMode(BillingMode value) { SetBillingMode(value); return *this;}
166 private:
167
168 Aws::String m_tableName;
169 bool m_tableNameHasBeenSet = false;
170
171 Aws::String m_tableId;
172 bool m_tableIdHasBeenSet = false;
173
174 Aws::String m_tableArn;
175 bool m_tableArnHasBeenSet = false;
176
177 long long m_tableSizeBytes{0};
178 bool m_tableSizeBytesHasBeenSet = false;
179
181 bool m_keySchemaHasBeenSet = false;
182
183 Aws::Utils::DateTime m_tableCreationDateTime{};
184 bool m_tableCreationDateTimeHasBeenSet = false;
185
186 ProvisionedThroughput m_provisionedThroughput;
187 bool m_provisionedThroughputHasBeenSet = false;
188
189 OnDemandThroughput m_onDemandThroughput;
190 bool m_onDemandThroughputHasBeenSet = false;
191
192 long long m_itemCount{0};
193 bool m_itemCountHasBeenSet = false;
194
195 BillingMode m_billingMode{BillingMode::NOT_SET};
196 bool m_billingModeHasBeenSet = false;
197 };
198
199} // namespace Model
200} // namespace DynamoDB
201} // namespace Aws
SourceTableDetails & WithTableCreationDateTime(TableCreationDateTimeT &&value)
const Aws::Utils::DateTime & GetTableCreationDateTime() const
const ProvisionedThroughput & GetProvisionedThroughput() const
SourceTableDetails & WithTableSizeBytes(long long value)
SourceTableDetails & WithBillingMode(BillingMode value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOnDemandThroughput(OnDemandThroughputT &&value)
SourceTableDetails & WithTableName(TableNameT &&value)
SourceTableDetails & WithItemCount(long long value)
SourceTableDetails & WithKeySchema(KeySchemaT &&value)
SourceTableDetails & WithProvisionedThroughput(ProvisionedThroughputT &&value)
SourceTableDetails & WithTableId(TableIdT &&value)
void SetTableCreationDateTime(TableCreationDateTimeT &&value)
const OnDemandThroughput & GetOnDemandThroughput() const
AWS_DYNAMODB_API SourceTableDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetProvisionedThroughput(ProvisionedThroughputT &&value)
SourceTableDetails & WithTableArn(TableArnT &&value)
SourceTableDetails & AddKeySchema(KeySchemaT &&value)
SourceTableDetails & WithOnDemandThroughput(OnDemandThroughputT &&value)
AWS_DYNAMODB_API SourceTableDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< KeySchemaElement > & GetKeySchema() const
AWS_DYNAMODB_API SourceTableDetails()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue