AWS SDK for C++  1.9.126
AWS SDK for C++
HttpGatewayRouteAction.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 
45  inline const HttpGatewayRouteRewrite& GetRewrite() const{ return m_rewrite; }
46 
50  inline bool RewriteHasBeenSet() const { return m_rewriteHasBeenSet; }
51 
55  inline void SetRewrite(const HttpGatewayRouteRewrite& value) { m_rewriteHasBeenSet = true; m_rewrite = value; }
56 
60  inline void SetRewrite(HttpGatewayRouteRewrite&& value) { m_rewriteHasBeenSet = true; m_rewrite = std::move(value); }
61 
65  inline HttpGatewayRouteAction& WithRewrite(const HttpGatewayRouteRewrite& value) { SetRewrite(value); return *this;}
66 
70  inline HttpGatewayRouteAction& WithRewrite(HttpGatewayRouteRewrite&& value) { SetRewrite(std::move(value)); return *this;}
71 
72 
77  inline const GatewayRouteTarget& GetTarget() const{ return m_target; }
78 
83  inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
84 
89  inline void SetTarget(const GatewayRouteTarget& value) { m_targetHasBeenSet = true; m_target = value; }
90 
95  inline void SetTarget(GatewayRouteTarget&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
96 
101  inline HttpGatewayRouteAction& WithTarget(const GatewayRouteTarget& value) { SetTarget(value); return *this;}
102 
107  inline HttpGatewayRouteAction& WithTarget(GatewayRouteTarget&& value) { SetTarget(std::move(value)); return *this;}
108 
109  private:
110 
111  HttpGatewayRouteRewrite m_rewrite;
112  bool m_rewriteHasBeenSet;
113 
114  GatewayRouteTarget m_target;
115  bool m_targetHasBeenSet;
116  };
117 
118 } // namespace Model
119 } // namespace AppMesh
120 } // namespace Aws
GatewayRouteTarget.h
Aws::AppMesh::Model::HttpGatewayRouteAction::HttpGatewayRouteAction
HttpGatewayRouteAction()
Aws::AppMesh::Model::HttpGatewayRouteAction::GetRewrite
const HttpGatewayRouteRewrite & GetRewrite() const
Definition: HttpGatewayRouteAction.h:45
Aws::AppMesh::Model::HttpGatewayRouteAction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::HttpGatewayRouteAction::GetTarget
const GatewayRouteTarget & GetTarget() const
Definition: HttpGatewayRouteAction.h:77
Aws::AppMesh::Model::HttpGatewayRouteAction::HttpGatewayRouteAction
HttpGatewayRouteAction(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::HttpGatewayRouteAction::SetTarget
void SetTarget(const GatewayRouteTarget &value)
Definition: HttpGatewayRouteAction.h:89
Aws::AppMesh::Model::HttpGatewayRouteAction::WithRewrite
HttpGatewayRouteAction & WithRewrite(const HttpGatewayRouteRewrite &value)
Definition: HttpGatewayRouteAction.h:65
AppMesh_EXPORTS.h
Aws::AppMesh::Model::HttpGatewayRouteAction::TargetHasBeenSet
bool TargetHasBeenSet() const
Definition: HttpGatewayRouteAction.h:83
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppMesh::Model::GatewayRouteTarget
Definition: GatewayRouteTarget.h:33
HttpGatewayRouteRewrite.h
Aws::AppMesh::Model::HttpGatewayRouteAction::WithTarget
HttpGatewayRouteAction & WithTarget(GatewayRouteTarget &&value)
Definition: HttpGatewayRouteAction.h:107
Aws::AppMesh::Model::HttpGatewayRouteAction::SetRewrite
void SetRewrite(const HttpGatewayRouteRewrite &value)
Definition: HttpGatewayRouteAction.h:55
Aws::AppMesh::Model::HttpGatewayRouteAction::operator=
HttpGatewayRouteAction & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::HttpGatewayRouteAction
Definition: HttpGatewayRouteAction.h:34
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::HttpGatewayRouteAction::SetTarget
void SetTarget(GatewayRouteTarget &&value)
Definition: HttpGatewayRouteAction.h:95
Aws::AppMesh::Model::HttpGatewayRouteAction::SetRewrite
void SetRewrite(HttpGatewayRouteRewrite &&value)
Definition: HttpGatewayRouteAction.h:60
Aws::AppMesh::Model::HttpGatewayRouteAction::WithTarget
HttpGatewayRouteAction & WithTarget(const GatewayRouteTarget &value)
Definition: HttpGatewayRouteAction.h:101
Aws::AppMesh::Model::HttpGatewayRouteAction::WithRewrite
HttpGatewayRouteAction & WithRewrite(HttpGatewayRouteRewrite &&value)
Definition: HttpGatewayRouteAction.h:70
Aws::AppMesh::Model::HttpGatewayRouteRewrite
Definition: HttpGatewayRouteRewrite.h:35
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::HttpGatewayRouteAction::RewriteHasBeenSet
bool RewriteHasBeenSet() const
Definition: HttpGatewayRouteAction.h:50