AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
GrpcGatewayRoute.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/GrpcGatewayRouteAction.h>
9#include <aws/appmesh/model/GrpcGatewayRouteMatch.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
33 {
34 public:
35 AWS_APPMESH_API GrpcGatewayRoute() = default;
36 AWS_APPMESH_API GrpcGatewayRoute(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const GrpcGatewayRouteAction& GetAction() const { return m_action; }
46 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
47 template<typename ActionT = GrpcGatewayRouteAction>
48 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
49 template<typename ActionT = GrpcGatewayRouteAction>
50 GrpcGatewayRoute& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
52
54
57 inline const GrpcGatewayRouteMatch& GetMatch() const { return m_match; }
58 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
59 template<typename MatchT = GrpcGatewayRouteMatch>
60 void SetMatch(MatchT&& value) { m_matchHasBeenSet = true; m_match = std::forward<MatchT>(value); }
61 template<typename MatchT = GrpcGatewayRouteMatch>
62 GrpcGatewayRoute& WithMatch(MatchT&& value) { SetMatch(std::forward<MatchT>(value)); return *this;}
64 private:
65
67 bool m_actionHasBeenSet = false;
68
70 bool m_matchHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace AppMesh
75} // namespace Aws
AWS_APPMESH_API GrpcGatewayRoute & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
GrpcGatewayRoute & WithMatch(MatchT &&value)
AWS_APPMESH_API GrpcGatewayRoute()=default
const GrpcGatewayRouteMatch & GetMatch() const
const GrpcGatewayRouteAction & GetAction() const
GrpcGatewayRoute & WithAction(ActionT &&value)
AWS_APPMESH_API GrpcGatewayRoute(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue