AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateRestApiRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/APIGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.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{
18namespace APIGateway
19{
20namespace Model
21{
22
30 {
31 public:
32 AWS_APIGATEWAY_API CreateRestApiRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateRestApi"; }
39
40 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
41
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 CreateRestApiRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template<typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
63 template<typename DescriptionT = Aws::String>
64 CreateRestApiRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
66
68
71 inline const Aws::String& GetVersion() const { return m_version; }
72 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
73 template<typename VersionT = Aws::String>
74 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
75 template<typename VersionT = Aws::String>
76 CreateRestApiRequest& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
78
80
83 inline const Aws::String& GetCloneFrom() const { return m_cloneFrom; }
84 inline bool CloneFromHasBeenSet() const { return m_cloneFromHasBeenSet; }
85 template<typename CloneFromT = Aws::String>
86 void SetCloneFrom(CloneFromT&& value) { m_cloneFromHasBeenSet = true; m_cloneFrom = std::forward<CloneFromT>(value); }
87 template<typename CloneFromT = Aws::String>
88 CreateRestApiRequest& WithCloneFrom(CloneFromT&& value) { SetCloneFrom(std::forward<CloneFromT>(value)); return *this;}
90
92
96 inline const Aws::Vector<Aws::String>& GetBinaryMediaTypes() const { return m_binaryMediaTypes; }
97 inline bool BinaryMediaTypesHasBeenSet() const { return m_binaryMediaTypesHasBeenSet; }
98 template<typename BinaryMediaTypesT = Aws::Vector<Aws::String>>
99 void SetBinaryMediaTypes(BinaryMediaTypesT&& value) { m_binaryMediaTypesHasBeenSet = true; m_binaryMediaTypes = std::forward<BinaryMediaTypesT>(value); }
100 template<typename BinaryMediaTypesT = Aws::Vector<Aws::String>>
101 CreateRestApiRequest& WithBinaryMediaTypes(BinaryMediaTypesT&& value) { SetBinaryMediaTypes(std::forward<BinaryMediaTypesT>(value)); return *this;}
102 template<typename BinaryMediaTypesT = Aws::String>
103 CreateRestApiRequest& AddBinaryMediaTypes(BinaryMediaTypesT&& value) { m_binaryMediaTypesHasBeenSet = true; m_binaryMediaTypes.emplace_back(std::forward<BinaryMediaTypesT>(value)); return *this; }
105
107
114 inline int GetMinimumCompressionSize() const { return m_minimumCompressionSize; }
115 inline bool MinimumCompressionSizeHasBeenSet() const { return m_minimumCompressionSizeHasBeenSet; }
116 inline void SetMinimumCompressionSize(int value) { m_minimumCompressionSizeHasBeenSet = true; m_minimumCompressionSize = value; }
119
121
127 inline ApiKeySourceType GetApiKeySource() const { return m_apiKeySource; }
128 inline bool ApiKeySourceHasBeenSet() const { return m_apiKeySourceHasBeenSet; }
129 inline void SetApiKeySource(ApiKeySourceType value) { m_apiKeySourceHasBeenSet = true; m_apiKeySource = value; }
132
134
138 inline const EndpointConfiguration& GetEndpointConfiguration() const { return m_endpointConfiguration; }
139 inline bool EndpointConfigurationHasBeenSet() const { return m_endpointConfigurationHasBeenSet; }
140 template<typename EndpointConfigurationT = EndpointConfiguration>
141 void SetEndpointConfiguration(EndpointConfigurationT&& value) { m_endpointConfigurationHasBeenSet = true; m_endpointConfiguration = std::forward<EndpointConfigurationT>(value); }
142 template<typename EndpointConfigurationT = EndpointConfiguration>
143 CreateRestApiRequest& WithEndpointConfiguration(EndpointConfigurationT&& value) { SetEndpointConfiguration(std::forward<EndpointConfigurationT>(value)); return *this;}
145
147
151 inline const Aws::String& GetPolicy() const { return m_policy; }
152 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
153 template<typename PolicyT = Aws::String>
154 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet = true; m_policy = std::forward<PolicyT>(value); }
155 template<typename PolicyT = Aws::String>
156 CreateRestApiRequest& WithPolicy(PolicyT&& value) { SetPolicy(std::forward<PolicyT>(value)); return *this;}
158
160
165 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
166 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
167 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
168 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
169 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
170 CreateRestApiRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
171 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
172 CreateRestApiRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
173 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
174 }
176
178
185 inline bool GetDisableExecuteApiEndpoint() const { return m_disableExecuteApiEndpoint; }
186 inline bool DisableExecuteApiEndpointHasBeenSet() const { return m_disableExecuteApiEndpointHasBeenSet; }
187 inline void SetDisableExecuteApiEndpoint(bool value) { m_disableExecuteApiEndpointHasBeenSet = true; m_disableExecuteApiEndpoint = value; }
190 private:
191
192 Aws::String m_name;
193 bool m_nameHasBeenSet = false;
194
195 Aws::String m_description;
196 bool m_descriptionHasBeenSet = false;
197
198 Aws::String m_version;
199 bool m_versionHasBeenSet = false;
200
201 Aws::String m_cloneFrom;
202 bool m_cloneFromHasBeenSet = false;
203
204 Aws::Vector<Aws::String> m_binaryMediaTypes;
205 bool m_binaryMediaTypesHasBeenSet = false;
206
207 int m_minimumCompressionSize{0};
208 bool m_minimumCompressionSizeHasBeenSet = false;
209
211 bool m_apiKeySourceHasBeenSet = false;
212
213 EndpointConfiguration m_endpointConfiguration;
214 bool m_endpointConfigurationHasBeenSet = false;
215
216 Aws::String m_policy;
217 bool m_policyHasBeenSet = false;
218
220 bool m_tagsHasBeenSet = false;
221
222 bool m_disableExecuteApiEndpoint{false};
223 bool m_disableExecuteApiEndpointHasBeenSet = false;
224 };
225
226} // namespace Model
227} // namespace APIGateway
228} // namespace Aws
void SetBinaryMediaTypes(BinaryMediaTypesT &&value)
AWS_APIGATEWAY_API CreateRestApiRequest()=default
CreateRestApiRequest & WithVersion(VersionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateRestApiRequest & WithPolicy(PolicyT &&value)
virtual const char * GetServiceRequestName() const override
CreateRestApiRequest & AddBinaryMediaTypes(BinaryMediaTypesT &&value)
void SetEndpointConfiguration(EndpointConfigurationT &&value)
const Aws::Vector< Aws::String > & GetBinaryMediaTypes() const
CreateRestApiRequest & WithCloneFrom(CloneFromT &&value)
CreateRestApiRequest & WithTags(TagsT &&value)
CreateRestApiRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateRestApiRequest & WithDisableExecuteApiEndpoint(bool value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
CreateRestApiRequest & WithEndpointConfiguration(EndpointConfigurationT &&value)
CreateRestApiRequest & WithApiKeySource(ApiKeySourceType value)
CreateRestApiRequest & WithMinimumCompressionSize(int value)
CreateRestApiRequest & WithDescription(DescriptionT &&value)
CreateRestApiRequest & WithName(NameT &&value)
CreateRestApiRequest & WithBinaryMediaTypes(BinaryMediaTypesT &&value)
const EndpointConfiguration & GetEndpointConfiguration() const
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