AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
InvokeRestApiRequest.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mwaa/MWAARequest.h>
10#include <aws/mwaa/MWAA_EXPORTS.h>
11#include <aws/mwaa/model/RestApiMethod.h>
12
13#include <utility>
14
15namespace Aws {
16namespace MWAA {
17namespace Model {
18
22 public:
23 AWS_MWAA_API InvokeRestApiRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "InvokeRestApi"; }
30
31 AWS_MWAA_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
59 inline const Aws::String& GetPath() const { return m_path; }
60 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
61 template <typename PathT = Aws::String>
62 void SetPath(PathT&& value) {
63 m_pathHasBeenSet = true;
64 m_path = std::forward<PathT>(value);
65 }
66 template <typename PathT = Aws::String>
68 SetPath(std::forward<PathT>(value));
69 return *this;
70 }
72
74
78 inline RestApiMethod GetMethod() const { return m_method; }
79 inline bool MethodHasBeenSet() const { return m_methodHasBeenSet; }
80 inline void SetMethod(RestApiMethod value) {
81 m_methodHasBeenSet = true;
82 m_method = value;
83 }
85 SetMethod(value);
86 return *this;
87 }
89
91
95 inline Aws::Utils::DocumentView GetQueryParameters() const { return m_queryParameters; }
96 inline bool QueryParametersHasBeenSet() const { return m_queryParametersHasBeenSet; }
97 template <typename QueryParametersT = Aws::Utils::Document>
98 void SetQueryParameters(QueryParametersT&& value) {
99 m_queryParametersHasBeenSet = true;
100 m_queryParameters = std::forward<QueryParametersT>(value);
101 }
102 template <typename QueryParametersT = Aws::Utils::Document>
103 InvokeRestApiRequest& WithQueryParameters(QueryParametersT&& value) {
104 SetQueryParameters(std::forward<QueryParametersT>(value));
105 return *this;
106 }
108
110
114 inline Aws::Utils::DocumentView GetMemberBody() const { return m_body; }
115 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
116 template <typename BodyT = Aws::Utils::Document>
117 void SetBody(BodyT&& value) {
118 m_bodyHasBeenSet = true;
119 m_body = std::forward<BodyT>(value);
120 }
121 template <typename BodyT = Aws::Utils::Document>
123 SetBody(std::forward<BodyT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_name;
129
130 Aws::String m_path;
131
133
134 Aws::Utils::Document m_queryParameters;
135
137 bool m_nameHasBeenSet = false;
138 bool m_pathHasBeenSet = false;
139 bool m_methodHasBeenSet = false;
140 bool m_queryParametersHasBeenSet = false;
141 bool m_bodyHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace MWAA
146} // namespace Aws
InvokeRestApiRequest & WithMethod(RestApiMethod value)
InvokeRestApiRequest & WithQueryParameters(QueryParametersT &&value)
InvokeRestApiRequest & WithBody(BodyT &&value)
void SetQueryParameters(QueryParametersT &&value)
Aws::Utils::DocumentView GetMemberBody() const
InvokeRestApiRequest & WithName(NameT &&value)
Aws::Utils::DocumentView GetQueryParameters() const
virtual const char * GetServiceRequestName() const override
AWS_MWAA_API InvokeRestApiRequest()=default
InvokeRestApiRequest & WithPath(PathT &&value)
AWS_MWAA_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String