AWS SDK for C++  1.9.131
AWS SDK for C++
HttpGatewayRoute.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 HttpGatewayRouteAction& GetAction() const{ return m_action; }
46 
50  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
51 
55  inline void SetAction(const HttpGatewayRouteAction& value) { m_actionHasBeenSet = true; m_action = value; }
56 
60  inline void SetAction(HttpGatewayRouteAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
61 
65  inline HttpGatewayRoute& WithAction(const HttpGatewayRouteAction& value) { SetAction(value); return *this;}
66 
70  inline HttpGatewayRoute& WithAction(HttpGatewayRouteAction&& value) { SetAction(std::move(value)); return *this;}
71 
72 
76  inline const HttpGatewayRouteMatch& GetMatch() const{ return m_match; }
77 
81  inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
82 
86  inline void SetMatch(const HttpGatewayRouteMatch& value) { m_matchHasBeenSet = true; m_match = value; }
87 
91  inline void SetMatch(HttpGatewayRouteMatch&& value) { m_matchHasBeenSet = true; m_match = std::move(value); }
92 
96  inline HttpGatewayRoute& WithMatch(const HttpGatewayRouteMatch& value) { SetMatch(value); return *this;}
97 
101  inline HttpGatewayRoute& WithMatch(HttpGatewayRouteMatch&& value) { SetMatch(std::move(value)); return *this;}
102 
103  private:
104 
105  HttpGatewayRouteAction m_action;
106  bool m_actionHasBeenSet;
107 
108  HttpGatewayRouteMatch m_match;
109  bool m_matchHasBeenSet;
110  };
111 
112 } // namespace Model
113 } // namespace AppMesh
114 } // namespace Aws
HttpGatewayRouteMatch.h
Aws::AppMesh::Model::HttpGatewayRoute::HttpGatewayRoute
HttpGatewayRoute(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::HttpGatewayRoute::SetAction
void SetAction(const HttpGatewayRouteAction &value)
Definition: HttpGatewayRoute.h:55
HttpGatewayRouteAction.h
Aws::AppMesh::Model::HttpGatewayRoute::HttpGatewayRoute
HttpGatewayRoute()
AppMesh_EXPORTS.h
Aws::AppMesh::Model::HttpGatewayRoute::WithMatch
HttpGatewayRoute & WithMatch(HttpGatewayRouteMatch &&value)
Definition: HttpGatewayRoute.h:101
Aws::AppMesh::Model::HttpGatewayRoute::operator=
HttpGatewayRoute & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::HttpGatewayRoute::SetAction
void SetAction(HttpGatewayRouteAction &&value)
Definition: HttpGatewayRoute.h:60
Aws::AppMesh::Model::HttpGatewayRoute
Definition: HttpGatewayRoute.h:34
Aws::AppMesh::Model::HttpGatewayRoute::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: HttpGatewayRoute.h:50
Aws::AppMesh::Model::HttpGatewayRoute::MatchHasBeenSet
bool MatchHasBeenSet() const
Definition: HttpGatewayRoute.h:81
Aws::AppMesh::Model::HttpGatewayRoute::WithAction
HttpGatewayRoute & WithAction(HttpGatewayRouteAction &&value)
Definition: HttpGatewayRoute.h:70
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppMesh::Model::HttpGatewayRoute::SetMatch
void SetMatch(const HttpGatewayRouteMatch &value)
Definition: HttpGatewayRoute.h:86
Aws::AppMesh::Model::HttpGatewayRoute::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::HttpGatewayRoute::SetMatch
void SetMatch(HttpGatewayRouteMatch &&value)
Definition: HttpGatewayRoute.h:91
Aws::AppMesh::Model::HttpGatewayRoute::GetAction
const HttpGatewayRouteAction & GetAction() const
Definition: HttpGatewayRoute.h:45
Aws::AppMesh::Model::HttpGatewayRoute::WithMatch
HttpGatewayRoute & WithMatch(const HttpGatewayRouteMatch &value)
Definition: HttpGatewayRoute.h:96
Aws::AppMesh::Model::HttpGatewayRouteAction
Definition: HttpGatewayRouteAction.h:34
Aws::AppMesh::Model::HttpGatewayRoute::GetMatch
const HttpGatewayRouteMatch & GetMatch() const
Definition: HttpGatewayRoute.h:76
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::HttpGatewayRoute::WithAction
HttpGatewayRoute & WithAction(const HttpGatewayRouteAction &value)
Definition: HttpGatewayRoute.h:65
Aws::AppMesh::Model::HttpGatewayRouteMatch
Definition: HttpGatewayRouteMatch.h:39
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28