AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename WeightedTargetsT = Aws::Vector<WeightedTarget>>
50 void SetWeightedTargets(WeightedTargetsT&& value) { m_weightedTargetsHasBeenSet = true; m_weightedTargets = std::forward<WeightedTargetsT>(value); }
51 template<typename WeightedTargetsT = Aws::Vector<WeightedTarget>>
52 HttpRouteAction& WithWeightedTargets(WeightedTargetsT&& value) { SetWeightedTargets(std::forward<WeightedTargetsT>(value)); return *this;}
53 template<typename WeightedTargetsT = WeightedTarget>
54 HttpRouteAction& AddWeightedTargets(WeightedTargetsT&& value) { m_weightedTargetsHasBeenSet = true; m_weightedTargets.emplace_back(std::forward<WeightedTargetsT>(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
const Aws::Vector< WeightedTarget > & GetWeightedTargets() const
AWS_APPMESH_API HttpRouteAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPMESH_API HttpRouteAction(Aws::Utils::Json::JsonView jsonValue)
HttpRouteAction & WithWeightedTargets(WeightedTargetsT &&value)
HttpRouteAction & AddWeightedTargets(WeightedTargetsT &&value)
AWS_APPMESH_API HttpRouteAction()=default
void SetWeightedTargets(WeightedTargetsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue