AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
45 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
46 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
47 inline InvokeRestApiRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
48 inline InvokeRestApiRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
49 inline InvokeRestApiRequest& WithName(const char* value) { SetName(value); return *this;}
51
53
59 inline const Aws::String& GetPath() const{ return m_path; }
60 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
61 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
62 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
63 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
64 inline InvokeRestApiRequest& WithPath(const Aws::String& value) { SetPath(value); return *this;}
65 inline InvokeRestApiRequest& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
66 inline InvokeRestApiRequest& WithPath(const char* value) { SetPath(value); return *this;}
68
70
74 inline const RestApiMethod& GetMethod() const{ return m_method; }
75 inline bool MethodHasBeenSet() const { return m_methodHasBeenSet; }
76 inline void SetMethod(const RestApiMethod& value) { m_methodHasBeenSet = true; m_method = value; }
77 inline void SetMethod(RestApiMethod&& value) { m_methodHasBeenSet = true; m_method = std::move(value); }
78 inline InvokeRestApiRequest& WithMethod(const RestApiMethod& value) { SetMethod(value); return *this;}
79 inline InvokeRestApiRequest& WithMethod(RestApiMethod&& value) { SetMethod(std::move(value)); return *this;}
81
83
87 inline Aws::Utils::DocumentView GetQueryParameters() const{ return m_queryParameters; }
88 inline bool QueryParametersHasBeenSet() const { return m_queryParametersHasBeenSet; }
89 inline void SetQueryParameters(const Aws::Utils::Document& value) { m_queryParametersHasBeenSet = true; m_queryParameters = value; }
90 inline void SetQueryParameters(Aws::Utils::Document&& value) { m_queryParametersHasBeenSet = true; m_queryParameters = std::move(value); }
92 inline InvokeRestApiRequest& WithQueryParameters(Aws::Utils::Document&& value) { SetQueryParameters(std::move(value)); return *this;}
94
96
100 inline Aws::Utils::DocumentView GetMemberBody() const{ return m_body; }
101 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
102 inline void SetBody(const Aws::Utils::Document& value) { m_bodyHasBeenSet = true; m_body = value; }
103 inline void SetBody(Aws::Utils::Document&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
104 inline InvokeRestApiRequest& WithBody(const Aws::Utils::Document& value) { SetBody(value); return *this;}
105 inline InvokeRestApiRequest& WithBody(Aws::Utils::Document&& value) { SetBody(std::move(value)); return *this;}
107 private:
108
109 Aws::String m_name;
110 bool m_nameHasBeenSet = false;
111
112 Aws::String m_path;
113 bool m_pathHasBeenSet = false;
114
115 RestApiMethod m_method;
116 bool m_methodHasBeenSet = false;
117
118 Aws::Utils::Document m_queryParameters;
119 bool m_queryParametersHasBeenSet = false;
120
122 bool m_bodyHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace MWAA
127} // namespace Aws
void SetQueryParameters(const Aws::Utils::Document &value)
void SetPath(const Aws::String &value)
InvokeRestApiRequest & WithMethod(const RestApiMethod &value)
InvokeRestApiRequest & WithName(const Aws::String &value)
InvokeRestApiRequest & WithBody(Aws::Utils::Document &&value)
void SetQueryParameters(Aws::Utils::Document &&value)
InvokeRestApiRequest & WithQueryParameters(const Aws::Utils::Document &value)
InvokeRestApiRequest & WithQueryParameters(Aws::Utils::Document &&value)
Aws::Utils::DocumentView GetMemberBody() const
InvokeRestApiRequest & WithPath(const char *value)
InvokeRestApiRequest & WithBody(const Aws::Utils::Document &value)
const RestApiMethod & GetMethod() const
InvokeRestApiRequest & WithName(Aws::String &&value)
Aws::Utils::DocumentView GetQueryParameters() const
void SetMethod(const RestApiMethod &value)
InvokeRestApiRequest & WithPath(Aws::String &&value)
void SetBody(Aws::Utils::Document &&value)
void SetBody(const Aws::Utils::Document &value)
virtual const char * GetServiceRequestName() const override
InvokeRestApiRequest & WithMethod(RestApiMethod &&value)
InvokeRestApiRequest & WithPath(const Aws::String &value)
InvokeRestApiRequest & WithName(const char *value)
AWS_MWAA_API Aws::String SerializePayload() const override
void SetName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String