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

Information about how traffic will be distributed between multiple target * groups in a forward rule.

See Also:

AWS * API Reference

*/ class TargetGroupTuple { public: AWS_ELASTICLOADBALANCINGV2_API TargetGroupTuple(); AWS_ELASTICLOADBALANCINGV2_API TargetGroupTuple(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICLOADBALANCINGV2_API TargetGroupTuple& 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 Amazon Resource Name (ARN) of the target group.

*/ inline const Aws::String& GetTargetGroupArn() const{ return m_targetGroupArn; } /** *

The Amazon Resource Name (ARN) of the target group.

*/ inline bool TargetGroupArnHasBeenSet() const { return m_targetGroupArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the target group.

*/ inline void SetTargetGroupArn(const Aws::String& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = value; } /** *

The Amazon Resource Name (ARN) of the target group.

*/ inline void SetTargetGroupArn(Aws::String&& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the target group.

*/ inline void SetTargetGroupArn(const char* value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the target group.

*/ inline TargetGroupTuple& WithTargetGroupArn(const Aws::String& value) { SetTargetGroupArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the target group.

*/ inline TargetGroupTuple& WithTargetGroupArn(Aws::String&& value) { SetTargetGroupArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the target group.

*/ inline TargetGroupTuple& WithTargetGroupArn(const char* value) { SetTargetGroupArn(value); return *this;} /** *

The weight. The range is 0 to 999.

*/ inline int GetWeight() const{ return m_weight; } /** *

The weight. The range is 0 to 999.

*/ inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; } /** *

The weight. The range is 0 to 999.

*/ inline void SetWeight(int value) { m_weightHasBeenSet = true; m_weight = value; } /** *

The weight. The range is 0 to 999.

*/ inline TargetGroupTuple& WithWeight(int value) { SetWeight(value); return *this;} private: Aws::String m_targetGroupArn; bool m_targetGroupArnHasBeenSet = false; int m_weight; bool m_weightHasBeenSet = false; }; } // namespace Model } // namespace ElasticLoadBalancingv2 } // namespace Aws