7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/lightsail/model/ResourceLocation.h>
11#include <aws/lightsail/model/ResourceType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/lightsail/model/LoadBalancerState.h>
14#include <aws/lightsail/model/LoadBalancerProtocol.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/lightsail/model/IpAddressType.h>
17#include <aws/lightsail/model/Tag.h>
18#include <aws/lightsail/model/InstanceHealthSummary.h>
19#include <aws/lightsail/model/LoadBalancerTlsCertificateSummary.h>
20#include <aws/lightsail/model/LoadBalancerAttributeName.h>
58 template<
typename NameT = Aws::String>
59 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
60 template<
typename NameT = Aws::String>
70 template<
typename ArnT = Aws::String>
71 void SetArn(ArnT&& value) { m_arnHasBeenSet =
true; m_arn = std::forward<ArnT>(value); }
72 template<
typename ArnT = Aws::String>
84 template<
typename SupportCodeT = Aws::String>
85 void SetSupportCode(SupportCodeT&& value) { m_supportCodeHasBeenSet =
true; m_supportCode = std::forward<SupportCodeT>(value); }
86 template<
typename SupportCodeT = Aws::String>
96 template<
typename CreatedAtT = Aws::Utils::DateTime>
97 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
98 template<
typename CreatedAtT = Aws::Utils::DateTime>
110 template<
typename LocationT = ResourceLocation>
111 void SetLocation(LocationT&& value) { m_locationHasBeenSet =
true; m_location = std::forward<LocationT>(value); }
112 template<
typename LocationT = ResourceLocation>
135 template<
typename TagsT = Aws::Vector<Tag>>
136 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
137 template<
typename TagsT = Aws::Vector<Tag>>
139 template<
typename TagsT = Tag>
140 LoadBalancer&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
149 template<
typename DnsNameT = Aws::String>
150 void SetDnsName(DnsNameT&& value) { m_dnsNameHasBeenSet =
true; m_dnsName = std::forward<DnsNameT>(value); }
151 template<
typename DnsNameT = Aws::String>
184 template<
typename PublicPortsT = Aws::Vector<
int>>
185 void SetPublicPorts(PublicPortsT&& value) { m_publicPortsHasBeenSet =
true; m_publicPorts = std::forward<PublicPortsT>(value); }
186 template<
typename PublicPortsT = Aws::Vector<
int>>
199 template<
typename HealthCheckPathT = Aws::String>
200 void SetHealthCheckPath(HealthCheckPathT&& value) { m_healthCheckPathHasBeenSet =
true; m_healthCheckPath = std::forward<HealthCheckPathT>(value); }
201 template<
typename HealthCheckPathT = Aws::String>
212 inline void SetInstancePort(
int value) { m_instancePortHasBeenSet =
true; m_instancePort = value; }
223 template<
typename InstanceHealthSummaryT = Aws::Vector<InstanceHealthSummary>>
224 void SetInstanceHealthSummary(InstanceHealthSummaryT&& value) { m_instanceHealthSummaryHasBeenSet =
true; m_instanceHealthSummary = std::forward<InstanceHealthSummaryT>(value); }
225 template<
typename InstanceHealthSummaryT = Aws::Vector<InstanceHealthSummary>>
227 template<
typename InstanceHealthSummaryT = InstanceHealthSummary>
228 LoadBalancer&
AddInstanceHealthSummary(InstanceHealthSummaryT&& value) { m_instanceHealthSummaryHasBeenSet =
true; m_instanceHealthSummary.emplace_back(std::forward<InstanceHealthSummaryT>(value));
return *
this; }
239 template<
typename TlsCertificateSummariesT = Aws::Vector<LoadBalancerTlsCertificateSummary>>
240 void SetTlsCertificateSummaries(TlsCertificateSummariesT&& value) { m_tlsCertificateSummariesHasBeenSet =
true; m_tlsCertificateSummaries = std::forward<TlsCertificateSummariesT>(value); }
241 template<
typename TlsCertificateSummariesT = Aws::Vector<LoadBalancerTlsCertificateSummary>>
243 template<
typename TlsCertificateSummariesT = LoadBalancerTlsCertificateSummary>
244 LoadBalancer&
AddTlsCertificateSummaries(TlsCertificateSummariesT&& value) { m_tlsCertificateSummariesHasBeenSet =
true; m_tlsCertificateSummaries.emplace_back(std::forward<TlsCertificateSummariesT>(value));
return *
this; }
254 template<
typename ConfigurationOptionsT = Aws::Map<LoadBalancerAttributeName, Aws::String>>
255 void SetConfigurationOptions(ConfigurationOptionsT&& value) { m_configurationOptionsHasBeenSet =
true; m_configurationOptions = std::forward<ConfigurationOptionsT>(value); }
256 template<
typename ConfigurationOptionsT = Aws::Map<LoadBalancerAttributeName, Aws::String>>
259 m_configurationOptionsHasBeenSet =
true; m_configurationOptions.emplace(key, value);
return *
this;
292 template<
typename TlsPolicyNameT = Aws::String>
293 void SetTlsPolicyName(TlsPolicyNameT&& value) { m_tlsPolicyNameHasBeenSet =
true; m_tlsPolicyName = std::forward<TlsPolicyNameT>(value); }
294 template<
typename TlsPolicyNameT = Aws::String>
300 bool m_nameHasBeenSet =
false;
303 bool m_arnHasBeenSet =
false;
306 bool m_supportCodeHasBeenSet =
false;
309 bool m_createdAtHasBeenSet =
false;
311 ResourceLocation m_location;
312 bool m_locationHasBeenSet =
false;
315 bool m_resourceTypeHasBeenSet =
false;
318 bool m_tagsHasBeenSet =
false;
321 bool m_dnsNameHasBeenSet =
false;
324 bool m_stateHasBeenSet =
false;
327 bool m_protocolHasBeenSet =
false;
330 bool m_publicPortsHasBeenSet =
false;
333 bool m_healthCheckPathHasBeenSet =
false;
335 int m_instancePort{0};
336 bool m_instancePortHasBeenSet =
false;
339 bool m_instanceHealthSummaryHasBeenSet =
false;
342 bool m_tlsCertificateSummariesHasBeenSet =
false;
345 bool m_configurationOptionsHasBeenSet =
false;
348 bool m_ipAddressTypeHasBeenSet =
false;
350 bool m_httpsRedirectionEnabled{
false};
351 bool m_httpsRedirectionEnabledHasBeenSet =
false;
354 bool m_tlsPolicyNameHasBeenSet =
false;
const Aws::String & GetName() const
void SetHealthCheckPath(HealthCheckPathT &&value)
ResourceType GetResourceType() const
bool HealthCheckPathHasBeenSet() const
bool ResourceTypeHasBeenSet() const
void SetInstanceHealthSummary(InstanceHealthSummaryT &&value)
bool NameHasBeenSet() const
LoadBalancer & AddConfigurationOptions(LoadBalancerAttributeName key, Aws::String value)
LoadBalancer & WithInstanceHealthSummary(InstanceHealthSummaryT &&value)
const Aws::String & GetTlsPolicyName() const
const Aws::String & GetDnsName() const
AWS_LIGHTSAIL_API LoadBalancer(Aws::Utils::Json::JsonView jsonValue)
bool TagsHasBeenSet() const
LoadBalancer & WithIpAddressType(IpAddressType value)
bool TlsPolicyNameHasBeenSet() const
void SetTlsCertificateSummaries(TlsCertificateSummariesT &&value)
bool PublicPortsHasBeenSet() const
bool ArnHasBeenSet() const
LoadBalancer & WithTlsCertificateSummaries(TlsCertificateSummariesT &&value)
LoadBalancer & WithProtocol(LoadBalancerProtocol value)
bool GetHttpsRedirectionEnabled() const
LoadBalancerState GetState() const
void SetPublicPorts(PublicPortsT &&value)
AWS_LIGHTSAIL_API LoadBalancer & operator=(Aws::Utils::Json::JsonView jsonValue)
LoadBalancer & WithTlsPolicyName(TlsPolicyNameT &&value)
LoadBalancer & WithHttpsRedirectionEnabled(bool value)
bool IpAddressTypeHasBeenSet() const
bool TlsCertificateSummariesHasBeenSet() const
const Aws::Utils::DateTime & GetCreatedAt() const
LoadBalancer & AddTlsCertificateSummaries(TlsCertificateSummariesT &&value)
LoadBalancer & WithResourceType(ResourceType value)
const Aws::String & GetArn() const
LoadBalancer & WithPublicPorts(PublicPortsT &&value)
void SetIpAddressType(IpAddressType value)
bool StateHasBeenSet() const
bool SupportCodeHasBeenSet() const
LoadBalancerProtocol GetProtocol() const
void SetLocation(LocationT &&value)
AWS_LIGHTSAIL_API LoadBalancer()=default
LoadBalancer & WithName(NameT &&value)
bool DnsNameHasBeenSet() const
void SetHttpsRedirectionEnabled(bool value)
bool ProtocolHasBeenSet() const
LoadBalancer & AddTags(TagsT &&value)
void SetTlsPolicyName(TlsPolicyNameT &&value)
const Aws::Vector< InstanceHealthSummary > & GetInstanceHealthSummary() const
const Aws::Map< LoadBalancerAttributeName, Aws::String > & GetConfigurationOptions() const
bool HttpsRedirectionEnabledHasBeenSet() const
LoadBalancer & WithState(LoadBalancerState value)
void SetState(LoadBalancerState value)
bool InstancePortHasBeenSet() const
LoadBalancer & WithArn(ArnT &&value)
void SetDnsName(DnsNameT &&value)
LoadBalancer & WithCreatedAt(CreatedAtT &&value)
void SetResourceType(ResourceType value)
const ResourceLocation & GetLocation() const
LoadBalancer & WithDnsName(DnsNameT &&value)
bool LocationHasBeenSet() const
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
LoadBalancer & WithHealthCheckPath(HealthCheckPathT &&value)
LoadBalancer & WithConfigurationOptions(ConfigurationOptionsT &&value)
void SetTags(TagsT &&value)
bool ConfigurationOptionsHasBeenSet() const
void SetSupportCode(SupportCodeT &&value)
const Aws::Vector< int > & GetPublicPorts() const
LoadBalancer & AddInstanceHealthSummary(InstanceHealthSummaryT &&value)
IpAddressType GetIpAddressType() const
void SetConfigurationOptions(ConfigurationOptionsT &&value)
LoadBalancer & AddPublicPorts(int value)
LoadBalancer & WithSupportCode(SupportCodeT &&value)
void SetProtocol(LoadBalancerProtocol value)
void SetName(NameT &&value)
LoadBalancer & WithTags(TagsT &&value)
const Aws::String & GetSupportCode() const
void SetCreatedAt(CreatedAtT &&value)
void SetInstancePort(int value)
const Aws::String & GetHealthCheckPath() const
const Aws::Vector< LoadBalancerTlsCertificateSummary > & GetTlsCertificateSummaries() const
const Aws::Vector< Tag > & GetTags() const
bool CreatedAtHasBeenSet() const
bool InstanceHealthSummaryHasBeenSet() const
LoadBalancer & WithLocation(LocationT &&value)
void SetArn(ArnT &&value)
LoadBalancer & WithInstancePort(int value)
int GetInstancePort() const
LoadBalancerAttributeName
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
Aws::Utils::Json::JsonValue JsonValue