AWS SDK for C++

AWS SDK for C++ Version 1.11.874

Loading...
Searching...
No Matches
SourceConfiguration.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/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/ConnectorProperty.h>
11#include <aws/glue/model/FilterConfiguration.h>
12#include <aws/glue/model/HTTPMethod.h>
13#include <aws/glue/model/PaginationConfiguration.h>
14#include <aws/glue/model/ResponseConfiguration.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Glue {
26namespace Model {
27
36 public:
37 AWS_GLUE_API SourceConfiguration() = default;
41
43
46 inline HTTPMethod GetRequestMethod() const { return m_requestMethod; }
47 inline bool RequestMethodHasBeenSet() const { return m_requestMethodHasBeenSet; }
48 inline void SetRequestMethod(HTTPMethod value) {
49 m_requestMethodHasBeenSet = true;
50 m_requestMethod = value;
51 }
53 SetRequestMethod(value);
54 return *this;
55 }
57
59
63 inline const Aws::String& GetRequestPath() const { return m_requestPath; }
64 inline bool RequestPathHasBeenSet() const { return m_requestPathHasBeenSet; }
65 template <typename RequestPathT = Aws::String>
66 void SetRequestPath(RequestPathT&& value) {
67 m_requestPathHasBeenSet = true;
68 m_requestPath = std::forward<RequestPathT>(value);
69 }
70 template <typename RequestPathT = Aws::String>
71 SourceConfiguration& WithRequestPath(RequestPathT&& value) {
72 SetRequestPath(std::forward<RequestPathT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::Vector<ConnectorProperty>& GetRequestParameters() const { return m_requestParameters; }
83 inline bool RequestParametersHasBeenSet() const { return m_requestParametersHasBeenSet; }
84 template <typename RequestParametersT = Aws::Vector<ConnectorProperty>>
85 void SetRequestParameters(RequestParametersT&& value) {
86 m_requestParametersHasBeenSet = true;
87 m_requestParameters = std::forward<RequestParametersT>(value);
88 }
89 template <typename RequestParametersT = Aws::Vector<ConnectorProperty>>
90 SourceConfiguration& WithRequestParameters(RequestParametersT&& value) {
91 SetRequestParameters(std::forward<RequestParametersT>(value));
92 return *this;
93 }
94 template <typename RequestParametersT = ConnectorProperty>
95 SourceConfiguration& AddRequestParameters(RequestParametersT&& value) {
96 m_requestParametersHasBeenSet = true;
97 m_requestParameters.emplace_back(std::forward<RequestParametersT>(value));
98 return *this;
99 }
101
103
107 inline const ResponseConfiguration& GetResponseConfiguration() const { return m_responseConfiguration; }
108 inline bool ResponseConfigurationHasBeenSet() const { return m_responseConfigurationHasBeenSet; }
109 template <typename ResponseConfigurationT = ResponseConfiguration>
110 void SetResponseConfiguration(ResponseConfigurationT&& value) {
111 m_responseConfigurationHasBeenSet = true;
112 m_responseConfiguration = std::forward<ResponseConfigurationT>(value);
113 }
114 template <typename ResponseConfigurationT = ResponseConfiguration>
115 SourceConfiguration& WithResponseConfiguration(ResponseConfigurationT&& value) {
116 SetResponseConfiguration(std::forward<ResponseConfigurationT>(value));
117 return *this;
118 }
120
122
126 inline const PaginationConfiguration& GetPaginationConfiguration() const { return m_paginationConfiguration; }
127 inline bool PaginationConfigurationHasBeenSet() const { return m_paginationConfigurationHasBeenSet; }
128 template <typename PaginationConfigurationT = PaginationConfiguration>
129 void SetPaginationConfiguration(PaginationConfigurationT&& value) {
130 m_paginationConfigurationHasBeenSet = true;
131 m_paginationConfiguration = std::forward<PaginationConfigurationT>(value);
132 }
133 template <typename PaginationConfigurationT = PaginationConfiguration>
134 SourceConfiguration& WithPaginationConfiguration(PaginationConfigurationT&& value) {
135 SetPaginationConfiguration(std::forward<PaginationConfigurationT>(value));
136 return *this;
137 }
139
141
145 inline const FilterConfiguration& GetFilterConfiguration() const { return m_filterConfiguration; }
146 inline bool FilterConfigurationHasBeenSet() const { return m_filterConfigurationHasBeenSet; }
147 template <typename FilterConfigurationT = FilterConfiguration>
148 void SetFilterConfiguration(FilterConfigurationT&& value) {
149 m_filterConfigurationHasBeenSet = true;
150 m_filterConfiguration = std::forward<FilterConfigurationT>(value);
151 }
152 template <typename FilterConfigurationT = FilterConfiguration>
153 SourceConfiguration& WithFilterConfiguration(FilterConfigurationT&& value) {
154 SetFilterConfiguration(std::forward<FilterConfigurationT>(value));
155 return *this;
156 }
158 private:
159 HTTPMethod m_requestMethod{HTTPMethod::NOT_SET};
160
161 Aws::String m_requestPath;
162
163 Aws::Vector<ConnectorProperty> m_requestParameters;
164
165 ResponseConfiguration m_responseConfiguration;
166
167 PaginationConfiguration m_paginationConfiguration;
168
169 FilterConfiguration m_filterConfiguration;
170 bool m_requestMethodHasBeenSet = false;
171 bool m_requestPathHasBeenSet = false;
172 bool m_requestParametersHasBeenSet = false;
173 bool m_responseConfigurationHasBeenSet = false;
174 bool m_paginationConfigurationHasBeenSet = false;
175 bool m_filterConfigurationHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace Glue
180} // namespace Aws
const PaginationConfiguration & GetPaginationConfiguration() const
void SetRequestParameters(RequestParametersT &&value)
SourceConfiguration & WithRequestPath(RequestPathT &&value)
SourceConfiguration & WithResponseConfiguration(ResponseConfigurationT &&value)
void SetPaginationConfiguration(PaginationConfigurationT &&value)
void SetFilterConfiguration(FilterConfigurationT &&value)
AWS_GLUE_API SourceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API SourceConfiguration()=default
SourceConfiguration & WithFilterConfiguration(FilterConfigurationT &&value)
SourceConfiguration & WithRequestMethod(HTTPMethod value)
const Aws::Vector< ConnectorProperty > & GetRequestParameters() const
const ResponseConfiguration & GetResponseConfiguration() const
void SetResponseConfiguration(ResponseConfigurationT &&value)
SourceConfiguration & WithRequestParameters(RequestParametersT &&value)
AWS_GLUE_API SourceConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRequestPath() const
SourceConfiguration & WithPaginationConfiguration(PaginationConfigurationT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
const FilterConfiguration & GetFilterConfiguration() const
void SetRequestPath(RequestPathT &&value)
SourceConfiguration & AddRequestParameters(RequestParametersT &&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