7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/vpc-lattice/model/WeightedTargetGroup.h>
55 template<
typename TargetGroupsT = Aws::Vector<WeightedTargetGroup>>
56 void SetTargetGroups(TargetGroupsT&& value) { m_targetGroupsHasBeenSet =
true; m_targetGroups = std::forward<TargetGroupsT>(value); }
57 template<
typename TargetGroupsT = Aws::Vector<WeightedTargetGroup>>
59 template<
typename TargetGroupsT = WeightedTargetGroup>
60 ForwardAction&
AddTargetGroups(TargetGroupsT&& value) { m_targetGroupsHasBeenSet =
true; m_targetGroups.emplace_back(std::forward<TargetGroupsT>(value));
return *
this; }
65 bool m_targetGroupsHasBeenSet =
false;
ForwardAction & WithTargetGroups(TargetGroupsT &&value)
AWS_VPCLATTICE_API ForwardAction(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< WeightedTargetGroup > & GetTargetGroups() const
bool TargetGroupsHasBeenSet() const
void SetTargetGroups(TargetGroupsT &&value)
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
ForwardAction & AddTargetGroups(TargetGroupsT &&value)
AWS_VPCLATTICE_API ForwardAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_VPCLATTICE_API ForwardAction()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue