AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LoadBalancerDescription.h
1
6#pragma once
7#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticbeanstalk/model/Listener.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace ElasticBeanstalk
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_ELASTICBEANSTALK_API LoadBalancerDescription();
37 AWS_ELASTICBEANSTALK_API LoadBalancerDescription(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_ELASTICBEANSTALK_API LoadBalancerDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetLoadBalancerName() const{ return m_loadBalancerName; }
49 inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; }
50 inline void SetLoadBalancerName(const Aws::String& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = value; }
51 inline void SetLoadBalancerName(Aws::String&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::move(value); }
52 inline void SetLoadBalancerName(const char* value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName.assign(value); }
53 inline LoadBalancerDescription& WithLoadBalancerName(const Aws::String& value) { SetLoadBalancerName(value); return *this;}
54 inline LoadBalancerDescription& WithLoadBalancerName(Aws::String&& value) { SetLoadBalancerName(std::move(value)); return *this;}
55 inline LoadBalancerDescription& WithLoadBalancerName(const char* value) { SetLoadBalancerName(value); return *this;}
57
59
62 inline const Aws::String& GetDomain() const{ return m_domain; }
63 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
64 inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
65 inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
66 inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
67 inline LoadBalancerDescription& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
68 inline LoadBalancerDescription& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
69 inline LoadBalancerDescription& WithDomain(const char* value) { SetDomain(value); return *this;}
71
73
76 inline const Aws::Vector<Listener>& GetListeners() const{ return m_listeners; }
77 inline bool ListenersHasBeenSet() const { return m_listenersHasBeenSet; }
78 inline void SetListeners(const Aws::Vector<Listener>& value) { m_listenersHasBeenSet = true; m_listeners = value; }
79 inline void SetListeners(Aws::Vector<Listener>&& value) { m_listenersHasBeenSet = true; m_listeners = std::move(value); }
80 inline LoadBalancerDescription& WithListeners(const Aws::Vector<Listener>& value) { SetListeners(value); return *this;}
81 inline LoadBalancerDescription& WithListeners(Aws::Vector<Listener>&& value) { SetListeners(std::move(value)); return *this;}
82 inline LoadBalancerDescription& AddListeners(const Listener& value) { m_listenersHasBeenSet = true; m_listeners.push_back(value); return *this; }
83 inline LoadBalancerDescription& AddListeners(Listener&& value) { m_listenersHasBeenSet = true; m_listeners.push_back(std::move(value)); return *this; }
85 private:
86
87 Aws::String m_loadBalancerName;
88 bool m_loadBalancerNameHasBeenSet = false;
89
90 Aws::String m_domain;
91 bool m_domainHasBeenSet = false;
92
93 Aws::Vector<Listener> m_listeners;
94 bool m_listenersHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace ElasticBeanstalk
99} // namespace Aws
LoadBalancerDescription & WithLoadBalancerName(Aws::String &&value)
AWS_ELASTICBEANSTALK_API LoadBalancerDescription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LoadBalancerDescription & WithDomain(const char *value)
void SetListeners(const Aws::Vector< Listener > &value)
LoadBalancerDescription & WithLoadBalancerName(const Aws::String &value)
LoadBalancerDescription & WithDomain(const Aws::String &value)
AWS_ELASTICBEANSTALK_API LoadBalancerDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
LoadBalancerDescription & WithListeners(const Aws::Vector< Listener > &value)
LoadBalancerDescription & WithLoadBalancerName(const char *value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LoadBalancerDescription & WithListeners(Aws::Vector< Listener > &&value)
LoadBalancerDescription & AddListeners(Listener &&value)
LoadBalancerDescription & AddListeners(const Listener &value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LoadBalancerDescription & WithDomain(Aws::String &&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