AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
InvokeRestApiRequest.h
1
6#pragma once
7#include <aws/mwaa/MWAA_EXPORTS.h>
8#include <aws/mwaa/MWAARequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mwaa/model/RestApiMethod.h>
11#include <aws/core/utils/Document.h>
12#include <utility>
13
14namespace Aws
15{
16namespace MWAA
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_MWAA_API InvokeRestApiRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "InvokeRestApi"; }
33
34 AWS_MWAA_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template<typename NameT = Aws::String>
45 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
46 template<typename NameT = Aws::String>
47 InvokeRestApiRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
49
51
57 inline const Aws::String& GetPath() const { return m_path; }
58 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
59 template<typename PathT = Aws::String>
60 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
61 template<typename PathT = Aws::String>
62 InvokeRestApiRequest& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
64
66
70 inline RestApiMethod GetMethod() const { return m_method; }
71 inline bool MethodHasBeenSet() const { return m_methodHasBeenSet; }
72 inline void SetMethod(RestApiMethod value) { m_methodHasBeenSet = true; m_method = value; }
73 inline InvokeRestApiRequest& WithMethod(RestApiMethod value) { SetMethod(value); return *this;}
75
77
81 inline Aws::Utils::DocumentView GetQueryParameters() const { return m_queryParameters; }
82 inline bool QueryParametersHasBeenSet() const { return m_queryParametersHasBeenSet; }
83 template<typename QueryParametersT = Aws::Utils::Document>
84 void SetQueryParameters(QueryParametersT&& value) { m_queryParametersHasBeenSet = true; m_queryParameters = std::forward<QueryParametersT>(value); }
85 template<typename QueryParametersT = Aws::Utils::Document>
86 InvokeRestApiRequest& WithQueryParameters(QueryParametersT&& value) { SetQueryParameters(std::forward<QueryParametersT>(value)); return *this;}
88
90
94 inline Aws::Utils::DocumentView GetMemberBody() const { return m_body; }
95 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
96 template<typename BodyT = Aws::Utils::Document>
97 void SetBody(BodyT&& value) { m_bodyHasBeenSet = true; m_body = std::forward<BodyT>(value); }
98 template<typename BodyT = Aws::Utils::Document>
99 InvokeRestApiRequest& WithBody(BodyT&& value) { SetBody(std::forward<BodyT>(value)); return *this;}
101 private:
102
103 Aws::String m_name;
104 bool m_nameHasBeenSet = false;
105
106 Aws::String m_path;
107 bool m_pathHasBeenSet = false;
108
110 bool m_methodHasBeenSet = false;
111
112 Aws::Utils::Document m_queryParameters;
113 bool m_queryParametersHasBeenSet = false;
114
116 bool m_bodyHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace MWAA
121} // 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