AWS SDK for C++  1.9.67
AWS SDK for C++
TargetGroupsConfig.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<TargetGroup>& GetTargetGroups() const{ return m_targetGroups; }
49 
53  inline bool TargetGroupsHasBeenSet() const { return m_targetGroupsHasBeenSet; }
54 
58  inline void SetTargetGroups(const Aws::Vector<TargetGroup>& value) { m_targetGroupsHasBeenSet = true; m_targetGroups = value; }
59 
63  inline void SetTargetGroups(Aws::Vector<TargetGroup>&& value) { m_targetGroupsHasBeenSet = true; m_targetGroups = std::move(value); }
64 
68  inline TargetGroupsConfig& WithTargetGroups(const Aws::Vector<TargetGroup>& value) { SetTargetGroups(value); return *this;}
69 
73  inline TargetGroupsConfig& WithTargetGroups(Aws::Vector<TargetGroup>&& value) { SetTargetGroups(std::move(value)); return *this;}
74 
78  inline TargetGroupsConfig& AddTargetGroups(const TargetGroup& value) { m_targetGroupsHasBeenSet = true; m_targetGroups.push_back(value); return *this; }
79 
83  inline TargetGroupsConfig& AddTargetGroups(TargetGroup&& value) { m_targetGroupsHasBeenSet = true; m_targetGroups.push_back(std::move(value)); return *this; }
84 
85  private:
86 
87  Aws::Vector<TargetGroup> m_targetGroups;
88  bool m_targetGroupsHasBeenSet;
89  };
90 
91 } // namespace Model
92 } // namespace EC2
93 } // namespace Aws
Aws::EC2::Model::TargetGroupsConfig::AddTargetGroups
TargetGroupsConfig & AddTargetGroups(const TargetGroup &value)
Definition: TargetGroupsConfig.h:78
Aws::EC2::Model::TargetGroupsConfig::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::TargetGroupsConfig
Definition: TargetGroupsConfig.h:35
Aws::EC2::Model::TargetGroupsConfig::WithTargetGroups
TargetGroupsConfig & WithTargetGroups(Aws::Vector< TargetGroup > &&value)
Definition: TargetGroupsConfig.h:73
Aws::EC2::Model::TargetGroupsConfig::SetTargetGroups
void SetTargetGroups(const Aws::Vector< TargetGroup > &value)
Definition: TargetGroupsConfig.h:58
Aws::EC2::Model::TargetGroupsConfig::AddTargetGroups
TargetGroupsConfig & AddTargetGroups(TargetGroup &&value)
Definition: TargetGroupsConfig.h:83
Aws::EC2::Model::TargetGroupsConfig::TargetGroupsHasBeenSet
bool TargetGroupsHasBeenSet() const
Definition: TargetGroupsConfig.h:53
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
TargetGroup.h
Aws::EC2::Model::TargetGroupsConfig::WithTargetGroups
TargetGroupsConfig & WithTargetGroups(const Aws::Vector< TargetGroup > &value)
Definition: TargetGroupsConfig.h:68
Aws::EC2::Model::TargetGroupsConfig::TargetGroupsConfig
TargetGroupsConfig()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
AWSVector.h
Aws::EC2::Model::TargetGroupsConfig::operator=
TargetGroupsConfig & operator=(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::TargetGroup
Definition: TargetGroup.h:32
Aws::EC2::Model::TargetGroupsConfig::TargetGroupsConfig
TargetGroupsConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TargetGroupsConfig::GetTargetGroups
const Aws::Vector< TargetGroup > & GetTargetGroups() const
Definition: TargetGroupsConfig.h:48
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TargetGroupsConfig::SetTargetGroups
void SetTargetGroups(Aws::Vector< TargetGroup > &&value)
Definition: TargetGroupsConfig.h:63
index
int index
Definition: cJSON.h:181
EC2_EXPORTS.h
Aws::EC2::Model::TargetGroupsConfig::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const