AWS SDK for C++  1.9.20
AWS SDK for C++
HttpGatewayRouteAction.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace AppMesh
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
45  inline const GatewayRouteTarget& GetTarget() const{ return m_target; }
46 
51  inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
52 
57  inline void SetTarget(const GatewayRouteTarget& value) { m_targetHasBeenSet = true; m_target = value; }
58 
63  inline void SetTarget(GatewayRouteTarget&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
64 
69  inline HttpGatewayRouteAction& WithTarget(const GatewayRouteTarget& value) { SetTarget(value); return *this;}
70 
75  inline HttpGatewayRouteAction& WithTarget(GatewayRouteTarget&& value) { SetTarget(std::move(value)); return *this;}
76 
77  private:
78 
79  GatewayRouteTarget m_target;
80  bool m_targetHasBeenSet;
81  };
82 
83 } // namespace Model
84 } // namespace AppMesh
85 } // namespace Aws
GatewayRouteTarget.h
Aws::AppMesh::Model::HttpGatewayRouteAction::HttpGatewayRouteAction
HttpGatewayRouteAction()
Aws::AppMesh::Model::HttpGatewayRouteAction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::HttpGatewayRouteAction::GetTarget
const GatewayRouteTarget & GetTarget() const
Definition: HttpGatewayRouteAction.h:45
Aws::AppMesh::Model::HttpGatewayRouteAction::HttpGatewayRouteAction
HttpGatewayRouteAction(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::HttpGatewayRouteAction::SetTarget
void SetTarget(const GatewayRouteTarget &value)
Definition: HttpGatewayRouteAction.h:57
AppMesh_EXPORTS.h
Aws::AppMesh::Model::HttpGatewayRouteAction::TargetHasBeenSet
bool TargetHasBeenSet() const
Definition: HttpGatewayRouteAction.h:51
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::AppMesh::Model::GatewayRouteTarget
Definition: GatewayRouteTarget.h:33
Aws::AppMesh::Model::HttpGatewayRouteAction::WithTarget
HttpGatewayRouteAction & WithTarget(GatewayRouteTarget &&value)
Definition: HttpGatewayRouteAction.h:75
Aws::AppMesh::Model::HttpGatewayRouteAction::operator=
HttpGatewayRouteAction & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::HttpGatewayRouteAction
Definition: HttpGatewayRouteAction.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::HttpGatewayRouteAction::SetTarget
void SetTarget(GatewayRouteTarget &&value)
Definition: HttpGatewayRouteAction.h:63
Aws::AppMesh::Model::HttpGatewayRouteAction::WithTarget
HttpGatewayRouteAction & WithTarget(const GatewayRouteTarget &value)
Definition: HttpGatewayRouteAction.h:69
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28