AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HttpRouteAction.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 HttpRouteAction();
37 AWS_APPMESH_API HttpRouteAction(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 HttpRouteAction& WithWeightedTargets(Aws::Vector<WeightedTarget>&& value) { SetWeightedTargets(std::move(value)); return *this;}
53 inline HttpRouteAction& AddWeightedTargets(const WeightedTarget& value) { m_weightedTargetsHasBeenSet = true; m_weightedTargets.push_back(value); return *this; }
54 inline HttpRouteAction& 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
HttpRouteAction & WithWeightedTargets(Aws::Vector< WeightedTarget > &&value)
const Aws::Vector< WeightedTarget > & GetWeightedTargets() const
void SetWeightedTargets(const Aws::Vector< WeightedTarget > &value)
AWS_APPMESH_API HttpRouteAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetWeightedTargets(Aws::Vector< WeightedTarget > &&value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPMESH_API HttpRouteAction(Aws::Utils::Json::JsonView jsonValue)
HttpRouteAction & AddWeightedTargets(const WeightedTarget &value)
HttpRouteAction & WithWeightedTargets(const Aws::Vector< WeightedTarget > &value)
HttpRouteAction & AddWeightedTargets(WeightedTarget &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue