7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/appmesh/model/WeightedTarget.h>
49 template<
typename WeightedTargetsT = Aws::Vector<WeightedTarget>>
50 void SetWeightedTargets(WeightedTargetsT&& value) { m_weightedTargetsHasBeenSet =
true; m_weightedTargets = std::forward<WeightedTargetsT>(value); }
51 template<
typename WeightedTargetsT = Aws::Vector<WeightedTarget>>
53 template<
typename WeightedTargetsT = WeightedTarget>
54 GrpcRouteAction&
AddWeightedTargets(WeightedTargetsT&& value) { m_weightedTargetsHasBeenSet =
true; m_weightedTargets.emplace_back(std::forward<WeightedTargetsT>(value));
return *
this; }
59 bool m_weightedTargetsHasBeenSet =
false;
const Aws::Vector< WeightedTarget > & GetWeightedTargets() const
AWS_APPMESH_API GrpcRouteAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetWeightedTargets(WeightedTargetsT &&value)
GrpcRouteAction & AddWeightedTargets(WeightedTargetsT &&value)
bool WeightedTargetsHasBeenSet() const
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
GrpcRouteAction & WithWeightedTargets(WeightedTargetsT &&value)
AWS_APPMESH_API GrpcRouteAction()=default
AWS_APPMESH_API GrpcRouteAction(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue