AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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/HTTPMethod.h>
12#include <aws/glue/model/PaginationConfiguration.h>
13#include <aws/glue/model/ResponseConfiguration.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Glue {
25namespace Model {
26
35 public:
36 AWS_GLUE_API SourceConfiguration() = default;
40
42
45 inline HTTPMethod GetRequestMethod() const { return m_requestMethod; }
46 inline bool RequestMethodHasBeenSet() const { return m_requestMethodHasBeenSet; }
47 inline void SetRequestMethod(HTTPMethod value) {
48 m_requestMethodHasBeenSet = true;
49 m_requestMethod = value;
50 }
52 SetRequestMethod(value);
53 return *this;
54 }
56
58
62 inline const Aws::String& GetRequestPath() const { return m_requestPath; }
63 inline bool RequestPathHasBeenSet() const { return m_requestPathHasBeenSet; }
64 template <typename RequestPathT = Aws::String>
65 void SetRequestPath(RequestPathT&& value) {
66 m_requestPathHasBeenSet = true;
67 m_requestPath = std::forward<RequestPathT>(value);
68 }
69 template <typename RequestPathT = Aws::String>
70 SourceConfiguration& WithRequestPath(RequestPathT&& value) {
71 SetRequestPath(std::forward<RequestPathT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::Vector<ConnectorProperty>& GetRequestParameters() const { return m_requestParameters; }
82 inline bool RequestParametersHasBeenSet() const { return m_requestParametersHasBeenSet; }
83 template <typename RequestParametersT = Aws::Vector<ConnectorProperty>>
84 void SetRequestParameters(RequestParametersT&& value) {
85 m_requestParametersHasBeenSet = true;
86 m_requestParameters = std::forward<RequestParametersT>(value);
87 }
88 template <typename RequestParametersT = Aws::Vector<ConnectorProperty>>
89 SourceConfiguration& WithRequestParameters(RequestParametersT&& value) {
90 SetRequestParameters(std::forward<RequestParametersT>(value));
91 return *this;
92 }
93 template <typename RequestParametersT = ConnectorProperty>
94 SourceConfiguration& AddRequestParameters(RequestParametersT&& value) {
95 m_requestParametersHasBeenSet = true;
96 m_requestParameters.emplace_back(std::forward<RequestParametersT>(value));
97 return *this;
98 }
100
102
106 inline const ResponseConfiguration& GetResponseConfiguration() const { return m_responseConfiguration; }
107 inline bool ResponseConfigurationHasBeenSet() const { return m_responseConfigurationHasBeenSet; }
108 template <typename ResponseConfigurationT = ResponseConfiguration>
109 void SetResponseConfiguration(ResponseConfigurationT&& value) {
110 m_responseConfigurationHasBeenSet = true;
111 m_responseConfiguration = std::forward<ResponseConfigurationT>(value);
112 }
113 template <typename ResponseConfigurationT = ResponseConfiguration>
114 SourceConfiguration& WithResponseConfiguration(ResponseConfigurationT&& value) {
115 SetResponseConfiguration(std::forward<ResponseConfigurationT>(value));
116 return *this;
117 }
119
121
125 inline const PaginationConfiguration& GetPaginationConfiguration() const { return m_paginationConfiguration; }
126 inline bool PaginationConfigurationHasBeenSet() const { return m_paginationConfigurationHasBeenSet; }
127 template <typename PaginationConfigurationT = PaginationConfiguration>
128 void SetPaginationConfiguration(PaginationConfigurationT&& value) {
129 m_paginationConfigurationHasBeenSet = true;
130 m_paginationConfiguration = std::forward<PaginationConfigurationT>(value);
131 }
132 template <typename PaginationConfigurationT = PaginationConfiguration>
133 SourceConfiguration& WithPaginationConfiguration(PaginationConfigurationT&& value) {
134 SetPaginationConfiguration(std::forward<PaginationConfigurationT>(value));
135 return *this;
136 }
138 private:
139 HTTPMethod m_requestMethod{HTTPMethod::NOT_SET};
140
141 Aws::String m_requestPath;
142
143 Aws::Vector<ConnectorProperty> m_requestParameters;
144
145 ResponseConfiguration m_responseConfiguration;
146
147 PaginationConfiguration m_paginationConfiguration;
148 bool m_requestMethodHasBeenSet = false;
149 bool m_requestPathHasBeenSet = false;
150 bool m_requestParametersHasBeenSet = false;
151 bool m_responseConfigurationHasBeenSet = false;
152 bool m_paginationConfigurationHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace Glue
157} // namespace Aws
const PaginationConfiguration & GetPaginationConfiguration() const
void SetRequestParameters(RequestParametersT &&value)
SourceConfiguration & WithRequestPath(RequestPathT &&value)
SourceConfiguration & WithResponseConfiguration(ResponseConfigurationT &&value)
void SetPaginationConfiguration(PaginationConfigurationT &&value)
AWS_GLUE_API SourceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API SourceConfiguration()=default
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
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