AWS SDK for C++  0.14.3
AWS SDK for C++
LoadBalancerDescription.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace ElasticBeanstalk
32 {
33 namespace Model
34 {
35 
40  {
41  public:
44  LoadBalancerDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
52  inline const Aws::String& GetLoadBalancerName() const{ return m_loadBalancerName; }
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 = 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(value); return *this;}
78 
82  inline LoadBalancerDescription& WithLoadBalancerName(const char* value) { SetLoadBalancerName(value); return *this;}
83 
87  inline const Aws::String& GetDomain() const{ return m_domain; }
88 
92  inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
93 
97  inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = value; }
98 
102  inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
103 
107  inline LoadBalancerDescription& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
108 
112  inline LoadBalancerDescription& WithDomain(Aws::String&& value) { SetDomain(value); return *this;}
113 
117  inline LoadBalancerDescription& WithDomain(const char* value) { SetDomain(value); return *this;}
118 
122  inline const Aws::Vector<Listener>& GetListeners() const{ return m_listeners; }
123 
127  inline void SetListeners(const Aws::Vector<Listener>& value) { m_listenersHasBeenSet = true; m_listeners = value; }
128 
132  inline void SetListeners(Aws::Vector<Listener>&& value) { m_listenersHasBeenSet = true; m_listeners = value; }
133 
137  inline LoadBalancerDescription& WithListeners(const Aws::Vector<Listener>& value) { SetListeners(value); return *this;}
138 
142  inline LoadBalancerDescription& WithListeners(Aws::Vector<Listener>&& value) { SetListeners(value); return *this;}
143 
147  inline LoadBalancerDescription& AddListeners(const Listener& value) { m_listenersHasBeenSet = true; m_listeners.push_back(value); return *this; }
148 
152  inline LoadBalancerDescription& AddListeners(Listener&& value) { m_listenersHasBeenSet = true; m_listeners.push_back(value); return *this; }
153 
154  private:
155  Aws::String m_loadBalancerName;
156  bool m_loadBalancerNameHasBeenSet;
157  Aws::String m_domain;
158  bool m_domainHasBeenSet;
159  Aws::Vector<Listener> m_listeners;
160  bool m_listenersHasBeenSet;
161  };
162 
163 } // namespace Model
164 } // namespace ElasticBeanstalk
165 } // namespace Aws
void SetListeners(const Aws::Vector< Listener > &value)
LoadBalancerDescription & WithLoadBalancerName(Aws::String &&value)
#define AWS_ELASTICBEANSTALK_API
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
LoadBalancerDescription & WithDomain(const char *value)
const Aws::Vector< Listener > & GetListeners() const
LoadBalancerDescription & WithLoadBalancerName(const char *value)
LoadBalancerDescription & WithListeners(Aws::Vector< Listener > &&value)
LoadBalancerDescription & WithDomain(Aws::String &&value)
LoadBalancerDescription & WithListeners(const Aws::Vector< Listener > &value)
LoadBalancerDescription & WithLoadBalancerName(const Aws::String &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
LoadBalancerDescription & AddListeners(const Listener &value)
LoadBalancerDescription & AddListeners(Listener &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
LoadBalancerDescription & WithDomain(const Aws::String &value)
JSON (JavaScript Object Notation).