AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Table.h
1
6#pragma once
7#include <aws/timestream-write/TimestreamWrite_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/timestream-write/model/TableStatus.h>
10#include <aws/timestream-write/model/RetentionProperties.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/timestream-write/model/MagneticStoreWriteProperties.h>
13#include <aws/timestream-write/model/Schema.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace TimestreamWrite
27{
28namespace Model
29{
30
38 class Table
39 {
40 public:
41 AWS_TIMESTREAMWRITE_API Table();
42 AWS_TIMESTREAMWRITE_API Table(Aws::Utils::Json::JsonView jsonValue);
43 AWS_TIMESTREAMWRITE_API Table& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetArn() const{ return m_arn; }
52 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
53 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
54 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
55 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
56 inline Table& WithArn(const Aws::String& value) { SetArn(value); return *this;}
57 inline Table& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
58 inline Table& WithArn(const char* value) { SetArn(value); return *this;}
60
62
65 inline const Aws::String& GetTableName() const{ return m_tableName; }
66 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
67 inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
68 inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
69 inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
70 inline Table& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
71 inline Table& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
72 inline Table& WithTableName(const char* value) { SetTableName(value); return *this;}
74
76
79 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
80 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
81 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
82 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
83 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
84 inline Table& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
85 inline Table& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
86 inline Table& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
88
90
95 inline const TableStatus& GetTableStatus() const{ return m_tableStatus; }
96 inline bool TableStatusHasBeenSet() const { return m_tableStatusHasBeenSet; }
97 inline void SetTableStatus(const TableStatus& value) { m_tableStatusHasBeenSet = true; m_tableStatus = value; }
98 inline void SetTableStatus(TableStatus&& value) { m_tableStatusHasBeenSet = true; m_tableStatus = std::move(value); }
99 inline Table& WithTableStatus(const TableStatus& value) { SetTableStatus(value); return *this;}
100 inline Table& WithTableStatus(TableStatus&& value) { SetTableStatus(std::move(value)); return *this;}
102
104
107 inline const RetentionProperties& GetRetentionProperties() const{ return m_retentionProperties; }
108 inline bool RetentionPropertiesHasBeenSet() const { return m_retentionPropertiesHasBeenSet; }
109 inline void SetRetentionProperties(const RetentionProperties& value) { m_retentionPropertiesHasBeenSet = true; m_retentionProperties = value; }
110 inline void SetRetentionProperties(RetentionProperties&& value) { m_retentionPropertiesHasBeenSet = true; m_retentionProperties = std::move(value); }
111 inline Table& WithRetentionProperties(const RetentionProperties& value) { SetRetentionProperties(value); return *this;}
112 inline Table& WithRetentionProperties(RetentionProperties&& value) { SetRetentionProperties(std::move(value)); return *this;}
114
116
119 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
120 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
121 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
122 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
123 inline Table& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
124 inline Table& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
126
128
131 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
132 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
133 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
134 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
135 inline Table& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;}
136 inline Table& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
138
140
144 inline const MagneticStoreWriteProperties& GetMagneticStoreWriteProperties() const{ return m_magneticStoreWriteProperties; }
145 inline bool MagneticStoreWritePropertiesHasBeenSet() const { return m_magneticStoreWritePropertiesHasBeenSet; }
146 inline void SetMagneticStoreWriteProperties(const MagneticStoreWriteProperties& value) { m_magneticStoreWritePropertiesHasBeenSet = true; m_magneticStoreWriteProperties = value; }
147 inline void SetMagneticStoreWriteProperties(MagneticStoreWriteProperties&& value) { m_magneticStoreWritePropertiesHasBeenSet = true; m_magneticStoreWriteProperties = std::move(value); }
151
153
156 inline const Schema& GetSchema() const{ return m_schema; }
157 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
158 inline void SetSchema(const Schema& value) { m_schemaHasBeenSet = true; m_schema = value; }
159 inline void SetSchema(Schema&& value) { m_schemaHasBeenSet = true; m_schema = std::move(value); }
160 inline Table& WithSchema(const Schema& value) { SetSchema(value); return *this;}
161 inline Table& WithSchema(Schema&& value) { SetSchema(std::move(value)); return *this;}
163 private:
164
165 Aws::String m_arn;
166 bool m_arnHasBeenSet = false;
167
168 Aws::String m_tableName;
169 bool m_tableNameHasBeenSet = false;
170
171 Aws::String m_databaseName;
172 bool m_databaseNameHasBeenSet = false;
173
174 TableStatus m_tableStatus;
175 bool m_tableStatusHasBeenSet = false;
176
177 RetentionProperties m_retentionProperties;
178 bool m_retentionPropertiesHasBeenSet = false;
179
180 Aws::Utils::DateTime m_creationTime;
181 bool m_creationTimeHasBeenSet = false;
182
183 Aws::Utils::DateTime m_lastUpdatedTime;
184 bool m_lastUpdatedTimeHasBeenSet = false;
185
186 MagneticStoreWriteProperties m_magneticStoreWriteProperties;
187 bool m_magneticStoreWritePropertiesHasBeenSet = false;
188
189 Schema m_schema;
190 bool m_schemaHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace TimestreamWrite
195} // namespace Aws
void SetMagneticStoreWriteProperties(const MagneticStoreWriteProperties &value)
Definition Table.h:146
Table & WithMagneticStoreWriteProperties(const MagneticStoreWriteProperties &value)
Definition Table.h:148
Table & WithTableName(const Aws::String &value)
Definition Table.h:70
Table & WithArn(const Aws::String &value)
Definition Table.h:56
AWS_TIMESTREAMWRITE_API Table & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRetentionProperties(RetentionProperties &&value)
Definition Table.h:110
void SetArn(Aws::String &&value)
Definition Table.h:54
bool DatabaseNameHasBeenSet() const
Definition Table.h:80
Table & WithArn(const char *value)
Definition Table.h:58
Table & WithCreationTime(const Aws::Utils::DateTime &value)
Definition Table.h:123
void SetTableName(const char *value)
Definition Table.h:69
Table & WithSchema(Schema &&value)
Definition Table.h:161
void SetArn(const char *value)
Definition Table.h:55
Table & WithArn(Aws::String &&value)
Definition Table.h:57
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition Table.h:122
bool LastUpdatedTimeHasBeenSet() const
Definition Table.h:132
AWS_TIMESTREAMWRITE_API Table()
void SetArn(const Aws::String &value)
Definition Table.h:53
Table & WithTableStatus(const TableStatus &value)
Definition Table.h:99
Table & WithRetentionProperties(RetentionProperties &&value)
Definition Table.h:112
Table & WithTableName(const char *value)
Definition Table.h:72
Table & WithTableStatus(TableStatus &&value)
Definition Table.h:100
bool MagneticStoreWritePropertiesHasBeenSet() const
Definition Table.h:145
const Aws::Utils::DateTime & GetCreationTime() const
Definition Table.h:119
const Aws::String & GetTableName() const
Definition Table.h:65
AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const
Table & WithDatabaseName(Aws::String &&value)
Definition Table.h:85
void SetSchema(Schema &&value)
Definition Table.h:159
const RetentionProperties & GetRetentionProperties() const
Definition Table.h:107
Table & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
Definition Table.h:135
Table & WithTableName(Aws::String &&value)
Definition Table.h:71
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
Definition Table.h:133
const Aws::String & GetArn() const
Definition Table.h:51
const Aws::Utils::DateTime & GetLastUpdatedTime() const
Definition Table.h:131
const TableStatus & GetTableStatus() const
Definition Table.h:95
void SetMagneticStoreWriteProperties(MagneticStoreWriteProperties &&value)
Definition Table.h:147
Table & WithRetentionProperties(const RetentionProperties &value)
Definition Table.h:111
void SetTableName(Aws::String &&value)
Definition Table.h:68
void SetLastUpdatedTime(Aws::Utils::DateTime &&value)
Definition Table.h:134
void SetTableName(const Aws::String &value)
Definition Table.h:67
Table & WithCreationTime(Aws::Utils::DateTime &&value)
Definition Table.h:124
Table & WithDatabaseName(const char *value)
Definition Table.h:86
Table & WithSchema(const Schema &value)
Definition Table.h:160
void SetDatabaseName(Aws::String &&value)
Definition Table.h:82
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition Table.h:121
void SetTableStatus(const TableStatus &value)
Definition Table.h:97
const MagneticStoreWriteProperties & GetMagneticStoreWriteProperties() const
Definition Table.h:144
void SetTableStatus(TableStatus &&value)
Definition Table.h:98
void SetDatabaseName(const char *value)
Definition Table.h:83
void SetDatabaseName(const Aws::String &value)
Definition Table.h:81
bool RetentionPropertiesHasBeenSet() const
Definition Table.h:108
AWS_TIMESTREAMWRITE_API Table(Aws::Utils::Json::JsonView jsonValue)
void SetSchema(const Schema &value)
Definition Table.h:158
const Aws::String & GetDatabaseName() const
Definition Table.h:79
const Schema & GetSchema() const
Definition Table.h:156
bool TableStatusHasBeenSet() const
Definition Table.h:96
Table & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
Definition Table.h:136
Table & WithDatabaseName(const Aws::String &value)
Definition Table.h:84
void SetRetentionProperties(const RetentionProperties &value)
Definition Table.h:109
Table & WithMagneticStoreWriteProperties(MagneticStoreWriteProperties &&value)
Definition Table.h:149
bool CreationTimeHasBeenSet() const
Definition Table.h:120
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue