AWS SDK for C++  1.9.124
AWS SDK for C++
GrpcGatewayRouteAction.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 GrpcGatewayRouteRewrite& GetRewrite() const{ return m_rewrite; }
46 
50  inline bool RewriteHasBeenSet() const { return m_rewriteHasBeenSet; }
51 
55  inline void SetRewrite(const GrpcGatewayRouteRewrite& value) { m_rewriteHasBeenSet = true; m_rewrite = value; }
56 
60  inline void SetRewrite(GrpcGatewayRouteRewrite&& value) { m_rewriteHasBeenSet = true; m_rewrite = std::move(value); }
61 
65  inline GrpcGatewayRouteAction& WithRewrite(const GrpcGatewayRouteRewrite& value) { SetRewrite(value); return *this;}
66 
70  inline GrpcGatewayRouteAction& WithRewrite(GrpcGatewayRouteRewrite&& 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 GrpcGatewayRouteAction& WithTarget(const GatewayRouteTarget& value) { SetTarget(value); return *this;}
102 
107  inline GrpcGatewayRouteAction& WithTarget(GatewayRouteTarget&& value) { SetTarget(std::move(value)); return *this;}
108 
109  private:
110 
111  GrpcGatewayRouteRewrite 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
GrpcGatewayRouteRewrite.h
Aws::AppMesh::Model::GrpcGatewayRouteAction::SetRewrite
void SetRewrite(GrpcGatewayRouteRewrite &&value)
Definition: GrpcGatewayRouteAction.h:60
Aws::AppMesh::Model::GrpcGatewayRouteAction::WithTarget
GrpcGatewayRouteAction & WithTarget(const GatewayRouteTarget &value)
Definition: GrpcGatewayRouteAction.h:101
Aws::AppMesh::Model::GrpcGatewayRouteAction::GrpcGatewayRouteAction
GrpcGatewayRouteAction(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::GrpcGatewayRouteAction::SetRewrite
void SetRewrite(const GrpcGatewayRouteRewrite &value)
Definition: GrpcGatewayRouteAction.h:55
Aws::AppMesh::Model::GrpcGatewayRouteRewrite
Definition: GrpcGatewayRouteRewrite.h:33
Aws::AppMesh::Model::GrpcGatewayRouteAction::TargetHasBeenSet
bool TargetHasBeenSet() const
Definition: GrpcGatewayRouteAction.h:83
Aws::AppMesh::Model::GrpcGatewayRouteAction::GrpcGatewayRouteAction
GrpcGatewayRouteAction()
AppMesh_EXPORTS.h
Aws::AppMesh::Model::GrpcGatewayRouteAction::WithRewrite
GrpcGatewayRouteAction & WithRewrite(const GrpcGatewayRouteRewrite &value)
Definition: GrpcGatewayRouteAction.h:65
Aws::AppMesh::Model::GrpcGatewayRouteAction::GetTarget
const GatewayRouteTarget & GetTarget() const
Definition: GrpcGatewayRouteAction.h:77
Aws::AppMesh::Model::GrpcGatewayRouteAction::SetTarget
void SetTarget(GatewayRouteTarget &&value)
Definition: GrpcGatewayRouteAction.h:95
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppMesh::Model::GrpcGatewayRouteAction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::GatewayRouteTarget
Definition: GatewayRouteTarget.h:33
Aws::AppMesh::Model::GrpcGatewayRouteAction::SetTarget
void SetTarget(const GatewayRouteTarget &value)
Definition: GrpcGatewayRouteAction.h:89
Aws::AppMesh::Model::GrpcGatewayRouteAction::WithTarget
GrpcGatewayRouteAction & WithTarget(GatewayRouteTarget &&value)
Definition: GrpcGatewayRouteAction.h:107
Aws::AppMesh::Model::GrpcGatewayRouteAction::WithRewrite
GrpcGatewayRouteAction & WithRewrite(GrpcGatewayRouteRewrite &&value)
Definition: GrpcGatewayRouteAction.h:70
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::GrpcGatewayRouteAction::GetRewrite
const GrpcGatewayRouteRewrite & GetRewrite() const
Definition: GrpcGatewayRouteAction.h:45
Aws::AppMesh::Model::GrpcGatewayRouteAction::RewriteHasBeenSet
bool RewriteHasBeenSet() const
Definition: GrpcGatewayRouteAction.h:50
Aws::AppMesh::Model::GrpcGatewayRouteAction
Definition: GrpcGatewayRouteAction.h:34
Aws::AppMesh::Model::GrpcGatewayRouteAction::operator=
GrpcGatewayRouteAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28