AWS SDK for C++  1.9.40
AWS SDK for C++
ModifyListenerRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace ElasticLoadBalancingv2
19 {
20 namespace Model
21 {
22 
26  {
27  public:
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 "ModifyListener"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
46  inline const Aws::String& GetListenerArn() const{ return m_listenerArn; }
47 
51  inline bool ListenerArnHasBeenSet() const { return m_listenerArnHasBeenSet; }
52 
56  inline void SetListenerArn(const Aws::String& value) { m_listenerArnHasBeenSet = true; m_listenerArn = value; }
57 
61  inline void SetListenerArn(Aws::String&& value) { m_listenerArnHasBeenSet = true; m_listenerArn = std::move(value); }
62 
66  inline void SetListenerArn(const char* value) { m_listenerArnHasBeenSet = true; m_listenerArn.assign(value); }
67 
71  inline ModifyListenerRequest& WithListenerArn(const Aws::String& value) { SetListenerArn(value); return *this;}
72 
76  inline ModifyListenerRequest& WithListenerArn(Aws::String&& value) { SetListenerArn(std::move(value)); return *this;}
77 
81  inline ModifyListenerRequest& WithListenerArn(const char* value) { SetListenerArn(value); return *this;}
82 
83 
88  inline int GetPort() const{ return m_port; }
89 
94  inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
95 
100  inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
101 
106  inline ModifyListenerRequest& WithPort(int value) { SetPort(value); return *this;}
107 
108 
116  inline const ProtocolEnum& GetProtocol() const{ return m_protocol; }
117 
125  inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
126 
134  inline void SetProtocol(const ProtocolEnum& value) { m_protocolHasBeenSet = true; m_protocol = value; }
135 
143  inline void SetProtocol(ProtocolEnum&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
144 
152  inline ModifyListenerRequest& WithProtocol(const ProtocolEnum& value) { SetProtocol(value); return *this;}
153 
161  inline ModifyListenerRequest& WithProtocol(ProtocolEnum&& value) { SetProtocol(std::move(value)); return *this;}
162 
163 
172  inline const Aws::String& GetSslPolicy() const{ return m_sslPolicy; }
173 
182  inline bool SslPolicyHasBeenSet() const { return m_sslPolicyHasBeenSet; }
183 
192  inline void SetSslPolicy(const Aws::String& value) { m_sslPolicyHasBeenSet = true; m_sslPolicy = value; }
193 
202  inline void SetSslPolicy(Aws::String&& value) { m_sslPolicyHasBeenSet = true; m_sslPolicy = std::move(value); }
203 
212  inline void SetSslPolicy(const char* value) { m_sslPolicyHasBeenSet = true; m_sslPolicy.assign(value); }
213 
222  inline ModifyListenerRequest& WithSslPolicy(const Aws::String& value) { SetSslPolicy(value); return *this;}
223 
232  inline ModifyListenerRequest& WithSslPolicy(Aws::String&& value) { SetSslPolicy(std::move(value)); return *this;}
233 
242  inline ModifyListenerRequest& WithSslPolicy(const char* value) { SetSslPolicy(value); return *this;}
243 
244 
250  inline const Aws::Vector<Certificate>& GetCertificates() const{ return m_certificates; }
251 
257  inline bool CertificatesHasBeenSet() const { return m_certificatesHasBeenSet; }
258 
264  inline void SetCertificates(const Aws::Vector<Certificate>& value) { m_certificatesHasBeenSet = true; m_certificates = value; }
265 
271  inline void SetCertificates(Aws::Vector<Certificate>&& value) { m_certificatesHasBeenSet = true; m_certificates = std::move(value); }
272 
278  inline ModifyListenerRequest& WithCertificates(const Aws::Vector<Certificate>& value) { SetCertificates(value); return *this;}
279 
285  inline ModifyListenerRequest& WithCertificates(Aws::Vector<Certificate>&& value) { SetCertificates(std::move(value)); return *this;}
286 
292  inline ModifyListenerRequest& AddCertificates(const Certificate& value) { m_certificatesHasBeenSet = true; m_certificates.push_back(value); return *this; }
293 
299  inline ModifyListenerRequest& AddCertificates(Certificate&& value) { m_certificatesHasBeenSet = true; m_certificates.push_back(std::move(value)); return *this; }
300 
301 
305  inline const Aws::Vector<Action>& GetDefaultActions() const{ return m_defaultActions; }
306 
310  inline bool DefaultActionsHasBeenSet() const { return m_defaultActionsHasBeenSet; }
311 
315  inline void SetDefaultActions(const Aws::Vector<Action>& value) { m_defaultActionsHasBeenSet = true; m_defaultActions = value; }
316 
320  inline void SetDefaultActions(Aws::Vector<Action>&& value) { m_defaultActionsHasBeenSet = true; m_defaultActions = std::move(value); }
321 
325  inline ModifyListenerRequest& WithDefaultActions(const Aws::Vector<Action>& value) { SetDefaultActions(value); return *this;}
326 
330  inline ModifyListenerRequest& WithDefaultActions(Aws::Vector<Action>&& value) { SetDefaultActions(std::move(value)); return *this;}
331 
335  inline ModifyListenerRequest& AddDefaultActions(const Action& value) { m_defaultActionsHasBeenSet = true; m_defaultActions.push_back(value); return *this; }
336 
340  inline ModifyListenerRequest& AddDefaultActions(Action&& value) { m_defaultActionsHasBeenSet = true; m_defaultActions.push_back(std::move(value)); return *this; }
341 
342 
353  inline const Aws::Vector<Aws::String>& GetAlpnPolicy() const{ return m_alpnPolicy; }
354 
365  inline bool AlpnPolicyHasBeenSet() const { return m_alpnPolicyHasBeenSet; }
366 
377  inline void SetAlpnPolicy(const Aws::Vector<Aws::String>& value) { m_alpnPolicyHasBeenSet = true; m_alpnPolicy = value; }
378 
389  inline void SetAlpnPolicy(Aws::Vector<Aws::String>&& value) { m_alpnPolicyHasBeenSet = true; m_alpnPolicy = std::move(value); }
390 
401  inline ModifyListenerRequest& WithAlpnPolicy(const Aws::Vector<Aws::String>& value) { SetAlpnPolicy(value); return *this;}
402 
413  inline ModifyListenerRequest& WithAlpnPolicy(Aws::Vector<Aws::String>&& value) { SetAlpnPolicy(std::move(value)); return *this;}
414 
425  inline ModifyListenerRequest& AddAlpnPolicy(const Aws::String& value) { m_alpnPolicyHasBeenSet = true; m_alpnPolicy.push_back(value); return *this; }
426 
437  inline ModifyListenerRequest& AddAlpnPolicy(Aws::String&& value) { m_alpnPolicyHasBeenSet = true; m_alpnPolicy.push_back(std::move(value)); return *this; }
438 
449  inline ModifyListenerRequest& AddAlpnPolicy(const char* value) { m_alpnPolicyHasBeenSet = true; m_alpnPolicy.push_back(value); return *this; }
450 
451  private:
452 
453  Aws::String m_listenerArn;
454  bool m_listenerArnHasBeenSet;
455 
456  int m_port;
457  bool m_portHasBeenSet;
458 
459  ProtocolEnum m_protocol;
460  bool m_protocolHasBeenSet;
461 
462  Aws::String m_sslPolicy;
463  bool m_sslPolicyHasBeenSet;
464 
465  Aws::Vector<Certificate> m_certificates;
466  bool m_certificatesHasBeenSet;
467 
468  Aws::Vector<Action> m_defaultActions;
469  bool m_defaultActionsHasBeenSet;
470 
471  Aws::Vector<Aws::String> m_alpnPolicy;
472  bool m_alpnPolicyHasBeenSet;
473  };
474 
475 } // namespace Model
476 } // namespace ElasticLoadBalancingv2
477 } // namespace Aws
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::AddAlpnPolicy
ModifyListenerRequest & AddAlpnPolicy(const char *value)
Definition: ModifyListenerRequest.h:449
Aws::ElasticLoadBalancingv2::ElasticLoadBalancingv2Request
Definition: ElasticLoadBalancingv2Request.h:17
Certificate.h
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::GetPort
int GetPort() const
Definition: ModifyListenerRequest.h:88
Aws::Http::URI
Definition: URI.h:32
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::GetProtocol
const ProtocolEnum & GetProtocol() const
Definition: ModifyListenerRequest.h:116
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::GetAlpnPolicy
const Aws::Vector< Aws::String > & GetAlpnPolicy() const
Definition: ModifyListenerRequest.h:353
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::AlpnPolicyHasBeenSet
bool AlpnPolicyHasBeenSet() const
Definition: ModifyListenerRequest.h:365
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::WithProtocol
ModifyListenerRequest & WithProtocol(ProtocolEnum &&value)
Definition: ModifyListenerRequest.h:161
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::WithListenerArn
ModifyListenerRequest & WithListenerArn(const char *value)
Definition: ModifyListenerRequest.h:81
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::SetSslPolicy
void SetSslPolicy(const char *value)
Definition: ModifyListenerRequest.h:212
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::SetDefaultActions
void SetDefaultActions(Aws::Vector< Action > &&value)
Definition: ModifyListenerRequest.h:320
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::SetSslPolicy
void SetSslPolicy(Aws::String &&value)
Definition: ModifyListenerRequest.h:202
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::AddDefaultActions
ModifyListenerRequest & AddDefaultActions(Action &&value)
Definition: ModifyListenerRequest.h:340
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::SslPolicyHasBeenSet
bool SslPolicyHasBeenSet() const
Definition: ModifyListenerRequest.h:182
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::SetCertificates
void SetCertificates(const Aws::Vector< Certificate > &value)
Definition: ModifyListenerRequest.h:264
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::SetProtocol
void SetProtocol(const ProtocolEnum &value)
Definition: ModifyListenerRequest.h:134
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::SetAlpnPolicy
void SetAlpnPolicy(Aws::Vector< Aws::String > &&value)
Definition: ModifyListenerRequest.h:389
Aws::ElasticLoadBalancingv2::Model::Action
Definition: Action.h:41
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::WithDefaultActions
ModifyListenerRequest & WithDefaultActions(const Aws::Vector< Action > &value)
Definition: ModifyListenerRequest.h:325
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::WithDefaultActions
ModifyListenerRequest & WithDefaultActions(Aws::Vector< Action > &&value)
Definition: ModifyListenerRequest.h:330
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::ModifyListenerRequest
ModifyListenerRequest()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::ProtocolHasBeenSet
bool ProtocolHasBeenSet() const
Definition: ModifyListenerRequest.h:125
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::WithCertificates
ModifyListenerRequest & WithCertificates(const Aws::Vector< Certificate > &value)
Definition: ModifyListenerRequest.h:278
Aws::ElasticLoadBalancingv2::Model::ProtocolEnum
ProtocolEnum
Definition: ProtocolEnum.h:17
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::DefaultActionsHasBeenSet
bool DefaultActionsHasBeenSet() const
Definition: ModifyListenerRequest.h:310
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::WithAlpnPolicy
ModifyListenerRequest & WithAlpnPolicy(const Aws::Vector< Aws::String > &value)
Definition: ModifyListenerRequest.h:401
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::GetSslPolicy
const Aws::String & GetSslPolicy() const
Definition: ModifyListenerRequest.h:172
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::WithAlpnPolicy
ModifyListenerRequest & WithAlpnPolicy(Aws::Vector< Aws::String > &&value)
Definition: ModifyListenerRequest.h:413
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::SetListenerArn
void SetListenerArn(const char *value)
Definition: ModifyListenerRequest.h:66
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::AddCertificates
ModifyListenerRequest & AddCertificates(Certificate &&value)
Definition: ModifyListenerRequest.h:299
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::AddDefaultActions
ModifyListenerRequest & AddDefaultActions(const Action &value)
Definition: ModifyListenerRequest.h:335
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::CertificatesHasBeenSet
bool CertificatesHasBeenSet() const
Definition: ModifyListenerRequest.h:257
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::WithSslPolicy
ModifyListenerRequest & WithSslPolicy(Aws::String &&value)
Definition: ModifyListenerRequest.h:232
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::SetListenerArn
void SetListenerArn(const Aws::String &value)
Definition: ModifyListenerRequest.h:56
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::WithListenerArn
ModifyListenerRequest & WithListenerArn(const Aws::String &value)
Definition: ModifyListenerRequest.h:71
AWSString.h
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::SetCertificates
void SetCertificates(Aws::Vector< Certificate > &&value)
Definition: ModifyListenerRequest.h:271
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::WithSslPolicy
ModifyListenerRequest & WithSslPolicy(const Aws::String &value)
Definition: ModifyListenerRequest.h:222
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::SetDefaultActions
void SetDefaultActions(const Aws::Vector< Action > &value)
Definition: ModifyListenerRequest.h:315
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::SetAlpnPolicy
void SetAlpnPolicy(const Aws::Vector< Aws::String > &value)
Definition: ModifyListenerRequest.h:377
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::ListenerArnHasBeenSet
bool ListenerArnHasBeenSet() const
Definition: ModifyListenerRequest.h:51
ElasticLoadBalancingv2_EXPORTS.h
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::WithPort
ModifyListenerRequest & WithPort(int value)
Definition: ModifyListenerRequest.h:106
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::WithSslPolicy
ModifyListenerRequest & WithSslPolicy(const char *value)
Definition: ModifyListenerRequest.h:242
Aws::ElasticLoadBalancingv2::Model::Certificate
Definition: Certificate.h:32
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::AddAlpnPolicy
ModifyListenerRequest & AddAlpnPolicy(const Aws::String &value)
Definition: ModifyListenerRequest.h:425
ElasticLoadBalancingv2Request.h
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::GetListenerArn
const Aws::String & GetListenerArn() const
Definition: ModifyListenerRequest.h:46
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyListenerRequest.h:34
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::SetListenerArn
void SetListenerArn(Aws::String &&value)
Definition: ModifyListenerRequest.h:61
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::WithListenerArn
ModifyListenerRequest & WithListenerArn(Aws::String &&value)
Definition: ModifyListenerRequest.h:76
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::AddCertificates
ModifyListenerRequest & AddCertificates(const Certificate &value)
Definition: ModifyListenerRequest.h:292
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::WithProtocol
ModifyListenerRequest & WithProtocol(const ProtocolEnum &value)
Definition: ModifyListenerRequest.h:152
Aws
Definition: AccessManagementClient.h:15
AWS_ELASTICLOADBALANCINGV2_API
#define AWS_ELASTICLOADBALANCINGV2_API
Definition: ElasticLoadBalancingv2_EXPORTS.h:28
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::SetSslPolicy
void SetSslPolicy(const Aws::String &value)
Definition: ModifyListenerRequest.h:192
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::GetCertificates
const Aws::Vector< Certificate > & GetCertificates() const
Definition: ModifyListenerRequest.h:250
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest
Definition: ModifyListenerRequest.h:26
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::SetProtocol
void SetProtocol(ProtocolEnum &&value)
Definition: ModifyListenerRequest.h:143
ProtocolEnum.h
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::WithCertificates
ModifyListenerRequest & WithCertificates(Aws::Vector< Certificate > &&value)
Definition: ModifyListenerRequest.h:285
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::SetPort
void SetPort(int value)
Definition: ModifyListenerRequest.h:100
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::PortHasBeenSet
bool PortHasBeenSet() const
Definition: ModifyListenerRequest.h:94
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::AddAlpnPolicy
ModifyListenerRequest & AddAlpnPolicy(Aws::String &&value)
Definition: ModifyListenerRequest.h:437
Aws::ElasticLoadBalancingv2::Model::ModifyListenerRequest::GetDefaultActions
const Aws::Vector< Action > & GetDefaultActions() const
Definition: ModifyListenerRequest.h:305
Action.h