/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the weight of a target group.See Also:
AWS
* API Reference
The ID or Amazon Resource Name (ARN) of the target group.
*/ inline const Aws::String& GetTargetGroupIdentifier() const{ return m_targetGroupIdentifier; } /** *The ID or Amazon Resource Name (ARN) of the target group.
*/ inline bool TargetGroupIdentifierHasBeenSet() const { return m_targetGroupIdentifierHasBeenSet; } /** *The ID or Amazon Resource Name (ARN) of the target group.
*/ inline void SetTargetGroupIdentifier(const Aws::String& value) { m_targetGroupIdentifierHasBeenSet = true; m_targetGroupIdentifier = value; } /** *The ID or Amazon Resource Name (ARN) of the target group.
*/ inline void SetTargetGroupIdentifier(Aws::String&& value) { m_targetGroupIdentifierHasBeenSet = true; m_targetGroupIdentifier = std::move(value); } /** *The ID or Amazon Resource Name (ARN) of the target group.
*/ inline void SetTargetGroupIdentifier(const char* value) { m_targetGroupIdentifierHasBeenSet = true; m_targetGroupIdentifier.assign(value); } /** *The ID or Amazon Resource Name (ARN) of the target group.
*/ inline WeightedTargetGroup& WithTargetGroupIdentifier(const Aws::String& value) { SetTargetGroupIdentifier(value); return *this;} /** *The ID or Amazon Resource Name (ARN) of the target group.
*/ inline WeightedTargetGroup& WithTargetGroupIdentifier(Aws::String&& value) { SetTargetGroupIdentifier(std::move(value)); return *this;} /** *The ID or Amazon Resource Name (ARN) of the target group.
*/ inline WeightedTargetGroup& WithTargetGroupIdentifier(const char* value) { SetTargetGroupIdentifier(value); return *this;} /** *Only required if you specify multiple target groups for a forward action. The * "weight" determines how requests are distributed to the target group. For * example, if you specify two target groups, each with a weight of 10, each target * group receives half the requests. If you specify two target groups, one with a * weight of 10 and the other with a weight of 20, the target group with a weight * of 20 receives twice as many requests as the other target group. If there's only * one target group specified, then the default value is 100.
*/ inline int GetWeight() const{ return m_weight; } /** *Only required if you specify multiple target groups for a forward action. The * "weight" determines how requests are distributed to the target group. For * example, if you specify two target groups, each with a weight of 10, each target * group receives half the requests. If you specify two target groups, one with a * weight of 10 and the other with a weight of 20, the target group with a weight * of 20 receives twice as many requests as the other target group. If there's only * one target group specified, then the default value is 100.
*/ inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; } /** *Only required if you specify multiple target groups for a forward action. The * "weight" determines how requests are distributed to the target group. For * example, if you specify two target groups, each with a weight of 10, each target * group receives half the requests. If you specify two target groups, one with a * weight of 10 and the other with a weight of 20, the target group with a weight * of 20 receives twice as many requests as the other target group. If there's only * one target group specified, then the default value is 100.
*/ inline void SetWeight(int value) { m_weightHasBeenSet = true; m_weight = value; } /** *Only required if you specify multiple target groups for a forward action. The * "weight" determines how requests are distributed to the target group. For * example, if you specify two target groups, each with a weight of 10, each target * group receives half the requests. If you specify two target groups, one with a * weight of 10 and the other with a weight of 20, the target group with a weight * of 20 receives twice as many requests as the other target group. If there's only * one target group specified, then the default value is 100.
*/ inline WeightedTargetGroup& WithWeight(int value) { SetWeight(value); return *this;} private: Aws::String m_targetGroupIdentifier; bool m_targetGroupIdentifierHasBeenSet = false; int m_weight; bool m_weightHasBeenSet = false; }; } // namespace Model } // namespace VPCLattice } // namespace Aws