AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ImportRestApiResult.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/apigateway/model/ApiKeySourceType.h>
12#include <aws/apigateway/model/EndpointConfiguration.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace APIGateway
29{
30namespace Model
31{
38 {
39 public:
40 AWS_APIGATEWAY_API ImportRestApiResult() = default;
43
44
46
50 inline const Aws::String& GetId() const { return m_id; }
51 template<typename IdT = Aws::String>
52 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
53 template<typename IdT = Aws::String>
54 ImportRestApiResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 template<typename NameT = Aws::String>
63 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
64 template<typename NameT = Aws::String>
65 ImportRestApiResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
67
69
72 inline const Aws::String& GetDescription() const { return m_description; }
73 template<typename DescriptionT = Aws::String>
74 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
75 template<typename DescriptionT = Aws::String>
76 ImportRestApiResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
84 template<typename CreatedDateT = Aws::Utils::DateTime>
85 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
86 template<typename CreatedDateT = Aws::Utils::DateTime>
87 ImportRestApiResult& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
89
91
94 inline const Aws::String& GetVersion() const { return m_version; }
95 template<typename VersionT = Aws::String>
96 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
97 template<typename VersionT = Aws::String>
98 ImportRestApiResult& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
100
102
106 inline const Aws::Vector<Aws::String>& GetWarnings() const { return m_warnings; }
107 template<typename WarningsT = Aws::Vector<Aws::String>>
108 void SetWarnings(WarningsT&& value) { m_warningsHasBeenSet = true; m_warnings = std::forward<WarningsT>(value); }
109 template<typename WarningsT = Aws::Vector<Aws::String>>
110 ImportRestApiResult& WithWarnings(WarningsT&& value) { SetWarnings(std::forward<WarningsT>(value)); return *this;}
111 template<typename WarningsT = Aws::String>
112 ImportRestApiResult& AddWarnings(WarningsT&& value) { m_warningsHasBeenSet = true; m_warnings.emplace_back(std::forward<WarningsT>(value)); return *this; }
114
116
120 inline const Aws::Vector<Aws::String>& GetBinaryMediaTypes() const { return m_binaryMediaTypes; }
121 template<typename BinaryMediaTypesT = Aws::Vector<Aws::String>>
122 void SetBinaryMediaTypes(BinaryMediaTypesT&& value) { m_binaryMediaTypesHasBeenSet = true; m_binaryMediaTypes = std::forward<BinaryMediaTypesT>(value); }
123 template<typename BinaryMediaTypesT = Aws::Vector<Aws::String>>
124 ImportRestApiResult& WithBinaryMediaTypes(BinaryMediaTypesT&& value) { SetBinaryMediaTypes(std::forward<BinaryMediaTypesT>(value)); return *this;}
125 template<typename BinaryMediaTypesT = Aws::String>
126 ImportRestApiResult& AddBinaryMediaTypes(BinaryMediaTypesT&& value) { m_binaryMediaTypesHasBeenSet = true; m_binaryMediaTypes.emplace_back(std::forward<BinaryMediaTypesT>(value)); return *this; }
128
130
137 inline int GetMinimumCompressionSize() const { return m_minimumCompressionSize; }
138 inline void SetMinimumCompressionSize(int value) { m_minimumCompressionSizeHasBeenSet = true; m_minimumCompressionSize = value; }
141
143
149 inline ApiKeySourceType GetApiKeySource() const { return m_apiKeySource; }
150 inline void SetApiKeySource(ApiKeySourceType value) { m_apiKeySourceHasBeenSet = true; m_apiKeySource = value; }
153
155
159 inline const EndpointConfiguration& GetEndpointConfiguration() const { return m_endpointConfiguration; }
160 template<typename EndpointConfigurationT = EndpointConfiguration>
161 void SetEndpointConfiguration(EndpointConfigurationT&& value) { m_endpointConfigurationHasBeenSet = true; m_endpointConfiguration = std::forward<EndpointConfigurationT>(value); }
162 template<typename EndpointConfigurationT = EndpointConfiguration>
163 ImportRestApiResult& WithEndpointConfiguration(EndpointConfigurationT&& value) { SetEndpointConfiguration(std::forward<EndpointConfigurationT>(value)); return *this;}
165
167
171 inline const Aws::String& GetPolicy() const { return m_policy; }
172 template<typename PolicyT = Aws::String>
173 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet = true; m_policy = std::forward<PolicyT>(value); }
174 template<typename PolicyT = Aws::String>
175 ImportRestApiResult& WithPolicy(PolicyT&& value) { SetPolicy(std::forward<PolicyT>(value)); return *this;}
177
179
183 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
184 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
185 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
186 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
187 ImportRestApiResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
188 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
189 ImportRestApiResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
190 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
191 }
193
195
202 inline bool GetDisableExecuteApiEndpoint() const { return m_disableExecuteApiEndpoint; }
203 inline void SetDisableExecuteApiEndpoint(bool value) { m_disableExecuteApiEndpointHasBeenSet = true; m_disableExecuteApiEndpoint = value; }
206
208
211 inline const Aws::String& GetRootResourceId() const { return m_rootResourceId; }
212 template<typename RootResourceIdT = Aws::String>
213 void SetRootResourceId(RootResourceIdT&& value) { m_rootResourceIdHasBeenSet = true; m_rootResourceId = std::forward<RootResourceIdT>(value); }
214 template<typename RootResourceIdT = Aws::String>
215 ImportRestApiResult& WithRootResourceId(RootResourceIdT&& value) { SetRootResourceId(std::forward<RootResourceIdT>(value)); return *this;}
217
219
220 inline const Aws::String& GetRequestId() const { return m_requestId; }
221 template<typename RequestIdT = Aws::String>
222 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
223 template<typename RequestIdT = Aws::String>
224 ImportRestApiResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
226 private:
227
228 Aws::String m_id;
229 bool m_idHasBeenSet = false;
230
231 Aws::String m_name;
232 bool m_nameHasBeenSet = false;
233
234 Aws::String m_description;
235 bool m_descriptionHasBeenSet = false;
236
237 Aws::Utils::DateTime m_createdDate{};
238 bool m_createdDateHasBeenSet = false;
239
240 Aws::String m_version;
241 bool m_versionHasBeenSet = false;
242
243 Aws::Vector<Aws::String> m_warnings;
244 bool m_warningsHasBeenSet = false;
245
246 Aws::Vector<Aws::String> m_binaryMediaTypes;
247 bool m_binaryMediaTypesHasBeenSet = false;
248
249 int m_minimumCompressionSize{0};
250 bool m_minimumCompressionSizeHasBeenSet = false;
251
253 bool m_apiKeySourceHasBeenSet = false;
254
255 EndpointConfiguration m_endpointConfiguration;
256 bool m_endpointConfigurationHasBeenSet = false;
257
258 Aws::String m_policy;
259 bool m_policyHasBeenSet = false;
260
262 bool m_tagsHasBeenSet = false;
263
264 bool m_disableExecuteApiEndpoint{false};
265 bool m_disableExecuteApiEndpointHasBeenSet = false;
266
267 Aws::String m_rootResourceId;
268 bool m_rootResourceIdHasBeenSet = false;
269
270 Aws::String m_requestId;
271 bool m_requestIdHasBeenSet = false;
272 };
273
274} // namespace Model
275} // namespace APIGateway
276} // namespace Aws
ImportRestApiResult & WithApiKeySource(ApiKeySourceType value)
void SetRootResourceId(RootResourceIdT &&value)
ImportRestApiResult & WithRootResourceId(RootResourceIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ImportRestApiResult & WithEndpointConfiguration(EndpointConfigurationT &&value)
ImportRestApiResult & WithVersion(VersionT &&value)
const Aws::Vector< Aws::String > & GetWarnings() const
ImportRestApiResult & AddBinaryMediaTypes(BinaryMediaTypesT &&value)
ImportRestApiResult & WithBinaryMediaTypes(BinaryMediaTypesT &&value)
ImportRestApiResult & WithName(NameT &&value)
AWS_APIGATEWAY_API ImportRestApiResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ImportRestApiResult & WithCreatedDate(CreatedDateT &&value)
ImportRestApiResult & WithDisableExecuteApiEndpoint(bool value)
AWS_APIGATEWAY_API ImportRestApiResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ImportRestApiResult & AddWarnings(WarningsT &&value)
ImportRestApiResult & WithPolicy(PolicyT &&value)
const Aws::Vector< Aws::String > & GetBinaryMediaTypes() const
ImportRestApiResult & WithWarnings(WarningsT &&value)
const EndpointConfiguration & GetEndpointConfiguration() const
const Aws::Utils::DateTime & GetCreatedDate() const
ImportRestApiResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
ImportRestApiResult & WithDescription(DescriptionT &&value)
void SetBinaryMediaTypes(BinaryMediaTypesT &&value)
void SetEndpointConfiguration(EndpointConfigurationT &&value)
ImportRestApiResult & WithRequestId(RequestIdT &&value)
ImportRestApiResult & WithId(IdT &&value)
ImportRestApiResult & WithTags(TagsT &&value)
ImportRestApiResult & WithMinimumCompressionSize(int value)
AWS_APIGATEWAY_API ImportRestApiResult()=default
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue