AWS SDK for C++  1.9.107
AWS SDK for C++
CreateDataSourceFromRedshiftRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace MachineLearning
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "CreateDataSourceFromRedshift"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetDataSourceId() const{ return m_dataSourceId; }
42 
46  inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
47 
51  inline void SetDataSourceId(const Aws::String& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = value; }
52 
56  inline void SetDataSourceId(Aws::String&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::move(value); }
57 
61  inline void SetDataSourceId(const char* value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId.assign(value); }
62 
66  inline CreateDataSourceFromRedshiftRequest& WithDataSourceId(const Aws::String& value) { SetDataSourceId(value); return *this;}
67 
71  inline CreateDataSourceFromRedshiftRequest& WithDataSourceId(Aws::String&& value) { SetDataSourceId(std::move(value)); return *this;}
72 
76  inline CreateDataSourceFromRedshiftRequest& WithDataSourceId(const char* value) { SetDataSourceId(value); return *this;}
77 
78 
82  inline const Aws::String& GetDataSourceName() const{ return m_dataSourceName; }
83 
87  inline bool DataSourceNameHasBeenSet() const { return m_dataSourceNameHasBeenSet; }
88 
92  inline void SetDataSourceName(const Aws::String& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = value; }
93 
97  inline void SetDataSourceName(Aws::String&& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = std::move(value); }
98 
102  inline void SetDataSourceName(const char* value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName.assign(value); }
103 
107  inline CreateDataSourceFromRedshiftRequest& WithDataSourceName(const Aws::String& value) { SetDataSourceName(value); return *this;}
108 
112  inline CreateDataSourceFromRedshiftRequest& WithDataSourceName(Aws::String&& value) { SetDataSourceName(std::move(value)); return *this;}
113 
117  inline CreateDataSourceFromRedshiftRequest& WithDataSourceName(const char* value) { SetDataSourceName(value); return *this;}
118 
119 
140  inline const RedshiftDataSpec& GetDataSpec() const{ return m_dataSpec; }
141 
162  inline bool DataSpecHasBeenSet() const { return m_dataSpecHasBeenSet; }
163 
184  inline void SetDataSpec(const RedshiftDataSpec& value) { m_dataSpecHasBeenSet = true; m_dataSpec = value; }
185 
206  inline void SetDataSpec(RedshiftDataSpec&& value) { m_dataSpecHasBeenSet = true; m_dataSpec = std::move(value); }
207 
228  inline CreateDataSourceFromRedshiftRequest& WithDataSpec(const RedshiftDataSpec& value) { SetDataSpec(value); return *this;}
229 
250  inline CreateDataSourceFromRedshiftRequest& WithDataSpec(RedshiftDataSpec&& value) { SetDataSpec(std::move(value)); return *this;}
251 
252 
260  inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
261 
269  inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
270 
278  inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
279 
287  inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); }
288 
296  inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
297 
305  inline CreateDataSourceFromRedshiftRequest& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
306 
314  inline CreateDataSourceFromRedshiftRequest& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;}
315 
323  inline CreateDataSourceFromRedshiftRequest& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
324 
325 
333  inline bool GetComputeStatistics() const{ return m_computeStatistics; }
334 
342  inline bool ComputeStatisticsHasBeenSet() const { return m_computeStatisticsHasBeenSet; }
343 
351  inline void SetComputeStatistics(bool value) { m_computeStatisticsHasBeenSet = true; m_computeStatistics = value; }
352 
360  inline CreateDataSourceFromRedshiftRequest& WithComputeStatistics(bool value) { SetComputeStatistics(value); return *this;}
361 
362  private:
363 
364  Aws::String m_dataSourceId;
365  bool m_dataSourceIdHasBeenSet;
366 
367  Aws::String m_dataSourceName;
368  bool m_dataSourceNameHasBeenSet;
369 
370  RedshiftDataSpec m_dataSpec;
371  bool m_dataSpecHasBeenSet;
372 
373  Aws::String m_roleARN;
374  bool m_roleARNHasBeenSet;
375 
376  bool m_computeStatistics;
377  bool m_computeStatisticsHasBeenSet;
378  };
379 
380 } // namespace Model
381 } // namespace MachineLearning
382 } // namespace Aws
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest
Definition: CreateDataSourceFromRedshiftRequest.h:23
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::SetRoleARN
void SetRoleARN(const char *value)
Definition: CreateDataSourceFromRedshiftRequest.h:296
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::SetDataSourceId
void SetDataSourceId(const Aws::String &value)
Definition: CreateDataSourceFromRedshiftRequest.h:51
Aws::MachineLearning::Model::RedshiftDataSpec
Definition: RedshiftDataSpec.h:35
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::WithDataSourceName
CreateDataSourceFromRedshiftRequest & WithDataSourceName(Aws::String &&value)
Definition: CreateDataSourceFromRedshiftRequest.h:112
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::SetDataSourceName
void SetDataSourceName(const char *value)
Definition: CreateDataSourceFromRedshiftRequest.h:102
MachineLearning_EXPORTS.h
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::GetDataSourceId
const Aws::String & GetDataSourceId() const
Definition: CreateDataSourceFromRedshiftRequest.h:41
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::WithDataSourceId
CreateDataSourceFromRedshiftRequest & WithDataSourceId(const Aws::String &value)
Definition: CreateDataSourceFromRedshiftRequest.h:66
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::DataSourceNameHasBeenSet
bool DataSourceNameHasBeenSet() const
Definition: CreateDataSourceFromRedshiftRequest.h:87
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::DataSpecHasBeenSet
bool DataSpecHasBeenSet() const
Definition: CreateDataSourceFromRedshiftRequest.h:162
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::WithDataSourceId
CreateDataSourceFromRedshiftRequest & WithDataSourceId(const char *value)
Definition: CreateDataSourceFromRedshiftRequest.h:76
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::WithDataSourceName
CreateDataSourceFromRedshiftRequest & WithDataSourceName(const char *value)
Definition: CreateDataSourceFromRedshiftRequest.h:117
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::ComputeStatisticsHasBeenSet
bool ComputeStatisticsHasBeenSet() const
Definition: CreateDataSourceFromRedshiftRequest.h:342
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::GetComputeStatistics
bool GetComputeStatistics() const
Definition: CreateDataSourceFromRedshiftRequest.h:333
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::SetDataSpec
void SetDataSpec(RedshiftDataSpec &&value)
Definition: CreateDataSourceFromRedshiftRequest.h:206
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::SetDataSourceId
void SetDataSourceId(Aws::String &&value)
Definition: CreateDataSourceFromRedshiftRequest.h:56
RedshiftDataSpec.h
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::SetRoleARN
void SetRoleARN(Aws::String &&value)
Definition: CreateDataSourceFromRedshiftRequest.h:287
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::WithRoleARN
CreateDataSourceFromRedshiftRequest & WithRoleARN(const Aws::String &value)
Definition: CreateDataSourceFromRedshiftRequest.h:305
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::WithDataSourceName
CreateDataSourceFromRedshiftRequest & WithDataSourceName(const Aws::String &value)
Definition: CreateDataSourceFromRedshiftRequest.h:107
AWS_MACHINELEARNING_API
#define AWS_MACHINELEARNING_API
Definition: MachineLearning_EXPORTS.h:28
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::WithDataSourceId
CreateDataSourceFromRedshiftRequest & WithDataSourceId(Aws::String &&value)
Definition: CreateDataSourceFromRedshiftRequest.h:71
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::RoleARNHasBeenSet
bool RoleARNHasBeenSet() const
Definition: CreateDataSourceFromRedshiftRequest.h:269
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::GetDataSpec
const RedshiftDataSpec & GetDataSpec() const
Definition: CreateDataSourceFromRedshiftRequest.h:140
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::WithRoleARN
CreateDataSourceFromRedshiftRequest & WithRoleARN(const char *value)
Definition: CreateDataSourceFromRedshiftRequest.h:323
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::SetRoleARN
void SetRoleARN(const Aws::String &value)
Definition: CreateDataSourceFromRedshiftRequest.h:278
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSString.h
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::GetDataSourceName
const Aws::String & GetDataSourceName() const
Definition: CreateDataSourceFromRedshiftRequest.h:82
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::WithDataSpec
CreateDataSourceFromRedshiftRequest & WithDataSpec(const RedshiftDataSpec &value)
Definition: CreateDataSourceFromRedshiftRequest.h:228
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::CreateDataSourceFromRedshiftRequest
CreateDataSourceFromRedshiftRequest()
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::WithRoleARN
CreateDataSourceFromRedshiftRequest & WithRoleARN(Aws::String &&value)
Definition: CreateDataSourceFromRedshiftRequest.h:314
MachineLearningRequest.h
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::SetComputeStatistics
void SetComputeStatistics(bool value)
Definition: CreateDataSourceFromRedshiftRequest.h:351
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::SetDataSourceId
void SetDataSourceId(const char *value)
Definition: CreateDataSourceFromRedshiftRequest.h:61
Aws::MachineLearning::MachineLearningRequest
Definition: MachineLearningRequest.h:17
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::WithComputeStatistics
CreateDataSourceFromRedshiftRequest & WithComputeStatistics(bool value)
Definition: CreateDataSourceFromRedshiftRequest.h:360
Aws
Definition: AccessManagementClient.h:15
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::GetRoleARN
const Aws::String & GetRoleARN() const
Definition: CreateDataSourceFromRedshiftRequest.h:260
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::DataSourceIdHasBeenSet
bool DataSourceIdHasBeenSet() const
Definition: CreateDataSourceFromRedshiftRequest.h:46
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::SetDataSpec
void SetDataSpec(const RedshiftDataSpec &value)
Definition: CreateDataSourceFromRedshiftRequest.h:184
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::SetDataSourceName
void SetDataSourceName(const Aws::String &value)
Definition: CreateDataSourceFromRedshiftRequest.h:92
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::SetDataSourceName
void SetDataSourceName(Aws::String &&value)
Definition: CreateDataSourceFromRedshiftRequest.h:97
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDataSourceFromRedshiftRequest.h:31
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::WithDataSpec
CreateDataSourceFromRedshiftRequest & WithDataSpec(RedshiftDataSpec &&value)
Definition: CreateDataSourceFromRedshiftRequest.h:250
Aws::MachineLearning::Model::CreateDataSourceFromRedshiftRequest::SerializePayload
Aws::String SerializePayload() const override