AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ForwardAction.h
1
6#pragma once
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>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace VPCLattice
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_VPCLATTICE_API ForwardAction();
37 AWS_VPCLATTICE_API ForwardAction(Aws::Utils::Json::JsonView jsonValue);
38 AWS_VPCLATTICE_API ForwardAction& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
53 inline const Aws::Vector<WeightedTargetGroup>& GetTargetGroups() const{ return m_targetGroups; }
54 inline bool TargetGroupsHasBeenSet() const { return m_targetGroupsHasBeenSet; }
55 inline void SetTargetGroups(const Aws::Vector<WeightedTargetGroup>& value) { m_targetGroupsHasBeenSet = true; m_targetGroups = value; }
56 inline void SetTargetGroups(Aws::Vector<WeightedTargetGroup>&& value) { m_targetGroupsHasBeenSet = true; m_targetGroups = std::move(value); }
58 inline ForwardAction& WithTargetGroups(Aws::Vector<WeightedTargetGroup>&& value) { SetTargetGroups(std::move(value)); return *this;}
59 inline ForwardAction& AddTargetGroups(const WeightedTargetGroup& value) { m_targetGroupsHasBeenSet = true; m_targetGroups.push_back(value); return *this; }
60 inline ForwardAction& AddTargetGroups(WeightedTargetGroup&& value) { m_targetGroupsHasBeenSet = true; m_targetGroups.push_back(std::move(value)); return *this; }
62 private:
63
65 bool m_targetGroupsHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace VPCLattice
70} // namespace Aws
void SetTargetGroups(Aws::Vector< WeightedTargetGroup > &&value)
AWS_VPCLATTICE_API ForwardAction(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< WeightedTargetGroup > & GetTargetGroups() const
ForwardAction & AddTargetGroups(WeightedTargetGroup &&value)
ForwardAction & AddTargetGroups(const WeightedTargetGroup &value)
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_VPCLATTICE_API ForwardAction & operator=(Aws::Utils::Json::JsonView jsonValue)
ForwardAction & WithTargetGroups(Aws::Vector< WeightedTargetGroup > &&value)
void SetTargetGroups(const Aws::Vector< WeightedTargetGroup > &value)
ForwardAction & WithTargetGroups(const Aws::Vector< WeightedTargetGroup > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue