/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace ElasticLoadBalancingv2 { namespace Model { /** *

Information about a forward action.

See Also:

AWS * API Reference

*/ class ForwardActionConfig { public: AWS_ELASTICLOADBALANCINGV2_API ForwardActionConfig(); AWS_ELASTICLOADBALANCINGV2_API ForwardActionConfig(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICLOADBALANCINGV2_API ForwardActionConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The target groups. For Network Load Balancers, you can specify a single * target group.

*/ inline const Aws::Vector& GetTargetGroups() const{ return m_targetGroups; } /** *

The target groups. For Network Load Balancers, you can specify a single * target group.

*/ inline bool TargetGroupsHasBeenSet() const { return m_targetGroupsHasBeenSet; } /** *

The target groups. For Network Load Balancers, you can specify a single * target group.

*/ inline void SetTargetGroups(const Aws::Vector& value) { m_targetGroupsHasBeenSet = true; m_targetGroups = value; } /** *

The target groups. For Network Load Balancers, you can specify a single * target group.

*/ inline void SetTargetGroups(Aws::Vector&& value) { m_targetGroupsHasBeenSet = true; m_targetGroups = std::move(value); } /** *

The target groups. For Network Load Balancers, you can specify a single * target group.

*/ inline ForwardActionConfig& WithTargetGroups(const Aws::Vector& value) { SetTargetGroups(value); return *this;} /** *

The target groups. For Network Load Balancers, you can specify a single * target group.

*/ inline ForwardActionConfig& WithTargetGroups(Aws::Vector&& value) { SetTargetGroups(std::move(value)); return *this;} /** *

The target groups. For Network Load Balancers, you can specify a single * target group.

*/ inline ForwardActionConfig& AddTargetGroups(const TargetGroupTuple& value) { m_targetGroupsHasBeenSet = true; m_targetGroups.push_back(value); return *this; } /** *

The target groups. For Network Load Balancers, you can specify a single * target group.

*/ inline ForwardActionConfig& AddTargetGroups(TargetGroupTuple&& value) { m_targetGroupsHasBeenSet = true; m_targetGroups.push_back(std::move(value)); return *this; } /** *

The target group stickiness for the rule.

*/ inline const TargetGroupStickinessConfig& GetTargetGroupStickinessConfig() const{ return m_targetGroupStickinessConfig; } /** *

The target group stickiness for the rule.

*/ inline bool TargetGroupStickinessConfigHasBeenSet() const { return m_targetGroupStickinessConfigHasBeenSet; } /** *

The target group stickiness for the rule.

*/ inline void SetTargetGroupStickinessConfig(const TargetGroupStickinessConfig& value) { m_targetGroupStickinessConfigHasBeenSet = true; m_targetGroupStickinessConfig = value; } /** *

The target group stickiness for the rule.

*/ inline void SetTargetGroupStickinessConfig(TargetGroupStickinessConfig&& value) { m_targetGroupStickinessConfigHasBeenSet = true; m_targetGroupStickinessConfig = std::move(value); } /** *

The target group stickiness for the rule.

*/ inline ForwardActionConfig& WithTargetGroupStickinessConfig(const TargetGroupStickinessConfig& value) { SetTargetGroupStickinessConfig(value); return *this;} /** *

The target group stickiness for the rule.

*/ inline ForwardActionConfig& WithTargetGroupStickinessConfig(TargetGroupStickinessConfig&& value) { SetTargetGroupStickinessConfig(std::move(value)); return *this;} private: Aws::Vector m_targetGroups; bool m_targetGroupsHasBeenSet = false; TargetGroupStickinessConfig m_targetGroupStickinessConfig; bool m_targetGroupStickinessConfigHasBeenSet = false; }; } // namespace Model } // namespace ElasticLoadBalancingv2 } // namespace Aws