AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
GetExportRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGatewayRequest.h>
8#include <aws/apigateway/APIGateway_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace APIGateway {
19namespace Model {
20
28 public:
29 AWS_APIGATEWAY_API GetExportRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "GetExport"; }
36
37 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
38
39 AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
42
44
47 inline const Aws::String& GetRestApiId() const { return m_restApiId; }
48 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
49 template <typename RestApiIdT = Aws::String>
50 void SetRestApiId(RestApiIdT&& value) {
51 m_restApiIdHasBeenSet = true;
52 m_restApiId = std::forward<RestApiIdT>(value);
53 }
54 template <typename RestApiIdT = Aws::String>
55 GetExportRequest& WithRestApiId(RestApiIdT&& value) {
56 SetRestApiId(std::forward<RestApiIdT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetStageName() const { return m_stageName; }
66 inline bool StageNameHasBeenSet() const { return m_stageNameHasBeenSet; }
67 template <typename StageNameT = Aws::String>
68 void SetStageName(StageNameT&& value) {
69 m_stageNameHasBeenSet = true;
70 m_stageName = std::forward<StageNameT>(value);
71 }
72 template <typename StageNameT = Aws::String>
73 GetExportRequest& WithStageName(StageNameT&& value) {
74 SetStageName(std::forward<StageNameT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::String& GetExportType() const { return m_exportType; }
85 inline bool ExportTypeHasBeenSet() const { return m_exportTypeHasBeenSet; }
86 template <typename ExportTypeT = Aws::String>
87 void SetExportType(ExportTypeT&& value) {
88 m_exportTypeHasBeenSet = true;
89 m_exportType = std::forward<ExportTypeT>(value);
90 }
91 template <typename ExportTypeT = Aws::String>
92 GetExportRequest& WithExportType(ExportTypeT&& value) {
93 SetExportType(std::forward<ExportTypeT>(value));
94 return *this;
95 }
97
99
110 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
111 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
112 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
113 void SetParameters(ParametersT&& value) {
114 m_parametersHasBeenSet = true;
115 m_parameters = std::forward<ParametersT>(value);
116 }
117 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
118 GetExportRequest& WithParameters(ParametersT&& value) {
119 SetParameters(std::forward<ParametersT>(value));
120 return *this;
121 }
122 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
123 GetExportRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
124 m_parametersHasBeenSet = true;
125 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
126 return *this;
127 }
129
131
138 inline const Aws::String& GetAccepts() const { return m_accepts; }
139 inline bool AcceptsHasBeenSet() const { return m_acceptsHasBeenSet; }
140 template <typename AcceptsT = Aws::String>
141 void SetAccepts(AcceptsT&& value) {
142 m_acceptsHasBeenSet = true;
143 m_accepts = std::forward<AcceptsT>(value);
144 }
145 template <typename AcceptsT = Aws::String>
146 GetExportRequest& WithAccepts(AcceptsT&& value) {
147 SetAccepts(std::forward<AcceptsT>(value));
148 return *this;
149 }
151 private:
152 Aws::String m_restApiId;
153
154 Aws::String m_stageName;
155
156 Aws::String m_exportType;
157
159
160 Aws::String m_accepts;
161 bool m_restApiIdHasBeenSet = false;
162 bool m_stageNameHasBeenSet = false;
163 bool m_exportTypeHasBeenSet = false;
164 bool m_parametersHasBeenSet = false;
165 bool m_acceptsHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace APIGateway
170} // namespace Aws
GetExportRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
GetExportRequest & WithParameters(ParametersT &&value)
GetExportRequest & WithAccepts(AcceptsT &&value)
GetExportRequest & WithRestApiId(RestApiIdT &&value)
AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetExportRequest & WithExportType(ExportTypeT &&value)
AWS_APIGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetExportType() const
const Aws::String & GetRestApiId() const
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
GetExportRequest & WithStageName(StageNameT &&value)
const Aws::String & GetStageName() const
AWS_APIGATEWAY_API GetExportRequest()=default
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String