AWS SDK for C++

AWS SDK for C++ Version 1.11.746

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppMesh {
21namespace Model {
22
30 public:
31 AWS_APPMESH_API HttpGatewayRoute() = default;
32 AWS_APPMESH_API HttpGatewayRoute(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const HttpGatewayRouteAction& GetAction() const { return m_action; }
41 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
42 template <typename ActionT = HttpGatewayRouteAction>
43 void SetAction(ActionT&& value) {
44 m_actionHasBeenSet = true;
45 m_action = std::forward<ActionT>(value);
46 }
47 template <typename ActionT = HttpGatewayRouteAction>
48 HttpGatewayRoute& WithAction(ActionT&& value) {
49 SetAction(std::forward<ActionT>(value));
50 return *this;
51 }
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) {
62 m_matchHasBeenSet = true;
63 m_match = std::forward<MatchT>(value);
64 }
65 template <typename MatchT = HttpGatewayRouteMatch>
66 HttpGatewayRoute& WithMatch(MatchT&& value) {
67 SetMatch(std::forward<MatchT>(value));
68 return *this;
69 }
71 private:
73
75 bool m_actionHasBeenSet = false;
76 bool m_matchHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace AppMesh
81} // 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