AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ArnT = Aws::String>
54 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
55 template<typename ArnT = Aws::String>
56 Table& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_tableNameHasBeenSet = true; m_tableName = std::forward<TableNameT>(value); }
67 template<typename TableNameT = Aws::String>
68 Table& WithTableName(TableNameT&& value) { SetTableName(std::forward<TableNameT>(value)); return *this;}
70
72
75 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
76 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
77 template<typename DatabaseNameT = Aws::String>
78 void SetDatabaseName(DatabaseNameT&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::forward<DatabaseNameT>(value); }
79 template<typename DatabaseNameT = Aws::String>
80 Table& WithDatabaseName(DatabaseNameT&& value) { SetDatabaseName(std::forward<DatabaseNameT>(value)); return *this;}
82
84
89 inline TableStatus GetTableStatus() const { return m_tableStatus; }
90 inline bool TableStatusHasBeenSet() const { return m_tableStatusHasBeenSet; }
91 inline void SetTableStatus(TableStatus value) { m_tableStatusHasBeenSet = true; m_tableStatus = value; }
92 inline Table& WithTableStatus(TableStatus value) { SetTableStatus(value); return *this;}
94
96
99 inline const RetentionProperties& GetRetentionProperties() const { return m_retentionProperties; }
100 inline bool RetentionPropertiesHasBeenSet() const { return m_retentionPropertiesHasBeenSet; }
101 template<typename RetentionPropertiesT = RetentionProperties>
102 void SetRetentionProperties(RetentionPropertiesT&& value) { m_retentionPropertiesHasBeenSet = true; m_retentionProperties = std::forward<RetentionPropertiesT>(value); }
103 template<typename RetentionPropertiesT = RetentionProperties>
104 Table& WithRetentionProperties(RetentionPropertiesT&& value) { SetRetentionProperties(std::forward<RetentionPropertiesT>(value)); return *this;}
106
108
111 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
112 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
113 template<typename CreationTimeT = Aws::Utils::DateTime>
114 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
115 template<typename CreationTimeT = Aws::Utils::DateTime>
116 Table& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
118
120
123 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
124 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
125 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
126 void SetLastUpdatedTime(LastUpdatedTimeT&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value); }
127 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
128 Table& WithLastUpdatedTime(LastUpdatedTimeT&& value) { SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value)); return *this;}
130
132
136 inline const MagneticStoreWriteProperties& GetMagneticStoreWriteProperties() const { return m_magneticStoreWriteProperties; }
137 inline bool MagneticStoreWritePropertiesHasBeenSet() const { return m_magneticStoreWritePropertiesHasBeenSet; }
138 template<typename MagneticStoreWritePropertiesT = MagneticStoreWriteProperties>
139 void SetMagneticStoreWriteProperties(MagneticStoreWritePropertiesT&& value) { m_magneticStoreWritePropertiesHasBeenSet = true; m_magneticStoreWriteProperties = std::forward<MagneticStoreWritePropertiesT>(value); }
140 template<typename MagneticStoreWritePropertiesT = MagneticStoreWriteProperties>
141 Table& WithMagneticStoreWriteProperties(MagneticStoreWritePropertiesT&& value) { SetMagneticStoreWriteProperties(std::forward<MagneticStoreWritePropertiesT>(value)); return *this;}
143
145
148 inline const Schema& GetSchema() const { return m_schema; }
149 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
150 template<typename SchemaT = Schema>
151 void SetSchema(SchemaT&& value) { m_schemaHasBeenSet = true; m_schema = std::forward<SchemaT>(value); }
152 template<typename SchemaT = Schema>
153 Table& WithSchema(SchemaT&& value) { SetSchema(std::forward<SchemaT>(value)); return *this;}
155 private:
156
157 Aws::String m_arn;
158 bool m_arnHasBeenSet = false;
159
160 Aws::String m_tableName;
161 bool m_tableNameHasBeenSet = false;
162
163 Aws::String m_databaseName;
164 bool m_databaseNameHasBeenSet = false;
165
166 TableStatus m_tableStatus{TableStatus::NOT_SET};
167 bool m_tableStatusHasBeenSet = false;
168
169 RetentionProperties m_retentionProperties;
170 bool m_retentionPropertiesHasBeenSet = false;
171
172 Aws::Utils::DateTime m_creationTime{};
173 bool m_creationTimeHasBeenSet = false;
174
175 Aws::Utils::DateTime m_lastUpdatedTime{};
176 bool m_lastUpdatedTimeHasBeenSet = false;
177
178 MagneticStoreWriteProperties m_magneticStoreWriteProperties;
179 bool m_magneticStoreWritePropertiesHasBeenSet = false;
180
181 Schema m_schema;
182 bool m_schemaHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace TimestreamWrite
187} // namespace Aws
Table & WithSchema(SchemaT &&value)
Definition Table.h:153
Table & WithDatabaseName(DatabaseNameT &&value)
Definition Table.h:80
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
Definition Table.h:126
void SetTableStatus(TableStatus value)
Definition Table.h:91
void SetArn(ArnT &&value)
Definition Table.h:54
AWS_TIMESTREAMWRITE_API Table & operator=(Aws::Utils::Json::JsonView jsonValue)
TableStatus GetTableStatus() const
Definition Table.h:89
bool DatabaseNameHasBeenSet() const
Definition Table.h:76
bool LastUpdatedTimeHasBeenSet() const
Definition Table.h:124
AWS_TIMESTREAMWRITE_API Table()=default
Table & WithLastUpdatedTime(LastUpdatedTimeT &&value)
Definition Table.h:128
bool MagneticStoreWritePropertiesHasBeenSet() const
Definition Table.h:137
Table & WithTableStatus(TableStatus value)
Definition Table.h:92
const Aws::Utils::DateTime & GetCreationTime() const
Definition Table.h:111
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:99
Table & WithTableName(TableNameT &&value)
Definition Table.h:68
const Aws::String & GetArn() const
Definition Table.h:51
const Aws::Utils::DateTime & GetLastUpdatedTime() const
Definition Table.h:123
Table & WithRetentionProperties(RetentionPropertiesT &&value)
Definition Table.h:104
Table & WithArn(ArnT &&value)
Definition Table.h:56
void SetDatabaseName(DatabaseNameT &&value)
Definition Table.h:78
void SetSchema(SchemaT &&value)
Definition Table.h:151
Table & WithCreationTime(CreationTimeT &&value)
Definition Table.h:116
const MagneticStoreWriteProperties & GetMagneticStoreWriteProperties() const
Definition Table.h:136
void SetTableName(TableNameT &&value)
Definition Table.h:66
void SetMagneticStoreWriteProperties(MagneticStoreWritePropertiesT &&value)
Definition Table.h:139
void SetRetentionProperties(RetentionPropertiesT &&value)
Definition Table.h:102
bool RetentionPropertiesHasBeenSet() const
Definition Table.h:100
AWS_TIMESTREAMWRITE_API Table(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDatabaseName() const
Definition Table.h:75
const Schema & GetSchema() const
Definition Table.h:148
bool TableStatusHasBeenSet() const
Definition Table.h:90
void SetCreationTime(CreationTimeT &&value)
Definition Table.h:114
Table & WithMagneticStoreWriteProperties(MagneticStoreWritePropertiesT &&value)
Definition Table.h:141
bool CreationTimeHasBeenSet() const
Definition Table.h:112
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue