AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TargetGroupsConfig.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/model/TargetGroup.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_EC2_API TargetGroupsConfig();
38 AWS_EC2_API TargetGroupsConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::Vector<TargetGroup>& GetTargetGroups() const{ return m_targetGroups; }
50 inline bool TargetGroupsHasBeenSet() const { return m_targetGroupsHasBeenSet; }
51 inline void SetTargetGroups(const Aws::Vector<TargetGroup>& value) { m_targetGroupsHasBeenSet = true; m_targetGroups = value; }
52 inline void SetTargetGroups(Aws::Vector<TargetGroup>&& value) { m_targetGroupsHasBeenSet = true; m_targetGroups = std::move(value); }
53 inline TargetGroupsConfig& WithTargetGroups(const Aws::Vector<TargetGroup>& value) { SetTargetGroups(value); return *this;}
54 inline TargetGroupsConfig& WithTargetGroups(Aws::Vector<TargetGroup>&& value) { SetTargetGroups(std::move(value)); return *this;}
55 inline TargetGroupsConfig& AddTargetGroups(const TargetGroup& value) { m_targetGroupsHasBeenSet = true; m_targetGroups.push_back(value); return *this; }
56 inline TargetGroupsConfig& AddTargetGroups(TargetGroup&& value) { m_targetGroupsHasBeenSet = true; m_targetGroups.push_back(std::move(value)); return *this; }
58 private:
59
60 Aws::Vector<TargetGroup> m_targetGroups;
61 bool m_targetGroupsHasBeenSet = false;
62 };
63
64} // namespace Model
65} // namespace EC2
66} // namespace Aws
AWS_EC2_API TargetGroupsConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
TargetGroupsConfig & WithTargetGroups(Aws::Vector< TargetGroup > &&value)
const Aws::Vector< TargetGroup > & GetTargetGroups() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TargetGroupsConfig & AddTargetGroups(const TargetGroup &value)
AWS_EC2_API TargetGroupsConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTargetGroups(Aws::Vector< TargetGroup > &&value)
TargetGroupsConfig & AddTargetGroups(TargetGroup &&value)
void SetTargetGroups(const Aws::Vector< TargetGroup > &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TargetGroupsConfig & WithTargetGroups(const Aws::Vector< TargetGroup > &value)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream