AWS SDK for C++  1.9.20
AWS SDK for C++
CreateLoadBalancerRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Lightsail
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateLoadBalancer"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetLoadBalancerName() const{ return m_loadBalancerName; }
44 
48  inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; }
49 
53  inline void SetLoadBalancerName(const Aws::String& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = value; }
54 
58  inline void SetLoadBalancerName(Aws::String&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::move(value); }
59 
63  inline void SetLoadBalancerName(const char* value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName.assign(value); }
64 
68  inline CreateLoadBalancerRequest& WithLoadBalancerName(const Aws::String& value) { SetLoadBalancerName(value); return *this;}
69 
73  inline CreateLoadBalancerRequest& WithLoadBalancerName(Aws::String&& value) { SetLoadBalancerName(std::move(value)); return *this;}
74 
78  inline CreateLoadBalancerRequest& WithLoadBalancerName(const char* value) { SetLoadBalancerName(value); return *this;}
79 
80 
84  inline int GetInstancePort() const{ return m_instancePort; }
85 
89  inline bool InstancePortHasBeenSet() const { return m_instancePortHasBeenSet; }
90 
94  inline void SetInstancePort(int value) { m_instancePortHasBeenSet = true; m_instancePort = value; }
95 
99  inline CreateLoadBalancerRequest& WithInstancePort(int value) { SetInstancePort(value); return *this;}
100 
101 
109  inline const Aws::String& GetHealthCheckPath() const{ return m_healthCheckPath; }
110 
118  inline bool HealthCheckPathHasBeenSet() const { return m_healthCheckPathHasBeenSet; }
119 
127  inline void SetHealthCheckPath(const Aws::String& value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath = value; }
128 
136  inline void SetHealthCheckPath(Aws::String&& value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath = std::move(value); }
137 
145  inline void SetHealthCheckPath(const char* value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath.assign(value); }
146 
154  inline CreateLoadBalancerRequest& WithHealthCheckPath(const Aws::String& value) { SetHealthCheckPath(value); return *this;}
155 
163  inline CreateLoadBalancerRequest& WithHealthCheckPath(Aws::String&& value) { SetHealthCheckPath(std::move(value)); return *this;}
164 
172  inline CreateLoadBalancerRequest& WithHealthCheckPath(const char* value) { SetHealthCheckPath(value); return *this;}
173 
174 
180  inline const Aws::String& GetCertificateName() const{ return m_certificateName; }
181 
187  inline bool CertificateNameHasBeenSet() const { return m_certificateNameHasBeenSet; }
188 
194  inline void SetCertificateName(const Aws::String& value) { m_certificateNameHasBeenSet = true; m_certificateName = value; }
195 
201  inline void SetCertificateName(Aws::String&& value) { m_certificateNameHasBeenSet = true; m_certificateName = std::move(value); }
202 
208  inline void SetCertificateName(const char* value) { m_certificateNameHasBeenSet = true; m_certificateName.assign(value); }
209 
215  inline CreateLoadBalancerRequest& WithCertificateName(const Aws::String& value) { SetCertificateName(value); return *this;}
216 
222  inline CreateLoadBalancerRequest& WithCertificateName(Aws::String&& value) { SetCertificateName(std::move(value)); return *this;}
223 
229  inline CreateLoadBalancerRequest& WithCertificateName(const char* value) { SetCertificateName(value); return *this;}
230 
231 
238  inline const Aws::String& GetCertificateDomainName() const{ return m_certificateDomainName; }
239 
246  inline bool CertificateDomainNameHasBeenSet() const { return m_certificateDomainNameHasBeenSet; }
247 
254  inline void SetCertificateDomainName(const Aws::String& value) { m_certificateDomainNameHasBeenSet = true; m_certificateDomainName = value; }
255 
262  inline void SetCertificateDomainName(Aws::String&& value) { m_certificateDomainNameHasBeenSet = true; m_certificateDomainName = std::move(value); }
263 
270  inline void SetCertificateDomainName(const char* value) { m_certificateDomainNameHasBeenSet = true; m_certificateDomainName.assign(value); }
271 
278  inline CreateLoadBalancerRequest& WithCertificateDomainName(const Aws::String& value) { SetCertificateDomainName(value); return *this;}
279 
286  inline CreateLoadBalancerRequest& WithCertificateDomainName(Aws::String&& value) { SetCertificateDomainName(std::move(value)); return *this;}
287 
294  inline CreateLoadBalancerRequest& WithCertificateDomainName(const char* value) { SetCertificateDomainName(value); return *this;}
295 
296 
302  inline const Aws::Vector<Aws::String>& GetCertificateAlternativeNames() const{ return m_certificateAlternativeNames; }
303 
309  inline bool CertificateAlternativeNamesHasBeenSet() const { return m_certificateAlternativeNamesHasBeenSet; }
310 
316  inline void SetCertificateAlternativeNames(const Aws::Vector<Aws::String>& value) { m_certificateAlternativeNamesHasBeenSet = true; m_certificateAlternativeNames = value; }
317 
323  inline void SetCertificateAlternativeNames(Aws::Vector<Aws::String>&& value) { m_certificateAlternativeNamesHasBeenSet = true; m_certificateAlternativeNames = std::move(value); }
324 
330  inline CreateLoadBalancerRequest& WithCertificateAlternativeNames(const Aws::Vector<Aws::String>& value) { SetCertificateAlternativeNames(value); return *this;}
331 
337  inline CreateLoadBalancerRequest& WithCertificateAlternativeNames(Aws::Vector<Aws::String>&& value) { SetCertificateAlternativeNames(std::move(value)); return *this;}
338 
344  inline CreateLoadBalancerRequest& AddCertificateAlternativeNames(const Aws::String& value) { m_certificateAlternativeNamesHasBeenSet = true; m_certificateAlternativeNames.push_back(value); return *this; }
345 
351  inline CreateLoadBalancerRequest& AddCertificateAlternativeNames(Aws::String&& value) { m_certificateAlternativeNamesHasBeenSet = true; m_certificateAlternativeNames.push_back(std::move(value)); return *this; }
352 
358  inline CreateLoadBalancerRequest& AddCertificateAlternativeNames(const char* value) { m_certificateAlternativeNamesHasBeenSet = true; m_certificateAlternativeNames.push_back(value); return *this; }
359 
360 
366  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
367 
373  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
374 
380  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
381 
387  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
388 
394  inline CreateLoadBalancerRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
395 
401  inline CreateLoadBalancerRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
402 
408  inline CreateLoadBalancerRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
409 
415  inline CreateLoadBalancerRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
416 
417 
423  inline const IpAddressType& GetIpAddressType() const{ return m_ipAddressType; }
424 
430  inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
431 
437  inline void SetIpAddressType(const IpAddressType& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
438 
444  inline void SetIpAddressType(IpAddressType&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::move(value); }
445 
451  inline CreateLoadBalancerRequest& WithIpAddressType(const IpAddressType& value) { SetIpAddressType(value); return *this;}
452 
458  inline CreateLoadBalancerRequest& WithIpAddressType(IpAddressType&& value) { SetIpAddressType(std::move(value)); return *this;}
459 
460  private:
461 
462  Aws::String m_loadBalancerName;
463  bool m_loadBalancerNameHasBeenSet;
464 
465  int m_instancePort;
466  bool m_instancePortHasBeenSet;
467 
468  Aws::String m_healthCheckPath;
469  bool m_healthCheckPathHasBeenSet;
470 
471  Aws::String m_certificateName;
472  bool m_certificateNameHasBeenSet;
473 
474  Aws::String m_certificateDomainName;
475  bool m_certificateDomainNameHasBeenSet;
476 
477  Aws::Vector<Aws::String> m_certificateAlternativeNames;
478  bool m_certificateAlternativeNamesHasBeenSet;
479 
480  Aws::Vector<Tag> m_tags;
481  bool m_tagsHasBeenSet;
482 
483  IpAddressType m_ipAddressType;
484  bool m_ipAddressTypeHasBeenSet;
485  };
486 
487 } // namespace Model
488 } // namespace Lightsail
489 } // namespace Aws
Aws::Lightsail::Model::IpAddressType
IpAddressType
Definition: IpAddressType.h:17
Aws::Lightsail::Model::CreateLoadBalancerRequest::WithTags
CreateLoadBalancerRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateLoadBalancerRequest.h:401
Aws::Lightsail::Model::CreateLoadBalancerRequest::GetHealthCheckPath
const Aws::String & GetHealthCheckPath() const
Definition: CreateLoadBalancerRequest.h:109
Aws::Lightsail::Model::CreateLoadBalancerRequest::WithInstancePort
CreateLoadBalancerRequest & WithInstancePort(int value)
Definition: CreateLoadBalancerRequest.h:99
Aws::Lightsail::Model::CreateLoadBalancerRequest::GetInstancePort
int GetInstancePort() const
Definition: CreateLoadBalancerRequest.h:84
Aws::Lightsail::Model::CreateLoadBalancerRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateLoadBalancerRequest.h:366
Aws::Lightsail::Model::CreateLoadBalancerRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::CreateLoadBalancerRequest::WithHealthCheckPath
CreateLoadBalancerRequest & WithHealthCheckPath(Aws::String &&value)
Definition: CreateLoadBalancerRequest.h:163
Aws::Lightsail::Model::CreateLoadBalancerRequest::LoadBalancerNameHasBeenSet
bool LoadBalancerNameHasBeenSet() const
Definition: CreateLoadBalancerRequest.h:48
Aws::Lightsail::Model::CreateLoadBalancerRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateLoadBalancerRequest.h:380
Aws::Lightsail::Model::CreateLoadBalancerRequest::SetCertificateAlternativeNames
void SetCertificateAlternativeNames(const Aws::Vector< Aws::String > &value)
Definition: CreateLoadBalancerRequest.h:316
Aws::Lightsail::Model::CreateLoadBalancerRequest::WithLoadBalancerName
CreateLoadBalancerRequest & WithLoadBalancerName(const Aws::String &value)
Definition: CreateLoadBalancerRequest.h:68
Aws::Lightsail::Model::CreateLoadBalancerRequest::SetLoadBalancerName
void SetLoadBalancerName(Aws::String &&value)
Definition: CreateLoadBalancerRequest.h:58
Aws::Lightsail::Model::CreateLoadBalancerRequest::SetCertificateDomainName
void SetCertificateDomainName(const Aws::String &value)
Definition: CreateLoadBalancerRequest.h:254
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::CreateLoadBalancerRequest::WithCertificateName
CreateLoadBalancerRequest & WithCertificateName(const char *value)
Definition: CreateLoadBalancerRequest.h:229
Aws::Lightsail::Model::CreateLoadBalancerRequest::WithHealthCheckPath
CreateLoadBalancerRequest & WithHealthCheckPath(const char *value)
Definition: CreateLoadBalancerRequest.h:172
Aws::Lightsail::Model::CreateLoadBalancerRequest::SetCertificateDomainName
void SetCertificateDomainName(Aws::String &&value)
Definition: CreateLoadBalancerRequest.h:262
Aws::Lightsail::Model::CreateLoadBalancerRequest::CertificateNameHasBeenSet
bool CertificateNameHasBeenSet() const
Definition: CreateLoadBalancerRequest.h:187
Aws::Lightsail::Model::CreateLoadBalancerRequest::SetHealthCheckPath
void SetHealthCheckPath(const Aws::String &value)
Definition: CreateLoadBalancerRequest.h:127
Aws::Lightsail::Model::CreateLoadBalancerRequest::SetCertificateName
void SetCertificateName(const Aws::String &value)
Definition: CreateLoadBalancerRequest.h:194
AWSVector.h
LightsailRequest.h
Aws::Lightsail::Model::CreateLoadBalancerRequest::WithTags
CreateLoadBalancerRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateLoadBalancerRequest.h:394
Aws::Lightsail::Model::CreateLoadBalancerRequest::CertificateDomainNameHasBeenSet
bool CertificateDomainNameHasBeenSet() const
Definition: CreateLoadBalancerRequest.h:246
Aws::Lightsail::Model::CreateLoadBalancerRequest::WithCertificateAlternativeNames
CreateLoadBalancerRequest & WithCertificateAlternativeNames(Aws::Vector< Aws::String > &&value)
Definition: CreateLoadBalancerRequest.h:337
Aws::Lightsail::Model::CreateLoadBalancerRequest::SetHealthCheckPath
void SetHealthCheckPath(Aws::String &&value)
Definition: CreateLoadBalancerRequest.h:136
Aws::Lightsail::Model::CreateLoadBalancerRequest::SetCertificateName
void SetCertificateName(const char *value)
Definition: CreateLoadBalancerRequest.h:208
Aws::Lightsail::Model::CreateLoadBalancerRequest::WithCertificateAlternativeNames
CreateLoadBalancerRequest & WithCertificateAlternativeNames(const Aws::Vector< Aws::String > &value)
Definition: CreateLoadBalancerRequest.h:330
Aws::Lightsail::Model::CreateLoadBalancerRequest::CertificateAlternativeNamesHasBeenSet
bool CertificateAlternativeNamesHasBeenSet() const
Definition: CreateLoadBalancerRequest.h:309
Aws::Lightsail::Model::CreateLoadBalancerRequest::SetCertificateName
void SetCertificateName(Aws::String &&value)
Definition: CreateLoadBalancerRequest.h:201
Aws::Lightsail::Model::CreateLoadBalancerRequest::WithIpAddressType
CreateLoadBalancerRequest & WithIpAddressType(IpAddressType &&value)
Definition: CreateLoadBalancerRequest.h:458
Aws::Lightsail::Model::CreateLoadBalancerRequest::AddCertificateAlternativeNames
CreateLoadBalancerRequest & AddCertificateAlternativeNames(Aws::String &&value)
Definition: CreateLoadBalancerRequest.h:351
Tag.h
Aws::Lightsail::Model::CreateLoadBalancerRequest::WithCertificateName
CreateLoadBalancerRequest & WithCertificateName(Aws::String &&value)
Definition: CreateLoadBalancerRequest.h:222
Aws::Lightsail::Model::CreateLoadBalancerRequest::SetLoadBalancerName
void SetLoadBalancerName(const Aws::String &value)
Definition: CreateLoadBalancerRequest.h:53
Aws::Lightsail::Model::CreateLoadBalancerRequest::WithLoadBalancerName
CreateLoadBalancerRequest & WithLoadBalancerName(Aws::String &&value)
Definition: CreateLoadBalancerRequest.h:73
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::CreateLoadBalancerRequest::GetCertificateAlternativeNames
const Aws::Vector< Aws::String > & GetCertificateAlternativeNames() const
Definition: CreateLoadBalancerRequest.h:302
Aws::Lightsail::Model::CreateLoadBalancerRequest
Definition: CreateLoadBalancerRequest.h:25
Aws::Lightsail::Model::Tag
Definition: Tag.h:35
AWSString.h
Aws::Lightsail::Model::CreateLoadBalancerRequest::WithIpAddressType
CreateLoadBalancerRequest & WithIpAddressType(const IpAddressType &value)
Definition: CreateLoadBalancerRequest.h:451
Aws::Lightsail::Model::CreateLoadBalancerRequest::GetCertificateName
const Aws::String & GetCertificateName() const
Definition: CreateLoadBalancerRequest.h:180
Aws::Lightsail::Model::CreateLoadBalancerRequest::SetIpAddressType
void SetIpAddressType(IpAddressType &&value)
Definition: CreateLoadBalancerRequest.h:444
Aws::Lightsail::Model::CreateLoadBalancerRequest::AddCertificateAlternativeNames
CreateLoadBalancerRequest & AddCertificateAlternativeNames(const char *value)
Definition: CreateLoadBalancerRequest.h:358
Aws::Lightsail::Model::CreateLoadBalancerRequest::SetCertificateDomainName
void SetCertificateDomainName(const char *value)
Definition: CreateLoadBalancerRequest.h:270
Aws::Lightsail::Model::CreateLoadBalancerRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateLoadBalancerRequest.h:33
Lightsail_EXPORTS.h
Aws::Lightsail::Model::CreateLoadBalancerRequest::GetIpAddressType
const IpAddressType & GetIpAddressType() const
Definition: CreateLoadBalancerRequest.h:423
Aws::Lightsail::Model::CreateLoadBalancerRequest::AddCertificateAlternativeNames
CreateLoadBalancerRequest & AddCertificateAlternativeNames(const Aws::String &value)
Definition: CreateLoadBalancerRequest.h:344
Aws::Lightsail::Model::CreateLoadBalancerRequest::WithCertificateDomainName
CreateLoadBalancerRequest & WithCertificateDomainName(const Aws::String &value)
Definition: CreateLoadBalancerRequest.h:278
Aws::Lightsail::Model::CreateLoadBalancerRequest::AddTags
CreateLoadBalancerRequest & AddTags(Tag &&value)
Definition: CreateLoadBalancerRequest.h:415
Aws::Lightsail::Model::CreateLoadBalancerRequest::SetInstancePort
void SetInstancePort(int value)
Definition: CreateLoadBalancerRequest.h:94
Aws::Lightsail::Model::CreateLoadBalancerRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::CreateLoadBalancerRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateLoadBalancerRequest.h:373
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::CreateLoadBalancerRequest::SetLoadBalancerName
void SetLoadBalancerName(const char *value)
Definition: CreateLoadBalancerRequest.h:63
Aws::Lightsail::Model::CreateLoadBalancerRequest::WithCertificateDomainName
CreateLoadBalancerRequest & WithCertificateDomainName(const char *value)
Definition: CreateLoadBalancerRequest.h:294
Aws::Lightsail::Model::CreateLoadBalancerRequest::SetIpAddressType
void SetIpAddressType(const IpAddressType &value)
Definition: CreateLoadBalancerRequest.h:437
Aws::Lightsail::Model::CreateLoadBalancerRequest::HealthCheckPathHasBeenSet
bool HealthCheckPathHasBeenSet() const
Definition: CreateLoadBalancerRequest.h:118
Aws::Lightsail::Model::CreateLoadBalancerRequest::GetLoadBalancerName
const Aws::String & GetLoadBalancerName() const
Definition: CreateLoadBalancerRequest.h:43
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::CreateLoadBalancerRequest::IpAddressTypeHasBeenSet
bool IpAddressTypeHasBeenSet() const
Definition: CreateLoadBalancerRequest.h:430
Aws::Lightsail::Model::CreateLoadBalancerRequest::CreateLoadBalancerRequest
CreateLoadBalancerRequest()
Aws::Lightsail::Model::CreateLoadBalancerRequest::AddTags
CreateLoadBalancerRequest & AddTags(const Tag &value)
Definition: CreateLoadBalancerRequest.h:408
IpAddressType.h
Aws::Lightsail::Model::CreateLoadBalancerRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateLoadBalancerRequest.h:387
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::CreateLoadBalancerRequest::WithCertificateDomainName
CreateLoadBalancerRequest & WithCertificateDomainName(Aws::String &&value)
Definition: CreateLoadBalancerRequest.h:286
Aws::Lightsail::Model::CreateLoadBalancerRequest::InstancePortHasBeenSet
bool InstancePortHasBeenSet() const
Definition: CreateLoadBalancerRequest.h:89
Aws::Lightsail::Model::CreateLoadBalancerRequest::WithCertificateName
CreateLoadBalancerRequest & WithCertificateName(const Aws::String &value)
Definition: CreateLoadBalancerRequest.h:215
Aws::Lightsail::Model::CreateLoadBalancerRequest::WithHealthCheckPath
CreateLoadBalancerRequest & WithHealthCheckPath(const Aws::String &value)
Definition: CreateLoadBalancerRequest.h:154
Aws::Lightsail::Model::CreateLoadBalancerRequest::GetCertificateDomainName
const Aws::String & GetCertificateDomainName() const
Definition: CreateLoadBalancerRequest.h:238
Aws::Lightsail::Model::CreateLoadBalancerRequest::SetCertificateAlternativeNames
void SetCertificateAlternativeNames(Aws::Vector< Aws::String > &&value)
Definition: CreateLoadBalancerRequest.h:323
Aws::Lightsail::Model::CreateLoadBalancerRequest::SetHealthCheckPath
void SetHealthCheckPath(const char *value)
Definition: CreateLoadBalancerRequest.h:145
Aws::Lightsail::Model::CreateLoadBalancerRequest::WithLoadBalancerName
CreateLoadBalancerRequest & WithLoadBalancerName(const char *value)
Definition: CreateLoadBalancerRequest.h:78