AWS SDK for C++  1.9.153
AWS SDK for C++
LoadBalancersConfig.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 
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 ClassicLoadBalancersConfig& GetClassicLoadBalancersConfig() const{ return m_classicLoadBalancersConfig; }
48 
52  inline bool ClassicLoadBalancersConfigHasBeenSet() const { return m_classicLoadBalancersConfigHasBeenSet; }
53 
57  inline void SetClassicLoadBalancersConfig(const ClassicLoadBalancersConfig& value) { m_classicLoadBalancersConfigHasBeenSet = true; m_classicLoadBalancersConfig = value; }
58 
62  inline void SetClassicLoadBalancersConfig(ClassicLoadBalancersConfig&& value) { m_classicLoadBalancersConfigHasBeenSet = true; m_classicLoadBalancersConfig = std::move(value); }
63 
67  inline LoadBalancersConfig& WithClassicLoadBalancersConfig(const ClassicLoadBalancersConfig& value) { SetClassicLoadBalancersConfig(value); return *this;}
68 
72  inline LoadBalancersConfig& WithClassicLoadBalancersConfig(ClassicLoadBalancersConfig&& value) { SetClassicLoadBalancersConfig(std::move(value)); return *this;}
73 
74 
78  inline const TargetGroupsConfig& GetTargetGroupsConfig() const{ return m_targetGroupsConfig; }
79 
83  inline bool TargetGroupsConfigHasBeenSet() const { return m_targetGroupsConfigHasBeenSet; }
84 
88  inline void SetTargetGroupsConfig(const TargetGroupsConfig& value) { m_targetGroupsConfigHasBeenSet = true; m_targetGroupsConfig = value; }
89 
93  inline void SetTargetGroupsConfig(TargetGroupsConfig&& value) { m_targetGroupsConfigHasBeenSet = true; m_targetGroupsConfig = std::move(value); }
94 
98  inline LoadBalancersConfig& WithTargetGroupsConfig(const TargetGroupsConfig& value) { SetTargetGroupsConfig(value); return *this;}
99 
103  inline LoadBalancersConfig& WithTargetGroupsConfig(TargetGroupsConfig&& value) { SetTargetGroupsConfig(std::move(value)); return *this;}
104 
105  private:
106 
107  ClassicLoadBalancersConfig m_classicLoadBalancersConfig;
108  bool m_classicLoadBalancersConfigHasBeenSet;
109 
110  TargetGroupsConfig m_targetGroupsConfig;
111  bool m_targetGroupsConfigHasBeenSet;
112  };
113 
114 } // namespace Model
115 } // namespace EC2
116 } // namespace Aws
Aws::EC2::Model::LoadBalancersConfig::WithTargetGroupsConfig
LoadBalancersConfig & WithTargetGroupsConfig(TargetGroupsConfig &&value)
Definition: LoadBalancersConfig.h:103
Aws::EC2::Model::TargetGroupsConfig
Definition: TargetGroupsConfig.h:35
Aws::EC2::Model::LoadBalancersConfig::ClassicLoadBalancersConfigHasBeenSet
bool ClassicLoadBalancersConfigHasBeenSet() const
Definition: LoadBalancersConfig.h:52
Aws::EC2::Model::LoadBalancersConfig::TargetGroupsConfigHasBeenSet
bool TargetGroupsConfigHasBeenSet() const
Definition: LoadBalancersConfig.h:83
Aws::EC2::Model::LoadBalancersConfig::LoadBalancersConfig
LoadBalancersConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::LoadBalancersConfig::WithClassicLoadBalancersConfig
LoadBalancersConfig & WithClassicLoadBalancersConfig(const ClassicLoadBalancersConfig &value)
Definition: LoadBalancersConfig.h:67
Aws::EC2::Model::LoadBalancersConfig::GetClassicLoadBalancersConfig
const ClassicLoadBalancersConfig & GetClassicLoadBalancersConfig() const
Definition: LoadBalancersConfig.h:47
AWSStreamFwd.h
Aws::EC2::Model::LoadBalancersConfig::SetClassicLoadBalancersConfig
void SetClassicLoadBalancersConfig(const ClassicLoadBalancersConfig &value)
Definition: LoadBalancersConfig.h:57
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::LoadBalancersConfig::LoadBalancersConfig
LoadBalancersConfig()
Aws::EC2::Model::LoadBalancersConfig::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::LoadBalancersConfig::WithClassicLoadBalancersConfig
LoadBalancersConfig & WithClassicLoadBalancersConfig(ClassicLoadBalancersConfig &&value)
Definition: LoadBalancersConfig.h:72
TargetGroupsConfig.h
Aws::EC2::Model::LoadBalancersConfig::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ClassicLoadBalancersConfig.h
Aws::EC2::Model::LoadBalancersConfig::GetTargetGroupsConfig
const TargetGroupsConfig & GetTargetGroupsConfig() const
Definition: LoadBalancersConfig.h:78
Aws::EC2::Model::LoadBalancersConfig::SetTargetGroupsConfig
void SetTargetGroupsConfig(TargetGroupsConfig &&value)
Definition: LoadBalancersConfig.h:93
Aws::EC2::Model::LoadBalancersConfig::SetClassicLoadBalancersConfig
void SetClassicLoadBalancersConfig(ClassicLoadBalancersConfig &&value)
Definition: LoadBalancersConfig.h:62
Aws::EC2::Model::LoadBalancersConfig
Definition: LoadBalancersConfig.h:34
Aws::EC2::Model::LoadBalancersConfig::WithTargetGroupsConfig
LoadBalancersConfig & WithTargetGroupsConfig(const TargetGroupsConfig &value)
Definition: LoadBalancersConfig.h:98
Aws::EC2::Model::LoadBalancersConfig::operator=
LoadBalancersConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::LoadBalancersConfig::SetTargetGroupsConfig
void SetTargetGroupsConfig(const TargetGroupsConfig &value)
Definition: LoadBalancersConfig.h:88
Aws::EC2::Model::ClassicLoadBalancersConfig
Definition: ClassicLoadBalancersConfig.h:35
index
int index
Definition: cJSON.h:181
EC2_EXPORTS.h