AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
RedshiftDataSpec.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/machinelearning/MachineLearning_EXPORTS.h>
9#include <aws/machinelearning/model/RedshiftDatabase.h>
10#include <aws/machinelearning/model/RedshiftDatabaseCredentials.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MachineLearning {
22namespace Model {
23
31 public:
32 AWS_MACHINELEARNING_API RedshiftDataSpec() = default;
33 AWS_MACHINELEARNING_API RedshiftDataSpec(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MACHINELEARNING_API RedshiftDataSpec& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MACHINELEARNING_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const RedshiftDatabase& GetDatabaseInformation() const { return m_databaseInformation; }
43 inline bool DatabaseInformationHasBeenSet() const { return m_databaseInformationHasBeenSet; }
44 template <typename DatabaseInformationT = RedshiftDatabase>
45 void SetDatabaseInformation(DatabaseInformationT&& value) {
46 m_databaseInformationHasBeenSet = true;
47 m_databaseInformation = std::forward<DatabaseInformationT>(value);
48 }
49 template <typename DatabaseInformationT = RedshiftDatabase>
50 RedshiftDataSpec& WithDatabaseInformation(DatabaseInformationT&& value) {
51 SetDatabaseInformation(std::forward<DatabaseInformationT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetSelectSqlQuery() const { return m_selectSqlQuery; }
62 inline bool SelectSqlQueryHasBeenSet() const { return m_selectSqlQueryHasBeenSet; }
63 template <typename SelectSqlQueryT = Aws::String>
64 void SetSelectSqlQuery(SelectSqlQueryT&& value) {
65 m_selectSqlQueryHasBeenSet = true;
66 m_selectSqlQuery = std::forward<SelectSqlQueryT>(value);
67 }
68 template <typename SelectSqlQueryT = Aws::String>
69 RedshiftDataSpec& WithSelectSqlQuery(SelectSqlQueryT&& value) {
70 SetSelectSqlQuery(std::forward<SelectSqlQueryT>(value));
71 return *this;
72 }
74
76
80 inline const RedshiftDatabaseCredentials& GetDatabaseCredentials() const { return m_databaseCredentials; }
81 inline bool DatabaseCredentialsHasBeenSet() const { return m_databaseCredentialsHasBeenSet; }
82 template <typename DatabaseCredentialsT = RedshiftDatabaseCredentials>
83 void SetDatabaseCredentials(DatabaseCredentialsT&& value) {
84 m_databaseCredentialsHasBeenSet = true;
85 m_databaseCredentials = std::forward<DatabaseCredentialsT>(value);
86 }
87 template <typename DatabaseCredentialsT = RedshiftDatabaseCredentials>
88 RedshiftDataSpec& WithDatabaseCredentials(DatabaseCredentialsT&& value) {
89 SetDatabaseCredentials(std::forward<DatabaseCredentialsT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetS3StagingLocation() const { return m_s3StagingLocation; }
100 inline bool S3StagingLocationHasBeenSet() const { return m_s3StagingLocationHasBeenSet; }
101 template <typename S3StagingLocationT = Aws::String>
102 void SetS3StagingLocation(S3StagingLocationT&& value) {
103 m_s3StagingLocationHasBeenSet = true;
104 m_s3StagingLocation = std::forward<S3StagingLocationT>(value);
105 }
106 template <typename S3StagingLocationT = Aws::String>
107 RedshiftDataSpec& WithS3StagingLocation(S3StagingLocationT&& value) {
108 SetS3StagingLocation(std::forward<S3StagingLocationT>(value));
109 return *this;
110 }
112
114
175 inline const Aws::String& GetDataRearrangement() const { return m_dataRearrangement; }
176 inline bool DataRearrangementHasBeenSet() const { return m_dataRearrangementHasBeenSet; }
177 template <typename DataRearrangementT = Aws::String>
178 void SetDataRearrangement(DataRearrangementT&& value) {
179 m_dataRearrangementHasBeenSet = true;
180 m_dataRearrangement = std::forward<DataRearrangementT>(value);
181 }
182 template <typename DataRearrangementT = Aws::String>
183 RedshiftDataSpec& WithDataRearrangement(DataRearrangementT&& value) {
184 SetDataRearrangement(std::forward<DataRearrangementT>(value));
185 return *this;
186 }
188
190
210 inline const Aws::String& GetDataSchema() const { return m_dataSchema; }
211 inline bool DataSchemaHasBeenSet() const { return m_dataSchemaHasBeenSet; }
212 template <typename DataSchemaT = Aws::String>
213 void SetDataSchema(DataSchemaT&& value) {
214 m_dataSchemaHasBeenSet = true;
215 m_dataSchema = std::forward<DataSchemaT>(value);
216 }
217 template <typename DataSchemaT = Aws::String>
218 RedshiftDataSpec& WithDataSchema(DataSchemaT&& value) {
219 SetDataSchema(std::forward<DataSchemaT>(value));
220 return *this;
221 }
223
225
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 RedshiftDataSpec& WithDataSchemaUri(DataSchemaUriT&& value) {
238 SetDataSchemaUri(std::forward<DataSchemaUriT>(value));
239 return *this;
240 }
242 private:
243 RedshiftDatabase m_databaseInformation;
244
245 Aws::String m_selectSqlQuery;
246
247 RedshiftDatabaseCredentials m_databaseCredentials;
248
249 Aws::String m_s3StagingLocation;
250
251 Aws::String m_dataRearrangement;
252
253 Aws::String m_dataSchema;
254
255 Aws::String m_dataSchemaUri;
256 bool m_databaseInformationHasBeenSet = false;
257 bool m_selectSqlQueryHasBeenSet = false;
258 bool m_databaseCredentialsHasBeenSet = false;
259 bool m_s3StagingLocationHasBeenSet = false;
260 bool m_dataRearrangementHasBeenSet = false;
261 bool m_dataSchemaHasBeenSet = false;
262 bool m_dataSchemaUriHasBeenSet = false;
263};
264
265} // namespace Model
266} // namespace MachineLearning
267} // namespace Aws
void SetSelectSqlQuery(SelectSqlQueryT &&value)
AWS_MACHINELEARNING_API RedshiftDataSpec()=default
RedshiftDataSpec & WithDataSchemaUri(DataSchemaUriT &&value)
const RedshiftDatabase & GetDatabaseInformation() const
void SetDatabaseCredentials(DatabaseCredentialsT &&value)
RedshiftDataSpec & WithSelectSqlQuery(SelectSqlQueryT &&value)
RedshiftDataSpec & WithDataSchema(DataSchemaT &&value)
AWS_MACHINELEARNING_API RedshiftDataSpec & operator=(Aws::Utils::Json::JsonView jsonValue)
RedshiftDataSpec & WithDatabaseCredentials(DatabaseCredentialsT &&value)
AWS_MACHINELEARNING_API RedshiftDataSpec(Aws::Utils::Json::JsonView jsonValue)
RedshiftDataSpec & WithDatabaseInformation(DatabaseInformationT &&value)
RedshiftDataSpec & WithS3StagingLocation(S3StagingLocationT &&value)
void SetS3StagingLocation(S3StagingLocationT &&value)
const RedshiftDatabaseCredentials & GetDatabaseCredentials() const
RedshiftDataSpec & WithDataRearrangement(DataRearrangementT &&value)
void SetDataRearrangement(DataRearrangementT &&value)
AWS_MACHINELEARNING_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetS3StagingLocation() const
void SetDatabaseInformation(DatabaseInformationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue