AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ForwardActionConfig.h
1
6#pragma once
7#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticloadbalancingv2/model/TargetGroupStickinessConfig.h>
11#include <aws/elasticloadbalancingv2/model/TargetGroupTuple.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace ElasticLoadBalancingv2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_ELASTICLOADBALANCINGV2_API ForwardActionConfig();
37 AWS_ELASTICLOADBALANCINGV2_API ForwardActionConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_ELASTICLOADBALANCINGV2_API ForwardActionConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
49 inline const Aws::Vector<TargetGroupTuple>& GetTargetGroups() const{ return m_targetGroups; }
50 inline bool TargetGroupsHasBeenSet() const { return m_targetGroupsHasBeenSet; }
51 inline void SetTargetGroups(const Aws::Vector<TargetGroupTuple>& value) { m_targetGroupsHasBeenSet = true; m_targetGroups = value; }
52 inline void SetTargetGroups(Aws::Vector<TargetGroupTuple>&& value) { m_targetGroupsHasBeenSet = true; m_targetGroups = std::move(value); }
54 inline ForwardActionConfig& WithTargetGroups(Aws::Vector<TargetGroupTuple>&& value) { SetTargetGroups(std::move(value)); return *this;}
55 inline ForwardActionConfig& AddTargetGroups(const TargetGroupTuple& value) { m_targetGroupsHasBeenSet = true; m_targetGroups.push_back(value); return *this; }
56 inline ForwardActionConfig& AddTargetGroups(TargetGroupTuple&& value) { m_targetGroupsHasBeenSet = true; m_targetGroups.push_back(std::move(value)); return *this; }
58
60
63 inline const TargetGroupStickinessConfig& GetTargetGroupStickinessConfig() const{ return m_targetGroupStickinessConfig; }
64 inline bool TargetGroupStickinessConfigHasBeenSet() const { return m_targetGroupStickinessConfigHasBeenSet; }
65 inline void SetTargetGroupStickinessConfig(const TargetGroupStickinessConfig& value) { m_targetGroupStickinessConfigHasBeenSet = true; m_targetGroupStickinessConfig = value; }
66 inline void SetTargetGroupStickinessConfig(TargetGroupStickinessConfig&& value) { m_targetGroupStickinessConfigHasBeenSet = true; m_targetGroupStickinessConfig = std::move(value); }
70 private:
71
72 Aws::Vector<TargetGroupTuple> m_targetGroups;
73 bool m_targetGroupsHasBeenSet = false;
74
75 TargetGroupStickinessConfig m_targetGroupStickinessConfig;
76 bool m_targetGroupStickinessConfigHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace ElasticLoadBalancingv2
81} // namespace Aws
ForwardActionConfig & WithTargetGroups(const Aws::Vector< TargetGroupTuple > &value)
AWS_ELASTICLOADBALANCINGV2_API ForwardActionConfig()
AWS_ELASTICLOADBALANCINGV2_API ForwardActionConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTargetGroupStickinessConfig(TargetGroupStickinessConfig &&value)
void SetTargetGroups(Aws::Vector< TargetGroupTuple > &&value)
const Aws::Vector< TargetGroupTuple > & GetTargetGroups() const
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const TargetGroupStickinessConfig & GetTargetGroupStickinessConfig() const
ForwardActionConfig & AddTargetGroups(TargetGroupTuple &&value)
void SetTargetGroups(const Aws::Vector< TargetGroupTuple > &value)
AWS_ELASTICLOADBALANCINGV2_API ForwardActionConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
ForwardActionConfig & WithTargetGroups(Aws::Vector< TargetGroupTuple > &&value)
ForwardActionConfig & WithTargetGroupStickinessConfig(TargetGroupStickinessConfig &&value)
void SetTargetGroupStickinessConfig(const TargetGroupStickinessConfig &value)
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ForwardActionConfig & WithTargetGroupStickinessConfig(const TargetGroupStickinessConfig &value)
ForwardActionConfig & AddTargetGroups(const TargetGroupTuple &value)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream