AWS SDK for C++

AWS SDK for C++ Version 1.11.938

Loading...
Searching...
No Matches
CreateProxyRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elb-proxy/ELBProxyRequest.h>
12#include <aws/elb-proxy/ELBProxy_EXPORTS.h>
13#include <aws/elb-proxy/model/Attribute.h>
14#include <aws/elb-proxy/model/ProxyConfiguration.h>
15#include <aws/elb-proxy/model/ProxyNetworkUserConfiguration.h>
16#include <aws/elb-proxy/model/ProxyType.h>
17
18#include <utility>
19
20namespace Aws {
21namespace ELBProxy {
22namespace Model {
23
27 public:
28 AWS_ELBPROXY_API CreateProxyRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateProxy"; }
35
36 AWS_ELBPROXY_API Aws::String SerializePayload() const override;
37
39
41
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template <typename NameT = Aws::String>
49 void SetName(NameT&& value) {
50 m_nameHasBeenSet = true;
51 m_name = std::forward<NameT>(value);
52 }
53 template <typename NameT = Aws::String>
54 CreateProxyRequest& WithName(NameT&& value) {
55 SetName(std::forward<NameT>(value));
56 return *this;
57 }
59
61
64 inline ProxyType GetType() const { return m_type; }
65 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
66 inline void SetType(ProxyType value) {
67 m_typeHasBeenSet = true;
68 m_type = value;
69 }
71 SetType(value);
72 return *this;
73 }
75
77
80 inline const Aws::String& GetProxyVersion() const { return m_proxyVersion; }
81 inline bool ProxyVersionHasBeenSet() const { return m_proxyVersionHasBeenSet; }
82 template <typename ProxyVersionT = Aws::String>
83 void SetProxyVersion(ProxyVersionT&& value) {
84 m_proxyVersionHasBeenSet = true;
85 m_proxyVersion = std::forward<ProxyVersionT>(value);
86 }
87 template <typename ProxyVersionT = Aws::String>
88 CreateProxyRequest& WithProxyVersion(ProxyVersionT&& value) {
89 SetProxyVersion(std::forward<ProxyVersionT>(value));
90 return *this;
91 }
93
95
101 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
102 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
103 template <typename RoleArnT = Aws::String>
104 void SetRoleArn(RoleArnT&& value) {
105 m_roleArnHasBeenSet = true;
106 m_roleArn = std::forward<RoleArnT>(value);
107 }
108 template <typename RoleArnT = Aws::String>
109 CreateProxyRequest& WithRoleArn(RoleArnT&& value) {
110 SetRoleArn(std::forward<RoleArnT>(value));
111 return *this;
112 }
114
116
119 inline const ProxyConfiguration& GetConfiguration() const { return m_configuration; }
120 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
121 template <typename ConfigurationT = ProxyConfiguration>
122 void SetConfiguration(ConfigurationT&& value) {
123 m_configurationHasBeenSet = true;
124 m_configuration = std::forward<ConfigurationT>(value);
125 }
126 template <typename ConfigurationT = ProxyConfiguration>
127 CreateProxyRequest& WithConfiguration(ConfigurationT&& value) {
128 SetConfiguration(std::forward<ConfigurationT>(value));
129 return *this;
130 }
132
134
137 inline const ProxyNetworkUserConfiguration& GetNetworkConfiguration() const { return m_networkConfiguration; }
138 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
139 template <typename NetworkConfigurationT = ProxyNetworkUserConfiguration>
140 void SetNetworkConfiguration(NetworkConfigurationT&& value) {
141 m_networkConfigurationHasBeenSet = true;
142 m_networkConfiguration = std::forward<NetworkConfigurationT>(value);
143 }
144 template <typename NetworkConfigurationT = ProxyNetworkUserConfiguration>
145 CreateProxyRequest& WithNetworkConfiguration(NetworkConfigurationT&& value) {
146 SetNetworkConfiguration(std::forward<NetworkConfigurationT>(value));
147 return *this;
148 }
150
152
156 inline const Aws::Vector<Attribute>& GetAttributes() const { return m_attributes; }
157 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
158 template <typename AttributesT = Aws::Vector<Attribute>>
159 void SetAttributes(AttributesT&& value) {
160 m_attributesHasBeenSet = true;
161 m_attributes = std::forward<AttributesT>(value);
162 }
163 template <typename AttributesT = Aws::Vector<Attribute>>
164 CreateProxyRequest& WithAttributes(AttributesT&& value) {
165 SetAttributes(std::forward<AttributesT>(value));
166 return *this;
167 }
168 template <typename AttributesT = Attribute>
169 CreateProxyRequest& AddAttributes(AttributesT&& value) {
170 m_attributesHasBeenSet = true;
171 m_attributes.emplace_back(std::forward<AttributesT>(value));
172 return *this;
173 }
175
177
182 inline const Aws::String& GetCustomerKmsKeyArn() const { return m_customerKmsKeyArn; }
183 inline bool CustomerKmsKeyArnHasBeenSet() const { return m_customerKmsKeyArnHasBeenSet; }
184 template <typename CustomerKmsKeyArnT = Aws::String>
185 void SetCustomerKmsKeyArn(CustomerKmsKeyArnT&& value) {
186 m_customerKmsKeyArnHasBeenSet = true;
187 m_customerKmsKeyArn = std::forward<CustomerKmsKeyArnT>(value);
188 }
189 template <typename CustomerKmsKeyArnT = Aws::String>
190 CreateProxyRequest& WithCustomerKmsKeyArn(CustomerKmsKeyArnT&& value) {
191 SetCustomerKmsKeyArn(std::forward<CustomerKmsKeyArnT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
201 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
202 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
203 void SetTags(TagsT&& value) {
204 m_tagsHasBeenSet = true;
205 m_tags = std::forward<TagsT>(value);
206 }
207 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
208 CreateProxyRequest& WithTags(TagsT&& value) {
209 SetTags(std::forward<TagsT>(value));
210 return *this;
211 }
212 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
213 CreateProxyRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
214 m_tagsHasBeenSet = true;
215 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
216 return *this;
217 }
219
221
225 inline const Aws::String& GetClientToken() const { return m_clientToken; }
226 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
227 template <typename ClientTokenT = Aws::String>
228 void SetClientToken(ClientTokenT&& value) {
229 m_clientTokenHasBeenSet = true;
230 m_clientToken = std::forward<ClientTokenT>(value);
231 }
232 template <typename ClientTokenT = Aws::String>
233 CreateProxyRequest& WithClientToken(ClientTokenT&& value) {
234 SetClientToken(std::forward<ClientTokenT>(value));
235 return *this;
236 }
238 private:
239 Aws::String m_name;
240
242
243 Aws::String m_proxyVersion;
244
245 Aws::String m_roleArn;
246
247 ProxyConfiguration m_configuration;
248
249 ProxyNetworkUserConfiguration m_networkConfiguration;
250
251 Aws::Vector<Attribute> m_attributes;
252
253 Aws::String m_customerKmsKeyArn;
254
256
258 bool m_nameHasBeenSet = false;
259 bool m_typeHasBeenSet = false;
260 bool m_proxyVersionHasBeenSet = false;
261 bool m_roleArnHasBeenSet = false;
262 bool m_configurationHasBeenSet = false;
263 bool m_networkConfigurationHasBeenSet = false;
264 bool m_attributesHasBeenSet = false;
265 bool m_customerKmsKeyArnHasBeenSet = false;
266 bool m_tagsHasBeenSet = false;
267 bool m_clientTokenHasBeenSet = true;
268};
269
270} // namespace Model
271} // namespace ELBProxy
272} // namespace Aws
CreateProxyRequest & WithProxyVersion(ProxyVersionT &&value)
CreateProxyRequest & WithTags(TagsT &&value)
const ProxyNetworkUserConfiguration & GetNetworkConfiguration() const
CreateProxyRequest & WithType(ProxyType value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_ELBPROXY_API CreateProxyRequest()=default
const Aws::Vector< Attribute > & GetAttributes() const
void SetNetworkConfiguration(NetworkConfigurationT &&value)
const Aws::String & GetCustomerKmsKeyArn() const
AWS_ELBPROXY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateProxyRequest & WithAttributes(AttributesT &&value)
CreateProxyRequest & AddAttributes(AttributesT &&value)
CreateProxyRequest & WithConfiguration(ConfigurationT &&value)
void SetConfiguration(ConfigurationT &&value)
const ProxyConfiguration & GetConfiguration() const
CreateProxyRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateProxyRequest & WithNetworkConfiguration(NetworkConfigurationT &&value)
CreateProxyRequest & WithName(NameT &&value)
CreateProxyRequest & WithRoleArn(RoleArnT &&value)
CreateProxyRequest & WithCustomerKmsKeyArn(CustomerKmsKeyArnT &&value)
AWS_ELBPROXY_API Aws::String SerializePayload() const override
const Aws::String & GetProxyVersion() const
void SetProxyVersion(ProxyVersionT &&value)
CreateProxyRequest & WithClientToken(ClientTokenT &&value)
void SetCustomerKmsKeyArn(CustomerKmsKeyArnT &&value)
virtual const char * GetServiceRequestName() const override
static Aws::Utils::UUID PseudoRandomUUID()
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
std::vector< T, Aws::Allocator< T > > Vector