AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
LoadBalancerDescription.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
11#include <aws/elasticbeanstalk/model/Listener.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace ElasticBeanstalk {
22namespace Model {
23
30 public:
31 AWS_ELASTICBEANSTALK_API LoadBalancerDescription() = default;
32 AWS_ELASTICBEANSTALK_API LoadBalancerDescription(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_ELASTICBEANSTALK_API LoadBalancerDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
36 const char* locationValue) const;
37 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetLoadBalancerName() const { return m_loadBalancerName; }
44 inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; }
45 template <typename LoadBalancerNameT = Aws::String>
46 void SetLoadBalancerName(LoadBalancerNameT&& value) {
47 m_loadBalancerNameHasBeenSet = true;
48 m_loadBalancerName = std::forward<LoadBalancerNameT>(value);
49 }
50 template <typename LoadBalancerNameT = Aws::String>
51 LoadBalancerDescription& WithLoadBalancerName(LoadBalancerNameT&& value) {
52 SetLoadBalancerName(std::forward<LoadBalancerNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDomain() const { return m_domain; }
62 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
63 template <typename DomainT = Aws::String>
64 void SetDomain(DomainT&& value) {
65 m_domainHasBeenSet = true;
66 m_domain = std::forward<DomainT>(value);
67 }
68 template <typename DomainT = Aws::String>
70 SetDomain(std::forward<DomainT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<Listener>& GetListeners() const { return m_listeners; }
80 inline bool ListenersHasBeenSet() const { return m_listenersHasBeenSet; }
81 template <typename ListenersT = Aws::Vector<Listener>>
82 void SetListeners(ListenersT&& value) {
83 m_listenersHasBeenSet = true;
84 m_listeners = std::forward<ListenersT>(value);
85 }
86 template <typename ListenersT = Aws::Vector<Listener>>
88 SetListeners(std::forward<ListenersT>(value));
89 return *this;
90 }
91 template <typename ListenersT = Listener>
93 m_listenersHasBeenSet = true;
94 m_listeners.emplace_back(std::forward<ListenersT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_loadBalancerName;
100
101 Aws::String m_domain;
102
103 Aws::Vector<Listener> m_listeners;
104 bool m_loadBalancerNameHasBeenSet = false;
105 bool m_domainHasBeenSet = false;
106 bool m_listenersHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace ElasticBeanstalk
111} // namespace Aws
AWS_ELASTICBEANSTALK_API LoadBalancerDescription()=default
AWS_ELASTICBEANSTALK_API LoadBalancerDescription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LoadBalancerDescription & WithDomain(DomainT &&value)
AWS_ELASTICBEANSTALK_API LoadBalancerDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
LoadBalancerDescription & WithListeners(ListenersT &&value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LoadBalancerDescription & WithLoadBalancerName(LoadBalancerNameT &&value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LoadBalancerDescription & AddListeners(ListenersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream