AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDataSourceFromRedshiftRequest.h
1
6#pragma once
7#include <aws/machinelearning/MachineLearning_EXPORTS.h>
8#include <aws/machinelearning/MachineLearningRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/machinelearning/model/RedshiftDataSpec.h>
11#include <utility>
12
13namespace Aws
14{
15namespace MachineLearning
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_MACHINELEARNING_API CreateDataSourceFromRedshiftRequest();
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_MACHINELEARNING_API Aws::String SerializePayload() const override;
34
35 AWS_MACHINELEARNING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const Aws::String& GetDataSourceId() const{ return m_dataSourceId; }
43 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
44 inline void SetDataSourceId(const Aws::String& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = value; }
45 inline void SetDataSourceId(Aws::String&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::move(value); }
46 inline void SetDataSourceId(const char* value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId.assign(value); }
48 inline CreateDataSourceFromRedshiftRequest& WithDataSourceId(Aws::String&& value) { SetDataSourceId(std::move(value)); return *this;}
49 inline CreateDataSourceFromRedshiftRequest& WithDataSourceId(const char* value) { SetDataSourceId(value); return *this;}
51
53
56 inline const Aws::String& GetDataSourceName() const{ return m_dataSourceName; }
57 inline bool DataSourceNameHasBeenSet() const { return m_dataSourceNameHasBeenSet; }
58 inline void SetDataSourceName(const Aws::String& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = value; }
59 inline void SetDataSourceName(Aws::String&& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = std::move(value); }
60 inline void SetDataSourceName(const char* value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName.assign(value); }
62 inline CreateDataSourceFromRedshiftRequest& WithDataSourceName(Aws::String&& value) { SetDataSourceName(std::move(value)); return *this;}
63 inline CreateDataSourceFromRedshiftRequest& WithDataSourceName(const char* value) { SetDataSourceName(value); return *this;}
65
67
87 inline const RedshiftDataSpec& GetDataSpec() const{ return m_dataSpec; }
88 inline bool DataSpecHasBeenSet() const { return m_dataSpecHasBeenSet; }
89 inline void SetDataSpec(const RedshiftDataSpec& value) { m_dataSpecHasBeenSet = true; m_dataSpec = value; }
90 inline void SetDataSpec(RedshiftDataSpec&& value) { m_dataSpecHasBeenSet = true; m_dataSpec = std::move(value); }
92 inline CreateDataSourceFromRedshiftRequest& WithDataSpec(RedshiftDataSpec&& value) { SetDataSpec(std::move(value)); return *this;}
94
96
103 inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
104 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
105 inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
106 inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); }
107 inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
108 inline CreateDataSourceFromRedshiftRequest& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
109 inline CreateDataSourceFromRedshiftRequest& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;}
110 inline CreateDataSourceFromRedshiftRequest& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
112
114
121 inline bool GetComputeStatistics() const{ return m_computeStatistics; }
122 inline bool ComputeStatisticsHasBeenSet() const { return m_computeStatisticsHasBeenSet; }
123 inline void SetComputeStatistics(bool value) { m_computeStatisticsHasBeenSet = true; m_computeStatistics = value; }
126 private:
127
128 Aws::String m_dataSourceId;
129 bool m_dataSourceIdHasBeenSet = false;
130
131 Aws::String m_dataSourceName;
132 bool m_dataSourceNameHasBeenSet = false;
133
134 RedshiftDataSpec m_dataSpec;
135 bool m_dataSpecHasBeenSet = false;
136
137 Aws::String m_roleARN;
138 bool m_roleARNHasBeenSet = false;
139
140 bool m_computeStatistics;
141 bool m_computeStatisticsHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace MachineLearning
146} // namespace Aws
CreateDataSourceFromRedshiftRequest & WithDataSourceName(const char *value)
CreateDataSourceFromRedshiftRequest & WithRoleARN(Aws::String &&value)
CreateDataSourceFromRedshiftRequest & WithRoleARN(const Aws::String &value)
CreateDataSourceFromRedshiftRequest & WithDataSourceId(const char *value)
CreateDataSourceFromRedshiftRequest & WithDataSourceId(Aws::String &&value)
CreateDataSourceFromRedshiftRequest & WithDataSpec(RedshiftDataSpec &&value)
CreateDataSourceFromRedshiftRequest & WithDataSourceId(const Aws::String &value)
AWS_MACHINELEARNING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_MACHINELEARNING_API Aws::String SerializePayload() const override
CreateDataSourceFromRedshiftRequest & WithDataSpec(const RedshiftDataSpec &value)
CreateDataSourceFromRedshiftRequest & WithRoleARN(const char *value)
CreateDataSourceFromRedshiftRequest & WithDataSourceName(Aws::String &&value)
CreateDataSourceFromRedshiftRequest & WithDataSourceName(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String