/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about how traffic will be distributed between multiple target
* groups in a forward rule.See Also:
AWS
* API Reference
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