AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GrpcRouteAction.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/appmesh/model/WeightedTarget.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 AppMesh
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APPMESH_API GrpcRouteAction();
37 AWS_APPMESH_API GrpcRouteAction(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Vector<WeightedTarget>& GetWeightedTargets() const{ return m_weightedTargets; }
48 inline bool WeightedTargetsHasBeenSet() const { return m_weightedTargetsHasBeenSet; }
49 inline void SetWeightedTargets(const Aws::Vector<WeightedTarget>& value) { m_weightedTargetsHasBeenSet = true; m_weightedTargets = value; }
50 inline void SetWeightedTargets(Aws::Vector<WeightedTarget>&& value) { m_weightedTargetsHasBeenSet = true; m_weightedTargets = std::move(value); }
52 inline GrpcRouteAction& WithWeightedTargets(Aws::Vector<WeightedTarget>&& value) { SetWeightedTargets(std::move(value)); return *this;}
53 inline GrpcRouteAction& AddWeightedTargets(const WeightedTarget& value) { m_weightedTargetsHasBeenSet = true; m_weightedTargets.push_back(value); return *this; }
54 inline GrpcRouteAction& AddWeightedTargets(WeightedTarget&& value) { m_weightedTargetsHasBeenSet = true; m_weightedTargets.push_back(std::move(value)); return *this; }
56 private:
57
58 Aws::Vector<WeightedTarget> m_weightedTargets;
59 bool m_weightedTargetsHasBeenSet = false;
60 };
61
62} // namespace Model
63} // namespace AppMesh
64} // namespace Aws
GrpcRouteAction & AddWeightedTargets(const WeightedTarget &value)
const Aws::Vector< WeightedTarget > & GetWeightedTargets() const
AWS_APPMESH_API GrpcRouteAction & operator=(Aws::Utils::Json::JsonView jsonValue)
GrpcRouteAction & WithWeightedTargets(const Aws::Vector< WeightedTarget > &value)
GrpcRouteAction & WithWeightedTargets(Aws::Vector< WeightedTarget > &&value)
GrpcRouteAction & AddWeightedTargets(WeightedTarget &&value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetWeightedTargets(const Aws::Vector< WeightedTarget > &value)
AWS_APPMESH_API GrpcRouteAction(Aws::Utils::Json::JsonView jsonValue)
void SetWeightedTargets(Aws::Vector< WeightedTarget > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue