AWS SDK for C++  1.9.71
AWS SDK for C++
ClassicLoadBalancersConfig.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::Vector<ClassicLoadBalancer>& GetClassicLoadBalancers() const{ return m_classicLoadBalancers; }
49 
53  inline bool ClassicLoadBalancersHasBeenSet() const { return m_classicLoadBalancersHasBeenSet; }
54 
58  inline void SetClassicLoadBalancers(const Aws::Vector<ClassicLoadBalancer>& value) { m_classicLoadBalancersHasBeenSet = true; m_classicLoadBalancers = value; }
59 
63  inline void SetClassicLoadBalancers(Aws::Vector<ClassicLoadBalancer>&& value) { m_classicLoadBalancersHasBeenSet = true; m_classicLoadBalancers = std::move(value); }
64 
68  inline ClassicLoadBalancersConfig& WithClassicLoadBalancers(const Aws::Vector<ClassicLoadBalancer>& value) { SetClassicLoadBalancers(value); return *this;}
69 
73  inline ClassicLoadBalancersConfig& WithClassicLoadBalancers(Aws::Vector<ClassicLoadBalancer>&& value) { SetClassicLoadBalancers(std::move(value)); return *this;}
74 
78  inline ClassicLoadBalancersConfig& AddClassicLoadBalancers(const ClassicLoadBalancer& value) { m_classicLoadBalancersHasBeenSet = true; m_classicLoadBalancers.push_back(value); return *this; }
79 
83  inline ClassicLoadBalancersConfig& AddClassicLoadBalancers(ClassicLoadBalancer&& value) { m_classicLoadBalancersHasBeenSet = true; m_classicLoadBalancers.push_back(std::move(value)); return *this; }
84 
85  private:
86 
87  Aws::Vector<ClassicLoadBalancer> m_classicLoadBalancers;
88  bool m_classicLoadBalancersHasBeenSet;
89  };
90 
91 } // namespace Model
92 } // namespace EC2
93 } // namespace Aws
Aws::EC2::Model::ClassicLoadBalancersConfig::SetClassicLoadBalancers
void SetClassicLoadBalancers(Aws::Vector< ClassicLoadBalancer > &&value)
Definition: ClassicLoadBalancersConfig.h:63
Aws::EC2::Model::ClassicLoadBalancersConfig::AddClassicLoadBalancers
ClassicLoadBalancersConfig & AddClassicLoadBalancers(const ClassicLoadBalancer &value)
Definition: ClassicLoadBalancersConfig.h:78
Aws::EC2::Model::ClassicLoadBalancersConfig::operator=
ClassicLoadBalancersConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ClassicLoadBalancersConfig::GetClassicLoadBalancers
const Aws::Vector< ClassicLoadBalancer > & GetClassicLoadBalancers() const
Definition: ClassicLoadBalancersConfig.h:48
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
ClassicLoadBalancer.h
AWSVector.h
Aws::EC2::Model::ClassicLoadBalancersConfig::ClassicLoadBalancersConfig
ClassicLoadBalancersConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ClassicLoadBalancersConfig::ClassicLoadBalancersConfig
ClassicLoadBalancersConfig()
Aws::EC2::Model::ClassicLoadBalancersConfig::SetClassicLoadBalancers
void SetClassicLoadBalancers(const Aws::Vector< ClassicLoadBalancer > &value)
Definition: ClassicLoadBalancersConfig.h:58
Aws::EC2::Model::ClassicLoadBalancersConfig::WithClassicLoadBalancers
ClassicLoadBalancersConfig & WithClassicLoadBalancers(Aws::Vector< ClassicLoadBalancer > &&value)
Definition: ClassicLoadBalancersConfig.h:73
Aws::EC2::Model::ClassicLoadBalancersConfig::WithClassicLoadBalancers
ClassicLoadBalancersConfig & WithClassicLoadBalancers(const Aws::Vector< ClassicLoadBalancer > &value)
Definition: ClassicLoadBalancersConfig.h:68
Aws::EC2::Model::ClassicLoadBalancersConfig::ClassicLoadBalancersHasBeenSet
bool ClassicLoadBalancersHasBeenSet() const
Definition: ClassicLoadBalancersConfig.h:53
Aws::EC2::Model::ClassicLoadBalancersConfig::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ClassicLoadBalancersConfig
Definition: ClassicLoadBalancersConfig.h:35
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::ClassicLoadBalancersConfig::AddClassicLoadBalancers
ClassicLoadBalancersConfig & AddClassicLoadBalancers(ClassicLoadBalancer &&value)
Definition: ClassicLoadBalancersConfig.h:83
EC2_EXPORTS.h
Aws::EC2::Model::ClassicLoadBalancersConfig::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::ClassicLoadBalancer
Definition: ClassicLoadBalancer.h:32