AWS SDK for C++  1.9.17
AWS SDK for C++
GrpcRouteAction.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 GrpcRouteAction& WithWeightedTargets(const Aws::Vector<WeightedTarget>& value) { SetWeightedTargets(value); return *this;}
71 
76  inline GrpcRouteAction& WithWeightedTargets(Aws::Vector<WeightedTarget>&& value) { SetWeightedTargets(std::move(value)); return *this;}
77 
82  inline GrpcRouteAction& AddWeightedTargets(const WeightedTarget& value) { m_weightedTargetsHasBeenSet = true; m_weightedTargets.push_back(value); return *this; }
83 
88  inline GrpcRouteAction& 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::GrpcRouteAction
Definition: GrpcRouteAction.h:34
Aws::AppMesh::Model::GrpcRouteAction::operator=
GrpcRouteAction & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::GrpcRouteAction::AddWeightedTargets
GrpcRouteAction & AddWeightedTargets(WeightedTarget &&value)
Definition: GrpcRouteAction.h:88
Aws::AppMesh::Model::GrpcRouteAction::GrpcRouteAction
GrpcRouteAction(Aws::Utils::Json::JsonView jsonValue)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AppMesh_EXPORTS.h
AWSVector.h
Aws::AppMesh::Model::GrpcRouteAction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::GrpcRouteAction::GetWeightedTargets
const Aws::Vector< WeightedTarget > & GetWeightedTargets() const
Definition: GrpcRouteAction.h:46
WeightedTarget.h
Aws::AppMesh::Model::WeightedTarget
Definition: WeightedTarget.h:36
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::AppMesh::Model::GrpcRouteAction::WeightedTargetsHasBeenSet
bool WeightedTargetsHasBeenSet() const
Definition: GrpcRouteAction.h:52
Aws::AppMesh::Model::GrpcRouteAction::SetWeightedTargets
void SetWeightedTargets(const Aws::Vector< WeightedTarget > &value)
Definition: GrpcRouteAction.h:58
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::GrpcRouteAction::AddWeightedTargets
GrpcRouteAction & AddWeightedTargets(const WeightedTarget &value)
Definition: GrpcRouteAction.h:82
Aws::AppMesh::Model::GrpcRouteAction::WithWeightedTargets
GrpcRouteAction & WithWeightedTargets(const Aws::Vector< WeightedTarget > &value)
Definition: GrpcRouteAction.h:70
Aws::AppMesh::Model::GrpcRouteAction::GrpcRouteAction
GrpcRouteAction()
Aws::AppMesh::Model::GrpcRouteAction::WithWeightedTargets
GrpcRouteAction & WithWeightedTargets(Aws::Vector< WeightedTarget > &&value)
Definition: GrpcRouteAction.h:76
Aws::AppMesh::Model::GrpcRouteAction::SetWeightedTargets
void SetWeightedTargets(Aws::Vector< WeightedTarget > &&value)
Definition: GrpcRouteAction.h:64
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28