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 TcpRouteAction&
AddWeightedTargets(WeightedTargetsT&& value) { m_weightedTargetsHasBeenSet =
true; m_weightedTargets.emplace_back(std::forward<WeightedTargetsT>(value));
return *
this; }
59 bool m_weightedTargetsHasBeenSet =
false;
TcpRouteAction & WithWeightedTargets(WeightedTargetsT &&value)
AWS_APPMESH_API TcpRouteAction & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< WeightedTarget > & GetWeightedTargets() const
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPMESH_API TcpRouteAction(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API TcpRouteAction()=default
TcpRouteAction & AddWeightedTargets(WeightedTargetsT &&value)
bool WeightedTargetsHasBeenSet() const
void SetWeightedTargets(WeightedTargetsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue