AWS SDK for C++  1.9.176
AWS SDK for C++
LoadBalancerDescription.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace ElasticBeanstalk
24 {
25 namespace Model
26 {
27 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::String& GetLoadBalancerName() const{ return m_loadBalancerName; }
48 
52  inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; }
53 
57  inline void SetLoadBalancerName(const Aws::String& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = value; }
58 
62  inline void SetLoadBalancerName(Aws::String&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::move(value); }
63 
67  inline void SetLoadBalancerName(const char* value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName.assign(value); }
68 
72  inline LoadBalancerDescription& WithLoadBalancerName(const Aws::String& value) { SetLoadBalancerName(value); return *this;}
73 
77  inline LoadBalancerDescription& WithLoadBalancerName(Aws::String&& value) { SetLoadBalancerName(std::move(value)); return *this;}
78 
82  inline LoadBalancerDescription& WithLoadBalancerName(const char* value) { SetLoadBalancerName(value); return *this;}
83 
84 
88  inline const Aws::String& GetDomain() const{ return m_domain; }
89 
93  inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
94 
98  inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
99 
103  inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
104 
108  inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
109 
113  inline LoadBalancerDescription& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
114 
118  inline LoadBalancerDescription& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
119 
123  inline LoadBalancerDescription& WithDomain(const char* value) { SetDomain(value); return *this;}
124 
125 
129  inline const Aws::Vector<Listener>& GetListeners() const{ return m_listeners; }
130 
134  inline bool ListenersHasBeenSet() const { return m_listenersHasBeenSet; }
135 
139  inline void SetListeners(const Aws::Vector<Listener>& value) { m_listenersHasBeenSet = true; m_listeners = value; }
140 
144  inline void SetListeners(Aws::Vector<Listener>&& value) { m_listenersHasBeenSet = true; m_listeners = std::move(value); }
145 
149  inline LoadBalancerDescription& WithListeners(const Aws::Vector<Listener>& value) { SetListeners(value); return *this;}
150 
154  inline LoadBalancerDescription& WithListeners(Aws::Vector<Listener>&& value) { SetListeners(std::move(value)); return *this;}
155 
159  inline LoadBalancerDescription& AddListeners(const Listener& value) { m_listenersHasBeenSet = true; m_listeners.push_back(value); return *this; }
160 
164  inline LoadBalancerDescription& AddListeners(Listener&& value) { m_listenersHasBeenSet = true; m_listeners.push_back(std::move(value)); return *this; }
165 
166  private:
167 
168  Aws::String m_loadBalancerName;
169  bool m_loadBalancerNameHasBeenSet;
170 
171  Aws::String m_domain;
172  bool m_domainHasBeenSet;
173 
174  Aws::Vector<Listener> m_listeners;
175  bool m_listenersHasBeenSet;
176  };
177 
178 } // namespace Model
179 } // namespace ElasticBeanstalk
180 } // namespace Aws
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::SetLoadBalancerName
void SetLoadBalancerName(Aws::String &&value)
Definition: LoadBalancerDescription.h:62
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::LoadBalancerDescription
LoadBalancerDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICBEANSTALK_API
#define AWS_ELASTICBEANSTALK_API
Definition: ElasticBeanstalk_EXPORTS.h:28
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::SetDomain
void SetDomain(Aws::String &&value)
Definition: LoadBalancerDescription.h:103
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::SetListeners
void SetListeners(Aws::Vector< Listener > &&value)
Definition: LoadBalancerDescription.h:144
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::SetListeners
void SetListeners(const Aws::Vector< Listener > &value)
Definition: LoadBalancerDescription.h:139
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::WithLoadBalancerName
LoadBalancerDescription & WithLoadBalancerName(Aws::String &&value)
Definition: LoadBalancerDescription.h:77
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::SetDomain
void SetDomain(const Aws::String &value)
Definition: LoadBalancerDescription.h:98
AWSStreamFwd.h
AWSVector.h
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::GetLoadBalancerName
const Aws::String & GetLoadBalancerName() const
Definition: LoadBalancerDescription.h:47
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::DomainHasBeenSet
bool DomainHasBeenSet() const
Definition: LoadBalancerDescription.h:93
Aws::ElasticBeanstalk::Model::LoadBalancerDescription
Definition: LoadBalancerDescription.h:34
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::WithLoadBalancerName
LoadBalancerDescription & WithLoadBalancerName(const char *value)
Definition: LoadBalancerDescription.h:82
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::AddListeners
LoadBalancerDescription & AddListeners(const Listener &value)
Definition: LoadBalancerDescription.h:159
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::WithLoadBalancerName
LoadBalancerDescription & WithLoadBalancerName(const Aws::String &value)
Definition: LoadBalancerDescription.h:72
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::LoadBalancerNameHasBeenSet
bool LoadBalancerNameHasBeenSet() const
Definition: LoadBalancerDescription.h:52
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::GetListeners
const Aws::Vector< Listener > & GetListeners() const
Definition: LoadBalancerDescription.h:129
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::WithListeners
LoadBalancerDescription & WithListeners(const Aws::Vector< Listener > &value)
Definition: LoadBalancerDescription.h:149
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::ListenersHasBeenSet
bool ListenersHasBeenSet() const
Definition: LoadBalancerDescription.h:134
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::GetDomain
const Aws::String & GetDomain() const
Definition: LoadBalancerDescription.h:88
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::WithDomain
LoadBalancerDescription & WithDomain(const char *value)
Definition: LoadBalancerDescription.h:123
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::WithDomain
LoadBalancerDescription & WithDomain(Aws::String &&value)
Definition: LoadBalancerDescription.h:118
AWSString.h
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::SetLoadBalancerName
void SetLoadBalancerName(const Aws::String &value)
Definition: LoadBalancerDescription.h:57
ElasticBeanstalk_EXPORTS.h
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::WithDomain
LoadBalancerDescription & WithDomain(const Aws::String &value)
Definition: LoadBalancerDescription.h:113
Aws::ElasticBeanstalk::Model::Listener
Definition: Listener.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::LoadBalancerDescription
LoadBalancerDescription()
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::AddListeners
LoadBalancerDescription & AddListeners(Listener &&value)
Definition: LoadBalancerDescription.h:164
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::WithListeners
LoadBalancerDescription & WithListeners(Aws::Vector< Listener > &&value)
Definition: LoadBalancerDescription.h:154
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::operator=
LoadBalancerDescription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::SetLoadBalancerName
void SetLoadBalancerName(const char *value)
Definition: LoadBalancerDescription.h:67
Aws::ElasticBeanstalk::Model::LoadBalancerDescription::SetDomain
void SetDomain(const char *value)
Definition: LoadBalancerDescription.h:108
Listener.h