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