AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename TargetGroupsT = Aws::Vector<TargetGroupTuple>>
52 void SetTargetGroups(TargetGroupsT&& value) { m_targetGroupsHasBeenSet = true; m_targetGroups = std::forward<TargetGroupsT>(value); }
53 template<typename TargetGroupsT = Aws::Vector<TargetGroupTuple>>
54 ForwardActionConfig& WithTargetGroups(TargetGroupsT&& value) { SetTargetGroups(std::forward<TargetGroupsT>(value)); return *this;}
55 template<typename TargetGroupsT = TargetGroupTuple>
56 ForwardActionConfig& AddTargetGroups(TargetGroupsT&& value) { m_targetGroupsHasBeenSet = true; m_targetGroups.emplace_back(std::forward<TargetGroupsT>(value)); return *this; }
58
60
63 inline const TargetGroupStickinessConfig& GetTargetGroupStickinessConfig() const { return m_targetGroupStickinessConfig; }
64 inline bool TargetGroupStickinessConfigHasBeenSet() const { return m_targetGroupStickinessConfigHasBeenSet; }
65 template<typename TargetGroupStickinessConfigT = TargetGroupStickinessConfig>
66 void SetTargetGroupStickinessConfig(TargetGroupStickinessConfigT&& value) { m_targetGroupStickinessConfigHasBeenSet = true; m_targetGroupStickinessConfig = std::forward<TargetGroupStickinessConfigT>(value); }
67 template<typename TargetGroupStickinessConfigT = TargetGroupStickinessConfig>
68 ForwardActionConfig& WithTargetGroupStickinessConfig(TargetGroupStickinessConfigT&& value) { SetTargetGroupStickinessConfig(std::forward<TargetGroupStickinessConfigT>(value)); return *this;}
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(TargetGroupsT &&value)
AWS_ELASTICLOADBALANCINGV2_API ForwardActionConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCINGV2_API ForwardActionConfig()=default
ForwardActionConfig & AddTargetGroups(TargetGroupsT &&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 & WithTargetGroupStickinessConfig(TargetGroupStickinessConfigT &&value)
void SetTargetGroupStickinessConfig(TargetGroupStickinessConfigT &&value)
AWS_ELASTICLOADBALANCINGV2_API ForwardActionConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream