AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename LoadBalancerNameT = Aws::String>
51 void SetLoadBalancerName(LoadBalancerNameT&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::forward<LoadBalancerNameT>(value); }
52 template<typename LoadBalancerNameT = Aws::String>
53 LoadBalancerDescription& WithLoadBalancerName(LoadBalancerNameT&& value) { SetLoadBalancerName(std::forward<LoadBalancerNameT>(value)); return *this;}
55
57
60 inline const Aws::String& GetDomain() const { return m_domain; }
61 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
62 template<typename DomainT = Aws::String>
63 void SetDomain(DomainT&& value) { m_domainHasBeenSet = true; m_domain = std::forward<DomainT>(value); }
64 template<typename DomainT = Aws::String>
65 LoadBalancerDescription& WithDomain(DomainT&& value) { SetDomain(std::forward<DomainT>(value)); return *this;}
67
69
72 inline const Aws::Vector<Listener>& GetListeners() const { return m_listeners; }
73 inline bool ListenersHasBeenSet() const { return m_listenersHasBeenSet; }
74 template<typename ListenersT = Aws::Vector<Listener>>
75 void SetListeners(ListenersT&& value) { m_listenersHasBeenSet = true; m_listeners = std::forward<ListenersT>(value); }
76 template<typename ListenersT = Aws::Vector<Listener>>
77 LoadBalancerDescription& WithListeners(ListenersT&& value) { SetListeners(std::forward<ListenersT>(value)); return *this;}
78 template<typename ListenersT = Listener>
79 LoadBalancerDescription& AddListeners(ListenersT&& value) { m_listenersHasBeenSet = true; m_listeners.emplace_back(std::forward<ListenersT>(value)); return *this; }
81 private:
82
83 Aws::String m_loadBalancerName;
84 bool m_loadBalancerNameHasBeenSet = false;
85
86 Aws::String m_domain;
87 bool m_domainHasBeenSet = false;
88
89 Aws::Vector<Listener> m_listeners;
90 bool m_listenersHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace ElasticBeanstalk
95} // 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