AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Schema.h
1
6#pragma once
7#include <aws/cleanrooms/CleanRooms_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/cleanrooms/model/AnalysisMethod.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/cleanrooms/model/SchemaType.h>
13#include <aws/cleanrooms/model/SchemaTypeProperties.h>
14#include <aws/cleanrooms/model/Column.h>
15#include <aws/cleanrooms/model/AnalysisRuleType.h>
16#include <aws/cleanrooms/model/SchemaStatusDetail.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace CleanRooms
30{
31namespace Model
32{
33
39 class Schema
40 {
41 public:
42 AWS_CLEANROOMS_API Schema();
43 AWS_CLEANROOMS_API Schema(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CLEANROOMS_API Schema& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_CLEANROOMS_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::Vector<Column>& GetColumns() const{ return m_columns; }
53 inline bool ColumnsHasBeenSet() const { return m_columnsHasBeenSet; }
54 inline void SetColumns(const Aws::Vector<Column>& value) { m_columnsHasBeenSet = true; m_columns = value; }
55 inline void SetColumns(Aws::Vector<Column>&& value) { m_columnsHasBeenSet = true; m_columns = std::move(value); }
56 inline Schema& WithColumns(const Aws::Vector<Column>& value) { SetColumns(value); return *this;}
57 inline Schema& WithColumns(Aws::Vector<Column>&& value) { SetColumns(std::move(value)); return *this;}
58 inline Schema& AddColumns(const Column& value) { m_columnsHasBeenSet = true; m_columns.push_back(value); return *this; }
59 inline Schema& AddColumns(Column&& value) { m_columnsHasBeenSet = true; m_columns.push_back(std::move(value)); return *this; }
61
63
66 inline const Aws::Vector<Column>& GetPartitionKeys() const{ return m_partitionKeys; }
67 inline bool PartitionKeysHasBeenSet() const { return m_partitionKeysHasBeenSet; }
68 inline void SetPartitionKeys(const Aws::Vector<Column>& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys = value; }
69 inline void SetPartitionKeys(Aws::Vector<Column>&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys = std::move(value); }
70 inline Schema& WithPartitionKeys(const Aws::Vector<Column>& value) { SetPartitionKeys(value); return *this;}
71 inline Schema& WithPartitionKeys(Aws::Vector<Column>&& value) { SetPartitionKeys(std::move(value)); return *this;}
72 inline Schema& AddPartitionKeys(const Column& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys.push_back(value); return *this; }
73 inline Schema& AddPartitionKeys(Column&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys.push_back(std::move(value)); return *this; }
75
77
81 inline const Aws::Vector<AnalysisRuleType>& GetAnalysisRuleTypes() const{ return m_analysisRuleTypes; }
82 inline bool AnalysisRuleTypesHasBeenSet() const { return m_analysisRuleTypesHasBeenSet; }
83 inline void SetAnalysisRuleTypes(const Aws::Vector<AnalysisRuleType>& value) { m_analysisRuleTypesHasBeenSet = true; m_analysisRuleTypes = value; }
84 inline void SetAnalysisRuleTypes(Aws::Vector<AnalysisRuleType>&& value) { m_analysisRuleTypesHasBeenSet = true; m_analysisRuleTypes = std::move(value); }
86 inline Schema& WithAnalysisRuleTypes(Aws::Vector<AnalysisRuleType>&& value) { SetAnalysisRuleTypes(std::move(value)); return *this;}
87 inline Schema& AddAnalysisRuleTypes(const AnalysisRuleType& value) { m_analysisRuleTypesHasBeenSet = true; m_analysisRuleTypes.push_back(value); return *this; }
88 inline Schema& AddAnalysisRuleTypes(AnalysisRuleType&& value) { m_analysisRuleTypesHasBeenSet = true; m_analysisRuleTypes.push_back(std::move(value)); return *this; }
90
92
96 inline const AnalysisMethod& GetAnalysisMethod() const{ return m_analysisMethod; }
97 inline bool AnalysisMethodHasBeenSet() const { return m_analysisMethodHasBeenSet; }
98 inline void SetAnalysisMethod(const AnalysisMethod& value) { m_analysisMethodHasBeenSet = true; m_analysisMethod = value; }
99 inline void SetAnalysisMethod(AnalysisMethod&& value) { m_analysisMethodHasBeenSet = true; m_analysisMethod = std::move(value); }
100 inline Schema& WithAnalysisMethod(const AnalysisMethod& value) { SetAnalysisMethod(value); return *this;}
101 inline Schema& WithAnalysisMethod(AnalysisMethod&& value) { SetAnalysisMethod(std::move(value)); return *this;}
103
105
109 inline const Aws::String& GetCreatorAccountId() const{ return m_creatorAccountId; }
110 inline bool CreatorAccountIdHasBeenSet() const { return m_creatorAccountIdHasBeenSet; }
111 inline void SetCreatorAccountId(const Aws::String& value) { m_creatorAccountIdHasBeenSet = true; m_creatorAccountId = value; }
112 inline void SetCreatorAccountId(Aws::String&& value) { m_creatorAccountIdHasBeenSet = true; m_creatorAccountId = std::move(value); }
113 inline void SetCreatorAccountId(const char* value) { m_creatorAccountIdHasBeenSet = true; m_creatorAccountId.assign(value); }
114 inline Schema& WithCreatorAccountId(const Aws::String& value) { SetCreatorAccountId(value); return *this;}
115 inline Schema& WithCreatorAccountId(Aws::String&& value) { SetCreatorAccountId(std::move(value)); return *this;}
116 inline Schema& WithCreatorAccountId(const char* value) { SetCreatorAccountId(value); return *this;}
118
120
124 inline const Aws::String& GetName() const{ return m_name; }
125 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
126 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
127 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
128 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
129 inline Schema& WithName(const Aws::String& value) { SetName(value); return *this;}
130 inline Schema& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
131 inline Schema& WithName(const char* value) { SetName(value); return *this;}
133
135
138 inline const Aws::String& GetCollaborationId() const{ return m_collaborationId; }
139 inline bool CollaborationIdHasBeenSet() const { return m_collaborationIdHasBeenSet; }
140 inline void SetCollaborationId(const Aws::String& value) { m_collaborationIdHasBeenSet = true; m_collaborationId = value; }
141 inline void SetCollaborationId(Aws::String&& value) { m_collaborationIdHasBeenSet = true; m_collaborationId = std::move(value); }
142 inline void SetCollaborationId(const char* value) { m_collaborationIdHasBeenSet = true; m_collaborationId.assign(value); }
143 inline Schema& WithCollaborationId(const Aws::String& value) { SetCollaborationId(value); return *this;}
144 inline Schema& WithCollaborationId(Aws::String&& value) { SetCollaborationId(std::move(value)); return *this;}
145 inline Schema& WithCollaborationId(const char* value) { SetCollaborationId(value); return *this;}
147
149
153 inline const Aws::String& GetCollaborationArn() const{ return m_collaborationArn; }
154 inline bool CollaborationArnHasBeenSet() const { return m_collaborationArnHasBeenSet; }
155 inline void SetCollaborationArn(const Aws::String& value) { m_collaborationArnHasBeenSet = true; m_collaborationArn = value; }
156 inline void SetCollaborationArn(Aws::String&& value) { m_collaborationArnHasBeenSet = true; m_collaborationArn = std::move(value); }
157 inline void SetCollaborationArn(const char* value) { m_collaborationArnHasBeenSet = true; m_collaborationArn.assign(value); }
158 inline Schema& WithCollaborationArn(const Aws::String& value) { SetCollaborationArn(value); return *this;}
159 inline Schema& WithCollaborationArn(Aws::String&& value) { SetCollaborationArn(std::move(value)); return *this;}
160 inline Schema& WithCollaborationArn(const char* value) { SetCollaborationArn(value); return *this;}
162
164
167 inline const Aws::String& GetDescription() const{ return m_description; }
168 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
169 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
170 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
171 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
172 inline Schema& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
173 inline Schema& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
174 inline Schema& WithDescription(const char* value) { SetDescription(value); return *this;}
176
178
181 inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
182 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
183 inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
184 inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
185 inline Schema& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
186 inline Schema& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
188
190
193 inline const Aws::Utils::DateTime& GetUpdateTime() const{ return m_updateTime; }
194 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
195 inline void SetUpdateTime(const Aws::Utils::DateTime& value) { m_updateTimeHasBeenSet = true; m_updateTime = value; }
196 inline void SetUpdateTime(Aws::Utils::DateTime&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::move(value); }
197 inline Schema& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;}
198 inline Schema& WithUpdateTime(Aws::Utils::DateTime&& value) { SetUpdateTime(std::move(value)); return *this;}
200
202
205 inline const SchemaType& GetType() const{ return m_type; }
206 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
207 inline void SetType(const SchemaType& value) { m_typeHasBeenSet = true; m_type = value; }
208 inline void SetType(SchemaType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
209 inline Schema& WithType(const SchemaType& value) { SetType(value); return *this;}
210 inline Schema& WithType(SchemaType&& value) { SetType(std::move(value)); return *this;}
212
214
218 inline const Aws::Vector<SchemaStatusDetail>& GetSchemaStatusDetails() const{ return m_schemaStatusDetails; }
219 inline bool SchemaStatusDetailsHasBeenSet() const { return m_schemaStatusDetailsHasBeenSet; }
220 inline void SetSchemaStatusDetails(const Aws::Vector<SchemaStatusDetail>& value) { m_schemaStatusDetailsHasBeenSet = true; m_schemaStatusDetails = value; }
221 inline void SetSchemaStatusDetails(Aws::Vector<SchemaStatusDetail>&& value) { m_schemaStatusDetailsHasBeenSet = true; m_schemaStatusDetails = std::move(value); }
224 inline Schema& AddSchemaStatusDetails(const SchemaStatusDetail& value) { m_schemaStatusDetailsHasBeenSet = true; m_schemaStatusDetails.push_back(value); return *this; }
225 inline Schema& AddSchemaStatusDetails(SchemaStatusDetail&& value) { m_schemaStatusDetailsHasBeenSet = true; m_schemaStatusDetails.push_back(std::move(value)); return *this; }
227
229
232 inline const SchemaTypeProperties& GetSchemaTypeProperties() const{ return m_schemaTypeProperties; }
233 inline bool SchemaTypePropertiesHasBeenSet() const { return m_schemaTypePropertiesHasBeenSet; }
234 inline void SetSchemaTypeProperties(const SchemaTypeProperties& value) { m_schemaTypePropertiesHasBeenSet = true; m_schemaTypeProperties = value; }
235 inline void SetSchemaTypeProperties(SchemaTypeProperties&& value) { m_schemaTypePropertiesHasBeenSet = true; m_schemaTypeProperties = std::move(value); }
237 inline Schema& WithSchemaTypeProperties(SchemaTypeProperties&& value) { SetSchemaTypeProperties(std::move(value)); return *this;}
239 private:
240
241 Aws::Vector<Column> m_columns;
242 bool m_columnsHasBeenSet = false;
243
244 Aws::Vector<Column> m_partitionKeys;
245 bool m_partitionKeysHasBeenSet = false;
246
247 Aws::Vector<AnalysisRuleType> m_analysisRuleTypes;
248 bool m_analysisRuleTypesHasBeenSet = false;
249
250 AnalysisMethod m_analysisMethod;
251 bool m_analysisMethodHasBeenSet = false;
252
253 Aws::String m_creatorAccountId;
254 bool m_creatorAccountIdHasBeenSet = false;
255
256 Aws::String m_name;
257 bool m_nameHasBeenSet = false;
258
259 Aws::String m_collaborationId;
260 bool m_collaborationIdHasBeenSet = false;
261
262 Aws::String m_collaborationArn;
263 bool m_collaborationArnHasBeenSet = false;
264
265 Aws::String m_description;
266 bool m_descriptionHasBeenSet = false;
267
268 Aws::Utils::DateTime m_createTime;
269 bool m_createTimeHasBeenSet = false;
270
271 Aws::Utils::DateTime m_updateTime;
272 bool m_updateTimeHasBeenSet = false;
273
274 SchemaType m_type;
275 bool m_typeHasBeenSet = false;
276
277 Aws::Vector<SchemaStatusDetail> m_schemaStatusDetails;
278 bool m_schemaStatusDetailsHasBeenSet = false;
279
280 SchemaTypeProperties m_schemaTypeProperties;
281 bool m_schemaTypePropertiesHasBeenSet = false;
282 };
283
284} // namespace Model
285} // namespace CleanRooms
286} // namespace Aws
bool CreateTimeHasBeenSet() const
Definition Schema.h:182
void SetCollaborationArn(const char *value)
Definition Schema.h:157
void SetName(const char *value)
Definition Schema.h:128
Schema & WithUpdateTime(const Aws::Utils::DateTime &value)
Definition Schema.h:197
Schema & WithDescription(Aws::String &&value)
Definition Schema.h:173
void SetCreatorAccountId(Aws::String &&value)
Definition Schema.h:112
AWS_CLEANROOMS_API Schema()
const Aws::String & GetName() const
Definition Schema.h:124
Schema & WithColumns(Aws::Vector< Column > &&value)
Definition Schema.h:57
const Aws::Vector< Column > & GetPartitionKeys() const
Definition Schema.h:66
Schema & WithType(const SchemaType &value)
Definition Schema.h:209
void SetDescription(const char *value)
Definition Schema.h:171
Schema & WithColumns(const Aws::Vector< Column > &value)
Definition Schema.h:56
void SetSchemaTypeProperties(SchemaTypeProperties &&value)
Definition Schema.h:235
Schema & WithCreatorAccountId(Aws::String &&value)
Definition Schema.h:115
Schema & WithAnalysisMethod(const AnalysisMethod &value)
Definition Schema.h:100
Schema & WithCollaborationArn(const Aws::String &value)
Definition Schema.h:158
bool CollaborationArnHasBeenSet() const
Definition Schema.h:154
Schema & WithSchemaStatusDetails(Aws::Vector< SchemaStatusDetail > &&value)
Definition Schema.h:223
Schema & WithName(const char *value)
Definition Schema.h:131
void SetName(const Aws::String &value)
Definition Schema.h:126
AWS_CLEANROOMS_API Aws::Utils::Json::JsonValue Jsonize() const
Schema & WithCollaborationArn(Aws::String &&value)
Definition Schema.h:159
const Aws::String & GetDescription() const
Definition Schema.h:167
bool AnalysisRuleTypesHasBeenSet() const
Definition Schema.h:82
AWS_CLEANROOMS_API Schema(Aws::Utils::Json::JsonView jsonValue)
void SetSchemaStatusDetails(const Aws::Vector< SchemaStatusDetail > &value)
Definition Schema.h:220
void SetCreateTime(Aws::Utils::DateTime &&value)
Definition Schema.h:184
void SetDescription(Aws::String &&value)
Definition Schema.h:170
void SetName(Aws::String &&value)
Definition Schema.h:127
const Aws::Vector< SchemaStatusDetail > & GetSchemaStatusDetails() const
Definition Schema.h:218
Schema & AddPartitionKeys(Column &&value)
Definition Schema.h:73
void SetAnalysisMethod(AnalysisMethod &&value)
Definition Schema.h:99
const SchemaTypeProperties & GetSchemaTypeProperties() const
Definition Schema.h:232
Schema & WithDescription(const char *value)
Definition Schema.h:174
Schema & WithCollaborationId(Aws::String &&value)
Definition Schema.h:144
void SetCollaborationArn(const Aws::String &value)
Definition Schema.h:155
Schema & WithSchemaTypeProperties(const SchemaTypeProperties &value)
Definition Schema.h:236
bool CreatorAccountIdHasBeenSet() const
Definition Schema.h:110
bool AnalysisMethodHasBeenSet() const
Definition Schema.h:97
Schema & WithAnalysisRuleTypes(const Aws::Vector< AnalysisRuleType > &value)
Definition Schema.h:85
void SetType(const SchemaType &value)
Definition Schema.h:207
void SetUpdateTime(Aws::Utils::DateTime &&value)
Definition Schema.h:196
void SetDescription(const Aws::String &value)
Definition Schema.h:169
bool PartitionKeysHasBeenSet() const
Definition Schema.h:67
Schema & WithName(const Aws::String &value)
Definition Schema.h:129
const Aws::Vector< AnalysisRuleType > & GetAnalysisRuleTypes() const
Definition Schema.h:81
void SetType(SchemaType &&value)
Definition Schema.h:208
Schema & WithCollaborationId(const Aws::String &value)
Definition Schema.h:143
const Aws::String & GetCollaborationArn() const
Definition Schema.h:153
void SetAnalysisRuleTypes(Aws::Vector< AnalysisRuleType > &&value)
Definition Schema.h:84
void SetSchemaStatusDetails(Aws::Vector< SchemaStatusDetail > &&value)
Definition Schema.h:221
bool CollaborationIdHasBeenSet() const
Definition Schema.h:139
void SetAnalysisRuleTypes(const Aws::Vector< AnalysisRuleType > &value)
Definition Schema.h:83
Schema & AddSchemaStatusDetails(const SchemaStatusDetail &value)
Definition Schema.h:224
void SetAnalysisMethod(const AnalysisMethod &value)
Definition Schema.h:98
AWS_CLEANROOMS_API Schema & operator=(Aws::Utils::Json::JsonView jsonValue)
Schema & WithCollaborationId(const char *value)
Definition Schema.h:145
void SetCreatorAccountId(const char *value)
Definition Schema.h:113
void SetCreateTime(const Aws::Utils::DateTime &value)
Definition Schema.h:183
Schema & AddAnalysisRuleTypes(const AnalysisRuleType &value)
Definition Schema.h:87
bool UpdateTimeHasBeenSet() const
Definition Schema.h:194
Schema & WithAnalysisMethod(AnalysisMethod &&value)
Definition Schema.h:101
void SetPartitionKeys(const Aws::Vector< Column > &value)
Definition Schema.h:68
Schema & AddPartitionKeys(const Column &value)
Definition Schema.h:72
const Aws::Vector< Column > & GetColumns() const
Definition Schema.h:52
const AnalysisMethod & GetAnalysisMethod() const
Definition Schema.h:96
Schema & AddColumns(const Column &value)
Definition Schema.h:58
Schema & WithSchemaTypeProperties(SchemaTypeProperties &&value)
Definition Schema.h:237
bool SchemaStatusDetailsHasBeenSet() const
Definition Schema.h:219
void SetCollaborationArn(Aws::String &&value)
Definition Schema.h:156
const Aws::Utils::DateTime & GetUpdateTime() const
Definition Schema.h:193
Schema & WithDescription(const Aws::String &value)
Definition Schema.h:172
Schema & WithPartitionKeys(Aws::Vector< Column > &&value)
Definition Schema.h:71
void SetUpdateTime(const Aws::Utils::DateTime &value)
Definition Schema.h:195
Schema & AddSchemaStatusDetails(SchemaStatusDetail &&value)
Definition Schema.h:225
Schema & WithPartitionKeys(const Aws::Vector< Column > &value)
Definition Schema.h:70
void SetSchemaTypeProperties(const SchemaTypeProperties &value)
Definition Schema.h:234
const Aws::String & GetCreatorAccountId() const
Definition Schema.h:109
const Aws::Utils::DateTime & GetCreateTime() const
Definition Schema.h:181
void SetCollaborationId(const Aws::String &value)
Definition Schema.h:140
void SetCreatorAccountId(const Aws::String &value)
Definition Schema.h:111
Schema & WithSchemaStatusDetails(const Aws::Vector< SchemaStatusDetail > &value)
Definition Schema.h:222
Schema & WithAnalysisRuleTypes(Aws::Vector< AnalysisRuleType > &&value)
Definition Schema.h:86
Schema & WithCreateTime(Aws::Utils::DateTime &&value)
Definition Schema.h:186
Schema & WithCollaborationArn(const char *value)
Definition Schema.h:160
Schema & AddColumns(Column &&value)
Definition Schema.h:59
bool ColumnsHasBeenSet() const
Definition Schema.h:53
Schema & WithCreateTime(const Aws::Utils::DateTime &value)
Definition Schema.h:185
Schema & WithUpdateTime(Aws::Utils::DateTime &&value)
Definition Schema.h:198
Schema & WithName(Aws::String &&value)
Definition Schema.h:130
Schema & WithCreatorAccountId(const Aws::String &value)
Definition Schema.h:114
Schema & WithType(SchemaType &&value)
Definition Schema.h:210
Schema & AddAnalysisRuleTypes(AnalysisRuleType &&value)
Definition Schema.h:88
Schema & WithCreatorAccountId(const char *value)
Definition Schema.h:116
const Aws::String & GetCollaborationId() const
Definition Schema.h:138
bool SchemaTypePropertiesHasBeenSet() const
Definition Schema.h:233
void SetColumns(const Aws::Vector< Column > &value)
Definition Schema.h:54
const SchemaType & GetType() const
Definition Schema.h:205
void SetPartitionKeys(Aws::Vector< Column > &&value)
Definition Schema.h:69
void SetCollaborationId(Aws::String &&value)
Definition Schema.h:141
void SetColumns(Aws::Vector< Column > &&value)
Definition Schema.h:55
bool DescriptionHasBeenSet() const
Definition Schema.h:168
void SetCollaborationId(const char *value)
Definition Schema.h:142
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue