AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
Table.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/timestream-write/TimestreamWrite_EXPORTS.h>
10#include <aws/timestream-write/model/MagneticStoreWriteProperties.h>
11#include <aws/timestream-write/model/RetentionProperties.h>
12#include <aws/timestream-write/model/Schema.h>
13#include <aws/timestream-write/model/TableStatus.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace TimestreamWrite {
25namespace Model {
26
34class Table {
35 public:
36 AWS_TIMESTREAMWRITE_API Table() = default;
37 AWS_TIMESTREAMWRITE_API Table(Aws::Utils::Json::JsonView jsonValue);
38 AWS_TIMESTREAMWRITE_API Table& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetArn() const { return m_arn; }
46 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
47 template <typename ArnT = Aws::String>
48 void SetArn(ArnT&& value) {
49 m_arnHasBeenSet = true;
50 m_arn = std::forward<ArnT>(value);
51 }
52 template <typename ArnT = Aws::String>
53 Table& WithArn(ArnT&& value) {
54 SetArn(std::forward<ArnT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetTableName() const { return m_tableName; }
64 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
65 template <typename TableNameT = Aws::String>
66 void SetTableName(TableNameT&& value) {
67 m_tableNameHasBeenSet = true;
68 m_tableName = std::forward<TableNameT>(value);
69 }
70 template <typename TableNameT = Aws::String>
71 Table& WithTableName(TableNameT&& value) {
72 SetTableName(std::forward<TableNameT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
82 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
83 template <typename DatabaseNameT = Aws::String>
84 void SetDatabaseName(DatabaseNameT&& value) {
85 m_databaseNameHasBeenSet = true;
86 m_databaseName = std::forward<DatabaseNameT>(value);
87 }
88 template <typename DatabaseNameT = Aws::String>
89 Table& WithDatabaseName(DatabaseNameT&& value) {
90 SetDatabaseName(std::forward<DatabaseNameT>(value));
91 return *this;
92 }
94
96
101 inline TableStatus GetTableStatus() const { return m_tableStatus; }
102 inline bool TableStatusHasBeenSet() const { return m_tableStatusHasBeenSet; }
103 inline void SetTableStatus(TableStatus value) {
104 m_tableStatusHasBeenSet = true;
105 m_tableStatus = value;
106 }
108 SetTableStatus(value);
109 return *this;
110 }
112
114
117 inline const RetentionProperties& GetRetentionProperties() const { return m_retentionProperties; }
118 inline bool RetentionPropertiesHasBeenSet() const { return m_retentionPropertiesHasBeenSet; }
119 template <typename RetentionPropertiesT = RetentionProperties>
120 void SetRetentionProperties(RetentionPropertiesT&& value) {
121 m_retentionPropertiesHasBeenSet = true;
122 m_retentionProperties = std::forward<RetentionPropertiesT>(value);
123 }
124 template <typename RetentionPropertiesT = RetentionProperties>
125 Table& WithRetentionProperties(RetentionPropertiesT&& value) {
126 SetRetentionProperties(std::forward<RetentionPropertiesT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
136 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
137 template <typename CreationTimeT = Aws::Utils::DateTime>
138 void SetCreationTime(CreationTimeT&& value) {
139 m_creationTimeHasBeenSet = true;
140 m_creationTime = std::forward<CreationTimeT>(value);
141 }
142 template <typename CreationTimeT = Aws::Utils::DateTime>
143 Table& WithCreationTime(CreationTimeT&& value) {
144 SetCreationTime(std::forward<CreationTimeT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
154 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
155 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
156 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
157 m_lastUpdatedTimeHasBeenSet = true;
158 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
159 }
160 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
161 Table& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
162 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
163 return *this;
164 }
166
168
172 inline const MagneticStoreWriteProperties& GetMagneticStoreWriteProperties() const { return m_magneticStoreWriteProperties; }
173 inline bool MagneticStoreWritePropertiesHasBeenSet() const { return m_magneticStoreWritePropertiesHasBeenSet; }
174 template <typename MagneticStoreWritePropertiesT = MagneticStoreWriteProperties>
175 void SetMagneticStoreWriteProperties(MagneticStoreWritePropertiesT&& value) {
176 m_magneticStoreWritePropertiesHasBeenSet = true;
177 m_magneticStoreWriteProperties = std::forward<MagneticStoreWritePropertiesT>(value);
178 }
179 template <typename MagneticStoreWritePropertiesT = MagneticStoreWriteProperties>
180 Table& WithMagneticStoreWriteProperties(MagneticStoreWritePropertiesT&& value) {
181 SetMagneticStoreWriteProperties(std::forward<MagneticStoreWritePropertiesT>(value));
182 return *this;
183 }
185
187
190 inline const Schema& GetSchema() const { return m_schema; }
191 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
192 template <typename SchemaT = Schema>
193 void SetSchema(SchemaT&& value) {
194 m_schemaHasBeenSet = true;
195 m_schema = std::forward<SchemaT>(value);
196 }
197 template <typename SchemaT = Schema>
198 Table& WithSchema(SchemaT&& value) {
199 SetSchema(std::forward<SchemaT>(value));
200 return *this;
201 }
203 private:
204 Aws::String m_arn;
205
206 Aws::String m_tableName;
207
208 Aws::String m_databaseName;
209
210 TableStatus m_tableStatus{TableStatus::NOT_SET};
211
212 RetentionProperties m_retentionProperties;
213
214 Aws::Utils::DateTime m_creationTime{};
215
216 Aws::Utils::DateTime m_lastUpdatedTime{};
217
218 MagneticStoreWriteProperties m_magneticStoreWriteProperties;
219
220 Schema m_schema;
221 bool m_arnHasBeenSet = false;
222 bool m_tableNameHasBeenSet = false;
223 bool m_databaseNameHasBeenSet = false;
224 bool m_tableStatusHasBeenSet = false;
225 bool m_retentionPropertiesHasBeenSet = false;
226 bool m_creationTimeHasBeenSet = false;
227 bool m_lastUpdatedTimeHasBeenSet = false;
228 bool m_magneticStoreWritePropertiesHasBeenSet = false;
229 bool m_schemaHasBeenSet = false;
230};
231
232} // namespace Model
233} // namespace TimestreamWrite
234} // namespace Aws
Table & WithSchema(SchemaT &&value)
Definition Table.h:198
Table & WithDatabaseName(DatabaseNameT &&value)
Definition Table.h:89
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
Definition Table.h:156
void SetTableStatus(TableStatus value)
Definition Table.h:103
void SetArn(ArnT &&value)
Definition Table.h:48
AWS_TIMESTREAMWRITE_API Table & operator=(Aws::Utils::Json::JsonView jsonValue)
TableStatus GetTableStatus() const
Definition Table.h:101
bool DatabaseNameHasBeenSet() const
Definition Table.h:82
bool LastUpdatedTimeHasBeenSet() const
Definition Table.h:154
AWS_TIMESTREAMWRITE_API Table()=default
Table & WithLastUpdatedTime(LastUpdatedTimeT &&value)
Definition Table.h:161
bool MagneticStoreWritePropertiesHasBeenSet() const
Definition Table.h:173
Table & WithTableStatus(TableStatus value)
Definition Table.h:107
const Aws::Utils::DateTime & GetCreationTime() const
Definition Table.h:135
const Aws::String & GetTableName() const
Definition Table.h:63
AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const
const RetentionProperties & GetRetentionProperties() const
Definition Table.h:117
Table & WithTableName(TableNameT &&value)
Definition Table.h:71
const Aws::String & GetArn() const
Definition Table.h:45
const Aws::Utils::DateTime & GetLastUpdatedTime() const
Definition Table.h:153
Table & WithRetentionProperties(RetentionPropertiesT &&value)
Definition Table.h:125
Table & WithArn(ArnT &&value)
Definition Table.h:53
void SetDatabaseName(DatabaseNameT &&value)
Definition Table.h:84
void SetSchema(SchemaT &&value)
Definition Table.h:193
Table & WithCreationTime(CreationTimeT &&value)
Definition Table.h:143
const MagneticStoreWriteProperties & GetMagneticStoreWriteProperties() const
Definition Table.h:172
void SetTableName(TableNameT &&value)
Definition Table.h:66
void SetMagneticStoreWriteProperties(MagneticStoreWritePropertiesT &&value)
Definition Table.h:175
void SetRetentionProperties(RetentionPropertiesT &&value)
Definition Table.h:120
bool RetentionPropertiesHasBeenSet() const
Definition Table.h:118
AWS_TIMESTREAMWRITE_API Table(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDatabaseName() const
Definition Table.h:81
const Schema & GetSchema() const
Definition Table.h:190
void SetCreationTime(CreationTimeT &&value)
Definition Table.h:138
Table & WithMagneticStoreWriteProperties(MagneticStoreWritePropertiesT &&value)
Definition Table.h:180
bool CreationTimeHasBeenSet() const
Definition Table.h:136
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue