AWS SDK for C++  1.9.131
AWS SDK for C++
GrpcGatewayRoute.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 
33  {
34  public:
39 
40 
44  inline const GrpcGatewayRouteAction& GetAction() const{ return m_action; }
45 
49  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
50 
54  inline void SetAction(const GrpcGatewayRouteAction& value) { m_actionHasBeenSet = true; m_action = value; }
55 
59  inline void SetAction(GrpcGatewayRouteAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
60 
64  inline GrpcGatewayRoute& WithAction(const GrpcGatewayRouteAction& value) { SetAction(value); return *this;}
65 
69  inline GrpcGatewayRoute& WithAction(GrpcGatewayRouteAction&& value) { SetAction(std::move(value)); return *this;}
70 
71 
75  inline const GrpcGatewayRouteMatch& GetMatch() const{ return m_match; }
76 
80  inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
81 
85  inline void SetMatch(const GrpcGatewayRouteMatch& value) { m_matchHasBeenSet = true; m_match = value; }
86 
90  inline void SetMatch(GrpcGatewayRouteMatch&& value) { m_matchHasBeenSet = true; m_match = std::move(value); }
91 
95  inline GrpcGatewayRoute& WithMatch(const GrpcGatewayRouteMatch& value) { SetMatch(value); return *this;}
96 
100  inline GrpcGatewayRoute& WithMatch(GrpcGatewayRouteMatch&& value) { SetMatch(std::move(value)); return *this;}
101 
102  private:
103 
104  GrpcGatewayRouteAction m_action;
105  bool m_actionHasBeenSet;
106 
107  GrpcGatewayRouteMatch m_match;
108  bool m_matchHasBeenSet;
109  };
110 
111 } // namespace Model
112 } // namespace AppMesh
113 } // namespace Aws
Aws::AppMesh::Model::GrpcGatewayRoute::operator=
GrpcGatewayRoute & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::GrpcGatewayRoute::MatchHasBeenSet
bool MatchHasBeenSet() const
Definition: GrpcGatewayRoute.h:80
Aws::AppMesh::Model::GrpcGatewayRoute::WithAction
GrpcGatewayRoute & WithAction(const GrpcGatewayRouteAction &value)
Definition: GrpcGatewayRoute.h:64
Aws::AppMesh::Model::GrpcGatewayRoute::WithMatch
GrpcGatewayRoute & WithMatch(const GrpcGatewayRouteMatch &value)
Definition: GrpcGatewayRoute.h:95
Aws::AppMesh::Model::GrpcGatewayRoute::SetAction
void SetAction(GrpcGatewayRouteAction &&value)
Definition: GrpcGatewayRoute.h:59
Aws::AppMesh::Model::GrpcGatewayRoute::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::GrpcGatewayRoute::SetAction
void SetAction(const GrpcGatewayRouteAction &value)
Definition: GrpcGatewayRoute.h:54
Aws::AppMesh::Model::GrpcGatewayRoute::GetAction
const GrpcGatewayRouteAction & GetAction() const
Definition: GrpcGatewayRoute.h:44
Aws::AppMesh::Model::GrpcGatewayRoute::SetMatch
void SetMatch(const GrpcGatewayRouteMatch &value)
Definition: GrpcGatewayRoute.h:85
AppMesh_EXPORTS.h
Aws::AppMesh::Model::GrpcGatewayRoute::SetMatch
void SetMatch(GrpcGatewayRouteMatch &&value)
Definition: GrpcGatewayRoute.h:90
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppMesh::Model::GrpcGatewayRoute
Definition: GrpcGatewayRoute.h:33
Aws::AppMesh::Model::GrpcGatewayRoute::GetMatch
const GrpcGatewayRouteMatch & GetMatch() const
Definition: GrpcGatewayRoute.h:75
Aws::AppMesh::Model::GrpcGatewayRoute::WithMatch
GrpcGatewayRoute & WithMatch(GrpcGatewayRouteMatch &&value)
Definition: GrpcGatewayRoute.h:100
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::GrpcGatewayRoute::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: GrpcGatewayRoute.h:49
GrpcGatewayRouteAction.h
GrpcGatewayRouteMatch.h
Aws::AppMesh::Model::GrpcGatewayRoute::WithAction
GrpcGatewayRoute & WithAction(GrpcGatewayRouteAction &&value)
Definition: GrpcGatewayRoute.h:69
Aws::AppMesh::Model::GrpcGatewayRouteMatch
Definition: GrpcGatewayRouteMatch.h:36
Aws::AppMesh::Model::GrpcGatewayRoute::GrpcGatewayRoute
GrpcGatewayRoute()
Aws::AppMesh::Model::GrpcGatewayRouteAction
Definition: GrpcGatewayRouteAction.h:34
Aws::AppMesh::Model::GrpcGatewayRoute::GrpcGatewayRoute
GrpcGatewayRoute(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28