AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ForwardActionConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
10#include <aws/elasticloadbalancingv2/model/TargetGroupStickinessConfig.h>
11#include <aws/elasticloadbalancingv2/model/TargetGroupTuple.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace ElasticLoadBalancingv2 {
22namespace Model {
23
30 public:
31 AWS_ELASTICLOADBALANCINGV2_API ForwardActionConfig() = default;
32 AWS_ELASTICLOADBALANCINGV2_API ForwardActionConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_ELASTICLOADBALANCINGV2_API ForwardActionConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
36 const char* locationValue) const;
37 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::Vector<TargetGroupTuple>& GetTargetGroups() const { return m_targetGroups; }
44 inline bool TargetGroupsHasBeenSet() const { return m_targetGroupsHasBeenSet; }
45 template <typename TargetGroupsT = Aws::Vector<TargetGroupTuple>>
46 void SetTargetGroups(TargetGroupsT&& value) {
47 m_targetGroupsHasBeenSet = true;
48 m_targetGroups = std::forward<TargetGroupsT>(value);
49 }
50 template <typename TargetGroupsT = Aws::Vector<TargetGroupTuple>>
51 ForwardActionConfig& WithTargetGroups(TargetGroupsT&& value) {
52 SetTargetGroups(std::forward<TargetGroupsT>(value));
53 return *this;
54 }
55 template <typename TargetGroupsT = TargetGroupTuple>
56 ForwardActionConfig& AddTargetGroups(TargetGroupsT&& value) {
57 m_targetGroupsHasBeenSet = true;
58 m_targetGroups.emplace_back(std::forward<TargetGroupsT>(value));
59 return *this;
60 }
62
64
67 inline const TargetGroupStickinessConfig& GetTargetGroupStickinessConfig() const { return m_targetGroupStickinessConfig; }
68 inline bool TargetGroupStickinessConfigHasBeenSet() const { return m_targetGroupStickinessConfigHasBeenSet; }
69 template <typename TargetGroupStickinessConfigT = TargetGroupStickinessConfig>
70 void SetTargetGroupStickinessConfig(TargetGroupStickinessConfigT&& value) {
71 m_targetGroupStickinessConfigHasBeenSet = true;
72 m_targetGroupStickinessConfig = std::forward<TargetGroupStickinessConfigT>(value);
73 }
74 template <typename TargetGroupStickinessConfigT = TargetGroupStickinessConfig>
75 ForwardActionConfig& WithTargetGroupStickinessConfig(TargetGroupStickinessConfigT&& value) {
76 SetTargetGroupStickinessConfig(std::forward<TargetGroupStickinessConfigT>(value));
77 return *this;
78 }
80 private:
81 Aws::Vector<TargetGroupTuple> m_targetGroups;
82
83 TargetGroupStickinessConfig m_targetGroupStickinessConfig;
84 bool m_targetGroupsHasBeenSet = false;
85 bool m_targetGroupStickinessConfigHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace ElasticLoadBalancingv2
90} // 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