AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename DataSourceIdT = Aws::String>
45 void SetDataSourceId(DataSourceIdT&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::forward<DataSourceIdT>(value); }
46 template<typename DataSourceIdT = Aws::String>
47 CreateDataSourceFromRedshiftRequest& WithDataSourceId(DataSourceIdT&& value) { SetDataSourceId(std::forward<DataSourceIdT>(value)); return *this;}
49
51
54 inline const Aws::String& GetDataSourceName() const { return m_dataSourceName; }
55 inline bool DataSourceNameHasBeenSet() const { return m_dataSourceNameHasBeenSet; }
56 template<typename DataSourceNameT = Aws::String>
57 void SetDataSourceName(DataSourceNameT&& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = std::forward<DataSourceNameT>(value); }
58 template<typename DataSourceNameT = Aws::String>
59 CreateDataSourceFromRedshiftRequest& WithDataSourceName(DataSourceNameT&& value) { SetDataSourceName(std::forward<DataSourceNameT>(value)); return *this;}
61
63
83 inline const RedshiftDataSpec& GetDataSpec() const { return m_dataSpec; }
84 inline bool DataSpecHasBeenSet() const { return m_dataSpecHasBeenSet; }
85 template<typename DataSpecT = RedshiftDataSpec>
86 void SetDataSpec(DataSpecT&& value) { m_dataSpecHasBeenSet = true; m_dataSpec = std::forward<DataSpecT>(value); }
87 template<typename DataSpecT = RedshiftDataSpec>
88 CreateDataSourceFromRedshiftRequest& WithDataSpec(DataSpecT&& value) { SetDataSpec(std::forward<DataSpecT>(value)); return *this;}
90
92
99 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
100 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
101 template<typename RoleARNT = Aws::String>
102 void SetRoleARN(RoleARNT&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::forward<RoleARNT>(value); }
103 template<typename RoleARNT = Aws::String>
104 CreateDataSourceFromRedshiftRequest& WithRoleARN(RoleARNT&& value) { SetRoleARN(std::forward<RoleARNT>(value)); return *this;}
106
108
115 inline bool GetComputeStatistics() const { return m_computeStatistics; }
116 inline bool ComputeStatisticsHasBeenSet() const { return m_computeStatisticsHasBeenSet; }
117 inline void SetComputeStatistics(bool value) { m_computeStatisticsHasBeenSet = true; m_computeStatistics = value; }
120 private:
121
122 Aws::String m_dataSourceId;
123 bool m_dataSourceIdHasBeenSet = false;
124
125 Aws::String m_dataSourceName;
126 bool m_dataSourceNameHasBeenSet = false;
127
128 RedshiftDataSpec m_dataSpec;
129 bool m_dataSpecHasBeenSet = false;
130
131 Aws::String m_roleARN;
132 bool m_roleARNHasBeenSet = false;
133
134 bool m_computeStatistics{false};
135 bool m_computeStatisticsHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace MachineLearning
140} // namespace Aws
CreateDataSourceFromRedshiftRequest & WithDataSourceId(DataSourceIdT &&value)
CreateDataSourceFromRedshiftRequest & WithDataSourceName(DataSourceNameT &&value)
AWS_MACHINELEARNING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_MACHINELEARNING_API Aws::String SerializePayload() const override
CreateDataSourceFromRedshiftRequest & WithDataSpec(DataSpecT &&value)
AWS_MACHINELEARNING_API CreateDataSourceFromRedshiftRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String