AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateLoadBalancerRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lightsail/model/IpAddressType.h>
12#include <aws/lightsail/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Lightsail
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_LIGHTSAIL_API CreateLoadBalancerRequest();
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_LIGHTSAIL_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetLoadBalancerName() const{ return m_loadBalancerName; }
45 inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; }
46 inline void SetLoadBalancerName(const Aws::String& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = value; }
47 inline void SetLoadBalancerName(Aws::String&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::move(value); }
48 inline void SetLoadBalancerName(const char* value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName.assign(value); }
50 inline CreateLoadBalancerRequest& WithLoadBalancerName(Aws::String&& value) { SetLoadBalancerName(std::move(value)); return *this;}
51 inline CreateLoadBalancerRequest& WithLoadBalancerName(const char* value) { SetLoadBalancerName(value); return *this;}
53
55
58 inline int GetInstancePort() const{ return m_instancePort; }
59 inline bool InstancePortHasBeenSet() const { return m_instancePortHasBeenSet; }
60 inline void SetInstancePort(int value) { m_instancePortHasBeenSet = true; m_instancePort = value; }
61 inline CreateLoadBalancerRequest& WithInstancePort(int value) { SetInstancePort(value); return *this;}
63
65
72 inline const Aws::String& GetHealthCheckPath() const{ return m_healthCheckPath; }
73 inline bool HealthCheckPathHasBeenSet() const { return m_healthCheckPathHasBeenSet; }
74 inline void SetHealthCheckPath(const Aws::String& value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath = value; }
75 inline void SetHealthCheckPath(Aws::String&& value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath = std::move(value); }
76 inline void SetHealthCheckPath(const char* value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath.assign(value); }
77 inline CreateLoadBalancerRequest& WithHealthCheckPath(const Aws::String& value) { SetHealthCheckPath(value); return *this;}
78 inline CreateLoadBalancerRequest& WithHealthCheckPath(Aws::String&& value) { SetHealthCheckPath(std::move(value)); return *this;}
79 inline CreateLoadBalancerRequest& WithHealthCheckPath(const char* value) { SetHealthCheckPath(value); return *this;}
81
83
88 inline const Aws::String& GetCertificateName() const{ return m_certificateName; }
89 inline bool CertificateNameHasBeenSet() const { return m_certificateNameHasBeenSet; }
90 inline void SetCertificateName(const Aws::String& value) { m_certificateNameHasBeenSet = true; m_certificateName = value; }
91 inline void SetCertificateName(Aws::String&& value) { m_certificateNameHasBeenSet = true; m_certificateName = std::move(value); }
92 inline void SetCertificateName(const char* value) { m_certificateNameHasBeenSet = true; m_certificateName.assign(value); }
93 inline CreateLoadBalancerRequest& WithCertificateName(const Aws::String& value) { SetCertificateName(value); return *this;}
94 inline CreateLoadBalancerRequest& WithCertificateName(Aws::String&& value) { SetCertificateName(std::move(value)); return *this;}
95 inline CreateLoadBalancerRequest& WithCertificateName(const char* value) { SetCertificateName(value); return *this;}
97
99
105 inline const Aws::String& GetCertificateDomainName() const{ return m_certificateDomainName; }
106 inline bool CertificateDomainNameHasBeenSet() const { return m_certificateDomainNameHasBeenSet; }
107 inline void SetCertificateDomainName(const Aws::String& value) { m_certificateDomainNameHasBeenSet = true; m_certificateDomainName = value; }
108 inline void SetCertificateDomainName(Aws::String&& value) { m_certificateDomainNameHasBeenSet = true; m_certificateDomainName = std::move(value); }
109 inline void SetCertificateDomainName(const char* value) { m_certificateDomainNameHasBeenSet = true; m_certificateDomainName.assign(value); }
112 inline CreateLoadBalancerRequest& WithCertificateDomainName(const char* value) { SetCertificateDomainName(value); return *this;}
114
116
121 inline const Aws::Vector<Aws::String>& GetCertificateAlternativeNames() const{ return m_certificateAlternativeNames; }
122 inline bool CertificateAlternativeNamesHasBeenSet() const { return m_certificateAlternativeNamesHasBeenSet; }
123 inline void SetCertificateAlternativeNames(const Aws::Vector<Aws::String>& value) { m_certificateAlternativeNamesHasBeenSet = true; m_certificateAlternativeNames = value; }
124 inline void SetCertificateAlternativeNames(Aws::Vector<Aws::String>&& value) { m_certificateAlternativeNamesHasBeenSet = true; m_certificateAlternativeNames = std::move(value); }
127 inline CreateLoadBalancerRequest& AddCertificateAlternativeNames(const Aws::String& value) { m_certificateAlternativeNamesHasBeenSet = true; m_certificateAlternativeNames.push_back(value); return *this; }
128 inline CreateLoadBalancerRequest& AddCertificateAlternativeNames(Aws::String&& value) { m_certificateAlternativeNamesHasBeenSet = true; m_certificateAlternativeNames.push_back(std::move(value)); return *this; }
129 inline CreateLoadBalancerRequest& AddCertificateAlternativeNames(const char* value) { m_certificateAlternativeNamesHasBeenSet = true; m_certificateAlternativeNames.push_back(value); return *this; }
131
133
138 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
139 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
140 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
141 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
142 inline CreateLoadBalancerRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
143 inline CreateLoadBalancerRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
144 inline CreateLoadBalancerRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
145 inline CreateLoadBalancerRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
147
149
155 inline const IpAddressType& GetIpAddressType() const{ return m_ipAddressType; }
156 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
157 inline void SetIpAddressType(const IpAddressType& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
158 inline void SetIpAddressType(IpAddressType&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::move(value); }
159 inline CreateLoadBalancerRequest& WithIpAddressType(const IpAddressType& value) { SetIpAddressType(value); return *this;}
160 inline CreateLoadBalancerRequest& WithIpAddressType(IpAddressType&& value) { SetIpAddressType(std::move(value)); return *this;}
162
164
173 inline const Aws::String& GetTlsPolicyName() const{ return m_tlsPolicyName; }
174 inline bool TlsPolicyNameHasBeenSet() const { return m_tlsPolicyNameHasBeenSet; }
175 inline void SetTlsPolicyName(const Aws::String& value) { m_tlsPolicyNameHasBeenSet = true; m_tlsPolicyName = value; }
176 inline void SetTlsPolicyName(Aws::String&& value) { m_tlsPolicyNameHasBeenSet = true; m_tlsPolicyName = std::move(value); }
177 inline void SetTlsPolicyName(const char* value) { m_tlsPolicyNameHasBeenSet = true; m_tlsPolicyName.assign(value); }
178 inline CreateLoadBalancerRequest& WithTlsPolicyName(const Aws::String& value) { SetTlsPolicyName(value); return *this;}
179 inline CreateLoadBalancerRequest& WithTlsPolicyName(Aws::String&& value) { SetTlsPolicyName(std::move(value)); return *this;}
180 inline CreateLoadBalancerRequest& WithTlsPolicyName(const char* value) { SetTlsPolicyName(value); return *this;}
182 private:
183
184 Aws::String m_loadBalancerName;
185 bool m_loadBalancerNameHasBeenSet = false;
186
187 int m_instancePort;
188 bool m_instancePortHasBeenSet = false;
189
190 Aws::String m_healthCheckPath;
191 bool m_healthCheckPathHasBeenSet = false;
192
193 Aws::String m_certificateName;
194 bool m_certificateNameHasBeenSet = false;
195
196 Aws::String m_certificateDomainName;
197 bool m_certificateDomainNameHasBeenSet = false;
198
199 Aws::Vector<Aws::String> m_certificateAlternativeNames;
200 bool m_certificateAlternativeNamesHasBeenSet = false;
201
202 Aws::Vector<Tag> m_tags;
203 bool m_tagsHasBeenSet = false;
204
205 IpAddressType m_ipAddressType;
206 bool m_ipAddressTypeHasBeenSet = false;
207
208 Aws::String m_tlsPolicyName;
209 bool m_tlsPolicyNameHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace Lightsail
214} // namespace Aws
CreateLoadBalancerRequest & WithTags(const Aws::Vector< Tag > &value)
CreateLoadBalancerRequest & AddCertificateAlternativeNames(const Aws::String &value)
CreateLoadBalancerRequest & WithTlsPolicyName(const char *value)
const Aws::Vector< Aws::String > & GetCertificateAlternativeNames() const
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
CreateLoadBalancerRequest & WithTlsPolicyName(const Aws::String &value)
CreateLoadBalancerRequest & WithHealthCheckPath(Aws::String &&value)
CreateLoadBalancerRequest & WithHealthCheckPath(const Aws::String &value)
void SetCertificateAlternativeNames(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
CreateLoadBalancerRequest & WithCertificateDomainName(const Aws::String &value)
void SetCertificateAlternativeNames(Aws::Vector< Aws::String > &&value)
CreateLoadBalancerRequest & WithTags(Aws::Vector< Tag > &&value)
CreateLoadBalancerRequest & WithLoadBalancerName(Aws::String &&value)
CreateLoadBalancerRequest & AddCertificateAlternativeNames(Aws::String &&value)
CreateLoadBalancerRequest & WithLoadBalancerName(const Aws::String &value)
CreateLoadBalancerRequest & WithCertificateDomainName(const char *value)
CreateLoadBalancerRequest & WithInstancePort(int value)
CreateLoadBalancerRequest & WithTlsPolicyName(Aws::String &&value)
CreateLoadBalancerRequest & AddCertificateAlternativeNames(const char *value)
CreateLoadBalancerRequest & WithCertificateAlternativeNames(Aws::Vector< Aws::String > &&value)
CreateLoadBalancerRequest & WithCertificateName(Aws::String &&value)
CreateLoadBalancerRequest & WithIpAddressType(const IpAddressType &value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLoadBalancerRequest & WithIpAddressType(IpAddressType &&value)
CreateLoadBalancerRequest & WithHealthCheckPath(const char *value)
CreateLoadBalancerRequest & WithLoadBalancerName(const char *value)
CreateLoadBalancerRequest & WithCertificateName(const Aws::String &value)
CreateLoadBalancerRequest & WithCertificateName(const char *value)
CreateLoadBalancerRequest & WithCertificateAlternativeNames(const Aws::Vector< Aws::String > &value)
CreateLoadBalancerRequest & AddTags(Tag &&value)
CreateLoadBalancerRequest & WithCertificateDomainName(Aws::String &&value)
CreateLoadBalancerRequest & AddTags(const Tag &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector