AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
HttpGatewayRoute.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/HttpGatewayRouteAction.h>
9#include <aws/appmesh/model/HttpGatewayRouteMatch.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppMesh
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APPMESH_API HttpGatewayRoute() = default;
37 AWS_APPMESH_API HttpGatewayRoute(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const HttpGatewayRouteAction& GetAction() const { return m_action; }
47 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
48 template<typename ActionT = HttpGatewayRouteAction>
49 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
50 template<typename ActionT = HttpGatewayRouteAction>
51 HttpGatewayRoute& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
53
55
58 inline const HttpGatewayRouteMatch& GetMatch() const { return m_match; }
59 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
60 template<typename MatchT = HttpGatewayRouteMatch>
61 void SetMatch(MatchT&& value) { m_matchHasBeenSet = true; m_match = std::forward<MatchT>(value); }
62 template<typename MatchT = HttpGatewayRouteMatch>
63 HttpGatewayRoute& WithMatch(MatchT&& value) { SetMatch(std::forward<MatchT>(value)); return *this;}
65 private:
66
68 bool m_actionHasBeenSet = false;
69
71 bool m_matchHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace AppMesh
76} // namespace Aws
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
const HttpGatewayRouteAction & GetAction() const
AWS_APPMESH_API HttpGatewayRoute()=default
HttpGatewayRoute & WithAction(ActionT &&value)
AWS_APPMESH_API HttpGatewayRoute & operator=(Aws::Utils::Json::JsonView jsonValue)
const HttpGatewayRouteMatch & GetMatch() const
AWS_APPMESH_API HttpGatewayRoute(Aws::Utils::Json::JsonView jsonValue)
HttpGatewayRoute & WithMatch(MatchT &&value)
Aws::Utils::Json::JsonValue JsonValue