AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
RDSDataSpec.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/machinelearning/MachineLearning_EXPORTS.h>
10#include <aws/machinelearning/model/RDSDatabase.h>
11#include <aws/machinelearning/model/RDSDatabaseCredentials.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MachineLearning {
23namespace Model {
24
32 public:
33 AWS_MACHINELEARNING_API RDSDataSpec() = default;
34 AWS_MACHINELEARNING_API RDSDataSpec(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MACHINELEARNING_API RDSDataSpec& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MACHINELEARNING_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const RDSDatabase& GetDatabaseInformation() const { return m_databaseInformation; }
44 inline bool DatabaseInformationHasBeenSet() const { return m_databaseInformationHasBeenSet; }
45 template <typename DatabaseInformationT = RDSDatabase>
46 void SetDatabaseInformation(DatabaseInformationT&& value) {
47 m_databaseInformationHasBeenSet = true;
48 m_databaseInformation = std::forward<DatabaseInformationT>(value);
49 }
50 template <typename DatabaseInformationT = RDSDatabase>
51 RDSDataSpec& WithDatabaseInformation(DatabaseInformationT&& value) {
52 SetDatabaseInformation(std::forward<DatabaseInformationT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetSelectSqlQuery() const { return m_selectSqlQuery; }
63 inline bool SelectSqlQueryHasBeenSet() const { return m_selectSqlQueryHasBeenSet; }
64 template <typename SelectSqlQueryT = Aws::String>
65 void SetSelectSqlQuery(SelectSqlQueryT&& value) {
66 m_selectSqlQueryHasBeenSet = true;
67 m_selectSqlQuery = std::forward<SelectSqlQueryT>(value);
68 }
69 template <typename SelectSqlQueryT = Aws::String>
70 RDSDataSpec& WithSelectSqlQuery(SelectSqlQueryT&& value) {
71 SetSelectSqlQuery(std::forward<SelectSqlQueryT>(value));
72 return *this;
73 }
75
77
81 inline const RDSDatabaseCredentials& GetDatabaseCredentials() const { return m_databaseCredentials; }
82 inline bool DatabaseCredentialsHasBeenSet() const { return m_databaseCredentialsHasBeenSet; }
83 template <typename DatabaseCredentialsT = RDSDatabaseCredentials>
84 void SetDatabaseCredentials(DatabaseCredentialsT&& value) {
85 m_databaseCredentialsHasBeenSet = true;
86 m_databaseCredentials = std::forward<DatabaseCredentialsT>(value);
87 }
88 template <typename DatabaseCredentialsT = RDSDatabaseCredentials>
89 RDSDataSpec& WithDatabaseCredentials(DatabaseCredentialsT&& value) {
90 SetDatabaseCredentials(std::forward<DatabaseCredentialsT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetS3StagingLocation() const { return m_s3StagingLocation; }
101 inline bool S3StagingLocationHasBeenSet() const { return m_s3StagingLocationHasBeenSet; }
102 template <typename S3StagingLocationT = Aws::String>
103 void SetS3StagingLocation(S3StagingLocationT&& value) {
104 m_s3StagingLocationHasBeenSet = true;
105 m_s3StagingLocation = std::forward<S3StagingLocationT>(value);
106 }
107 template <typename S3StagingLocationT = Aws::String>
108 RDSDataSpec& WithS3StagingLocation(S3StagingLocationT&& value) {
109 SetS3StagingLocation(std::forward<S3StagingLocationT>(value));
110 return *this;
111 }
113
115
176 inline const Aws::String& GetDataRearrangement() const { return m_dataRearrangement; }
177 inline bool DataRearrangementHasBeenSet() const { return m_dataRearrangementHasBeenSet; }
178 template <typename DataRearrangementT = Aws::String>
179 void SetDataRearrangement(DataRearrangementT&& value) {
180 m_dataRearrangementHasBeenSet = true;
181 m_dataRearrangement = std::forward<DataRearrangementT>(value);
182 }
183 template <typename DataRearrangementT = Aws::String>
184 RDSDataSpec& WithDataRearrangement(DataRearrangementT&& value) {
185 SetDataRearrangement(std::forward<DataRearrangementT>(value));
186 return *this;
187 }
189
191
211 inline const Aws::String& GetDataSchema() const { return m_dataSchema; }
212 inline bool DataSchemaHasBeenSet() const { return m_dataSchemaHasBeenSet; }
213 template <typename DataSchemaT = Aws::String>
214 void SetDataSchema(DataSchemaT&& value) {
215 m_dataSchemaHasBeenSet = true;
216 m_dataSchema = std::forward<DataSchemaT>(value);
217 }
218 template <typename DataSchemaT = Aws::String>
219 RDSDataSpec& WithDataSchema(DataSchemaT&& value) {
220 SetDataSchema(std::forward<DataSchemaT>(value));
221 return *this;
222 }
224
226
229 inline const Aws::String& GetDataSchemaUri() const { return m_dataSchemaUri; }
230 inline bool DataSchemaUriHasBeenSet() const { return m_dataSchemaUriHasBeenSet; }
231 template <typename DataSchemaUriT = Aws::String>
232 void SetDataSchemaUri(DataSchemaUriT&& value) {
233 m_dataSchemaUriHasBeenSet = true;
234 m_dataSchemaUri = std::forward<DataSchemaUriT>(value);
235 }
236 template <typename DataSchemaUriT = Aws::String>
237 RDSDataSpec& WithDataSchemaUri(DataSchemaUriT&& value) {
238 SetDataSchemaUri(std::forward<DataSchemaUriT>(value));
239 return *this;
240 }
242
244
251 inline const Aws::String& GetResourceRole() const { return m_resourceRole; }
252 inline bool ResourceRoleHasBeenSet() const { return m_resourceRoleHasBeenSet; }
253 template <typename ResourceRoleT = Aws::String>
254 void SetResourceRole(ResourceRoleT&& value) {
255 m_resourceRoleHasBeenSet = true;
256 m_resourceRole = std::forward<ResourceRoleT>(value);
257 }
258 template <typename ResourceRoleT = Aws::String>
259 RDSDataSpec& WithResourceRole(ResourceRoleT&& value) {
260 SetResourceRole(std::forward<ResourceRoleT>(value));
261 return *this;
262 }
264
266
273 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
274 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
275 template <typename ServiceRoleT = Aws::String>
276 void SetServiceRole(ServiceRoleT&& value) {
277 m_serviceRoleHasBeenSet = true;
278 m_serviceRole = std::forward<ServiceRoleT>(value);
279 }
280 template <typename ServiceRoleT = Aws::String>
281 RDSDataSpec& WithServiceRole(ServiceRoleT&& value) {
282 SetServiceRole(std::forward<ServiceRoleT>(value));
283 return *this;
284 }
286
288
293 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
294 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
295 template <typename SubnetIdT = Aws::String>
296 void SetSubnetId(SubnetIdT&& value) {
297 m_subnetIdHasBeenSet = true;
298 m_subnetId = std::forward<SubnetIdT>(value);
299 }
300 template <typename SubnetIdT = Aws::String>
301 RDSDataSpec& WithSubnetId(SubnetIdT&& value) {
302 SetSubnetId(std::forward<SubnetIdT>(value));
303 return *this;
304 }
306
308
314 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
315 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
316 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
317 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
318 m_securityGroupIdsHasBeenSet = true;
319 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
320 }
321 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
322 RDSDataSpec& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
323 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
324 return *this;
325 }
326 template <typename SecurityGroupIdsT = Aws::String>
327 RDSDataSpec& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
328 m_securityGroupIdsHasBeenSet = true;
329 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
330 return *this;
331 }
333 private:
334 RDSDatabase m_databaseInformation;
335
336 Aws::String m_selectSqlQuery;
337
338 RDSDatabaseCredentials m_databaseCredentials;
339
340 Aws::String m_s3StagingLocation;
341
342 Aws::String m_dataRearrangement;
343
344 Aws::String m_dataSchema;
345
346 Aws::String m_dataSchemaUri;
347
348 Aws::String m_resourceRole;
349
350 Aws::String m_serviceRole;
351
352 Aws::String m_subnetId;
353
354 Aws::Vector<Aws::String> m_securityGroupIds;
355 bool m_databaseInformationHasBeenSet = false;
356 bool m_selectSqlQueryHasBeenSet = false;
357 bool m_databaseCredentialsHasBeenSet = false;
358 bool m_s3StagingLocationHasBeenSet = false;
359 bool m_dataRearrangementHasBeenSet = false;
360 bool m_dataSchemaHasBeenSet = false;
361 bool m_dataSchemaUriHasBeenSet = false;
362 bool m_resourceRoleHasBeenSet = false;
363 bool m_serviceRoleHasBeenSet = false;
364 bool m_subnetIdHasBeenSet = false;
365 bool m_securityGroupIdsHasBeenSet = false;
366};
367
368} // namespace Model
369} // namespace MachineLearning
370} // namespace Aws
void SetDataSchema(DataSchemaT &&value)
AWS_MACHINELEARNING_API RDSDataSpec()=default
AWS_MACHINELEARNING_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
RDSDataSpec & WithDatabaseCredentials(DatabaseCredentialsT &&value)
Definition RDSDataSpec.h:89
const Aws::String & GetServiceRole() const
RDSDataSpec & WithServiceRole(ServiceRoleT &&value)
void SetDatabaseInformation(DatabaseInformationT &&value)
Definition RDSDataSpec.h:46
void SetSelectSqlQuery(SelectSqlQueryT &&value)
Definition RDSDataSpec.h:65
void SetDataRearrangement(DataRearrangementT &&value)
RDSDataSpec & WithS3StagingLocation(S3StagingLocationT &&value)
const Aws::String & GetDataRearrangement() const
void SetS3StagingLocation(S3StagingLocationT &&value)
const RDSDatabaseCredentials & GetDatabaseCredentials() const
Definition RDSDataSpec.h:81
RDSDataSpec & WithDataRearrangement(DataRearrangementT &&value)
RDSDataSpec & AddSecurityGroupIds(SecurityGroupIdsT &&value)
void SetServiceRole(ServiceRoleT &&value)
const Aws::String & GetResourceRole() const
RDSDataSpec & WithResourceRole(ResourceRoleT &&value)
const Aws::String & GetS3StagingLocation() const
const Aws::String & GetDataSchema() const
RDSDataSpec & WithSelectSqlQuery(SelectSqlQueryT &&value)
Definition RDSDataSpec.h:70
RDSDataSpec & WithDatabaseInformation(DatabaseInformationT &&value)
Definition RDSDataSpec.h:51
AWS_MACHINELEARNING_API RDSDataSpec & operator=(Aws::Utils::Json::JsonView jsonValue)
RDSDataSpec & WithDataSchemaUri(DataSchemaUriT &&value)
const RDSDatabase & GetDatabaseInformation() const
Definition RDSDataSpec.h:43
void SetResourceRole(ResourceRoleT &&value)
RDSDataSpec & WithSubnetId(SubnetIdT &&value)
const Aws::String & GetSelectSqlQuery() const
Definition RDSDataSpec.h:62
const Aws::String & GetDataSchemaUri() const
RDSDataSpec & WithSecurityGroupIds(SecurityGroupIdsT &&value)
RDSDataSpec & WithDataSchema(DataSchemaT &&value)
void SetDatabaseCredentials(DatabaseCredentialsT &&value)
Definition RDSDataSpec.h:84
AWS_MACHINELEARNING_API RDSDataSpec(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSubnetId() const
void SetDataSchemaUri(DataSchemaUriT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue