/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An object that represents the action to take if a match is
* determined.See Also:
AWS
* API Reference
An object that represents the targets that traffic is routed to when a * request matches the route.
*/ inline const Aws::VectorAn object that represents the targets that traffic is routed to when a * request matches the route.
*/ inline bool WeightedTargetsHasBeenSet() const { return m_weightedTargetsHasBeenSet; } /** *An object that represents the targets that traffic is routed to when a * request matches the route.
*/ inline void SetWeightedTargets(const Aws::VectorAn object that represents the targets that traffic is routed to when a * request matches the route.
*/ inline void SetWeightedTargets(Aws::VectorAn object that represents the targets that traffic is routed to when a * request matches the route.
*/ inline GrpcRouteAction& WithWeightedTargets(const Aws::VectorAn object that represents the targets that traffic is routed to when a * request matches the route.
*/ inline GrpcRouteAction& WithWeightedTargets(Aws::VectorAn object that represents the targets that traffic is routed to when a * request matches the route.
*/ inline GrpcRouteAction& AddWeightedTargets(const WeightedTarget& value) { m_weightedTargetsHasBeenSet = true; m_weightedTargets.push_back(value); return *this; } /** *An object that represents the targets that traffic is routed to when a * request matches the route.
*/ inline GrpcRouteAction& AddWeightedTargets(WeightedTarget&& value) { m_weightedTargetsHasBeenSet = true; m_weightedTargets.push_back(std::move(value)); return *this; } private: Aws::Vector