AWS SDK for C++  1.9.20
AWS SDK for C++
HttpRouteAction.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace AppMesh
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
46  inline const Aws::Vector<WeightedTarget>& GetWeightedTargets() const{ return m_weightedTargets; }
47 
52  inline bool WeightedTargetsHasBeenSet() const { return m_weightedTargetsHasBeenSet; }
53 
58  inline void SetWeightedTargets(const Aws::Vector<WeightedTarget>& value) { m_weightedTargetsHasBeenSet = true; m_weightedTargets = value; }
59 
64  inline void SetWeightedTargets(Aws::Vector<WeightedTarget>&& value) { m_weightedTargetsHasBeenSet = true; m_weightedTargets = std::move(value); }
65 
70  inline HttpRouteAction& WithWeightedTargets(const Aws::Vector<WeightedTarget>& value) { SetWeightedTargets(value); return *this;}
71 
76  inline HttpRouteAction& WithWeightedTargets(Aws::Vector<WeightedTarget>&& value) { SetWeightedTargets(std::move(value)); return *this;}
77 
82  inline HttpRouteAction& AddWeightedTargets(const WeightedTarget& value) { m_weightedTargetsHasBeenSet = true; m_weightedTargets.push_back(value); return *this; }
83 
88  inline HttpRouteAction& AddWeightedTargets(WeightedTarget&& value) { m_weightedTargetsHasBeenSet = true; m_weightedTargets.push_back(std::move(value)); return *this; }
89 
90  private:
91 
92  Aws::Vector<WeightedTarget> m_weightedTargets;
93  bool m_weightedTargetsHasBeenSet;
94  };
95 
96 } // namespace Model
97 } // namespace AppMesh
98 } // namespace Aws
Aws::AppMesh::Model::HttpRouteAction::SetWeightedTargets
void SetWeightedTargets(const Aws::Vector< WeightedTarget > &value)
Definition: HttpRouteAction.h:58
Aws::AppMesh::Model::HttpRouteAction::WeightedTargetsHasBeenSet
bool WeightedTargetsHasBeenSet() const
Definition: HttpRouteAction.h:52
Aws::AppMesh::Model::HttpRouteAction::SetWeightedTargets
void SetWeightedTargets(Aws::Vector< WeightedTarget > &&value)
Definition: HttpRouteAction.h:64
Aws::AppMesh::Model::HttpRouteAction::WithWeightedTargets
HttpRouteAction & WithWeightedTargets(const Aws::Vector< WeightedTarget > &value)
Definition: HttpRouteAction.h:70
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AppMesh::Model::HttpRouteAction::HttpRouteAction
HttpRouteAction()
AppMesh_EXPORTS.h
AWSVector.h
Aws::AppMesh::Model::HttpRouteAction::HttpRouteAction
HttpRouteAction(Aws::Utils::Json::JsonView jsonValue)
WeightedTarget.h
Aws::AppMesh::Model::WeightedTarget
Definition: WeightedTarget.h:36
Aws::AppMesh::Model::HttpRouteAction::WithWeightedTargets
HttpRouteAction & WithWeightedTargets(Aws::Vector< WeightedTarget > &&value)
Definition: HttpRouteAction.h:76
Aws::AppMesh::Model::HttpRouteAction::AddWeightedTargets
HttpRouteAction & AddWeightedTargets(WeightedTarget &&value)
Definition: HttpRouteAction.h:88
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::AppMesh::Model::HttpRouteAction::GetWeightedTargets
const Aws::Vector< WeightedTarget > & GetWeightedTargets() const
Definition: HttpRouteAction.h:46
Aws::AppMesh::Model::HttpRouteAction
Definition: HttpRouteAction.h:34
Aws::AppMesh::Model::HttpRouteAction::operator=
HttpRouteAction & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::HttpRouteAction::AddWeightedTargets
HttpRouteAction & AddWeightedTargets(const WeightedTarget &value)
Definition: HttpRouteAction.h:82
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::HttpRouteAction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28