AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LoadBalancerAttributes.h
1
6#pragma once
7#include <aws/elasticloadbalancing/ElasticLoadBalancing_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/elasticloadbalancing/model/CrossZoneLoadBalancing.h>
10#include <aws/elasticloadbalancing/model/AccessLog.h>
11#include <aws/elasticloadbalancing/model/ConnectionDraining.h>
12#include <aws/elasticloadbalancing/model/ConnectionSettings.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/elasticloadbalancing/model/AdditionalAttribute.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace ElasticLoadBalancing
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_ELASTICLOADBALANCING_API LoadBalancerAttributes();
40 AWS_ELASTICLOADBALANCING_API LoadBalancerAttributes(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_ELASTICLOADBALANCING_API LoadBalancerAttributes& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
55 inline const CrossZoneLoadBalancing& GetCrossZoneLoadBalancing() const{ return m_crossZoneLoadBalancing; }
56 inline bool CrossZoneLoadBalancingHasBeenSet() const { return m_crossZoneLoadBalancingHasBeenSet; }
57 inline void SetCrossZoneLoadBalancing(const CrossZoneLoadBalancing& value) { m_crossZoneLoadBalancingHasBeenSet = true; m_crossZoneLoadBalancing = value; }
58 inline void SetCrossZoneLoadBalancing(CrossZoneLoadBalancing&& value) { m_crossZoneLoadBalancingHasBeenSet = true; m_crossZoneLoadBalancing = std::move(value); }
62
64
71 inline const AccessLog& GetAccessLog() const{ return m_accessLog; }
72 inline bool AccessLogHasBeenSet() const { return m_accessLogHasBeenSet; }
73 inline void SetAccessLog(const AccessLog& value) { m_accessLogHasBeenSet = true; m_accessLog = value; }
74 inline void SetAccessLog(AccessLog&& value) { m_accessLogHasBeenSet = true; m_accessLog = std::move(value); }
75 inline LoadBalancerAttributes& WithAccessLog(const AccessLog& value) { SetAccessLog(value); return *this;}
76 inline LoadBalancerAttributes& WithAccessLog(AccessLog&& value) { SetAccessLog(std::move(value)); return *this;}
78
80
87 inline const ConnectionDraining& GetConnectionDraining() const{ return m_connectionDraining; }
88 inline bool ConnectionDrainingHasBeenSet() const { return m_connectionDrainingHasBeenSet; }
89 inline void SetConnectionDraining(const ConnectionDraining& value) { m_connectionDrainingHasBeenSet = true; m_connectionDraining = value; }
90 inline void SetConnectionDraining(ConnectionDraining&& value) { m_connectionDrainingHasBeenSet = true; m_connectionDraining = std::move(value); }
94
96
105 inline const ConnectionSettings& GetConnectionSettings() const{ return m_connectionSettings; }
106 inline bool ConnectionSettingsHasBeenSet() const { return m_connectionSettingsHasBeenSet; }
107 inline void SetConnectionSettings(const ConnectionSettings& value) { m_connectionSettingsHasBeenSet = true; m_connectionSettings = value; }
108 inline void SetConnectionSettings(ConnectionSettings&& value) { m_connectionSettingsHasBeenSet = true; m_connectionSettings = std::move(value); }
112
114
117 inline const Aws::Vector<AdditionalAttribute>& GetAdditionalAttributes() const{ return m_additionalAttributes; }
118 inline bool AdditionalAttributesHasBeenSet() const { return m_additionalAttributesHasBeenSet; }
119 inline void SetAdditionalAttributes(const Aws::Vector<AdditionalAttribute>& value) { m_additionalAttributesHasBeenSet = true; m_additionalAttributes = value; }
120 inline void SetAdditionalAttributes(Aws::Vector<AdditionalAttribute>&& value) { m_additionalAttributesHasBeenSet = true; m_additionalAttributes = std::move(value); }
123 inline LoadBalancerAttributes& AddAdditionalAttributes(const AdditionalAttribute& value) { m_additionalAttributesHasBeenSet = true; m_additionalAttributes.push_back(value); return *this; }
124 inline LoadBalancerAttributes& AddAdditionalAttributes(AdditionalAttribute&& value) { m_additionalAttributesHasBeenSet = true; m_additionalAttributes.push_back(std::move(value)); return *this; }
126 private:
127
128 CrossZoneLoadBalancing m_crossZoneLoadBalancing;
129 bool m_crossZoneLoadBalancingHasBeenSet = false;
130
131 AccessLog m_accessLog;
132 bool m_accessLogHasBeenSet = false;
133
134 ConnectionDraining m_connectionDraining;
135 bool m_connectionDrainingHasBeenSet = false;
136
137 ConnectionSettings m_connectionSettings;
138 bool m_connectionSettingsHasBeenSet = false;
139
140 Aws::Vector<AdditionalAttribute> m_additionalAttributes;
141 bool m_additionalAttributesHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace ElasticLoadBalancing
146} // namespace Aws
const CrossZoneLoadBalancing & GetCrossZoneLoadBalancing() const
LoadBalancerAttributes & WithAccessLog(AccessLog &&value)
LoadBalancerAttributes & AddAdditionalAttributes(AdditionalAttribute &&value)
AWS_ELASTICLOADBALANCING_API LoadBalancerAttributes(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetAdditionalAttributes(const Aws::Vector< AdditionalAttribute > &value)
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetAdditionalAttributes(Aws::Vector< AdditionalAttribute > &&value)
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LoadBalancerAttributes & WithConnectionDraining(const ConnectionDraining &value)
LoadBalancerAttributes & WithCrossZoneLoadBalancing(CrossZoneLoadBalancing &&value)
const Aws::Vector< AdditionalAttribute > & GetAdditionalAttributes() const
LoadBalancerAttributes & AddAdditionalAttributes(const AdditionalAttribute &value)
LoadBalancerAttributes & WithCrossZoneLoadBalancing(const CrossZoneLoadBalancing &value)
LoadBalancerAttributes & WithAccessLog(const AccessLog &value)
LoadBalancerAttributes & WithConnectionSettings(ConnectionSettings &&value)
void SetCrossZoneLoadBalancing(const CrossZoneLoadBalancing &value)
LoadBalancerAttributes & WithConnectionSettings(const ConnectionSettings &value)
LoadBalancerAttributes & WithConnectionDraining(ConnectionDraining &&value)
LoadBalancerAttributes & WithAdditionalAttributes(Aws::Vector< AdditionalAttribute > &&value)
LoadBalancerAttributes & WithAdditionalAttributes(const Aws::Vector< AdditionalAttribute > &value)
AWS_ELASTICLOADBALANCING_API LoadBalancerAttributes & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream