AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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
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
29 public:
30 AWS_APPMESH_API GrpcGatewayRoute() = default;
31 AWS_APPMESH_API GrpcGatewayRoute(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const GrpcGatewayRouteAction& GetAction() const { return m_action; }
40 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
41 template <typename ActionT = GrpcGatewayRouteAction>
42 void SetAction(ActionT&& value) {
43 m_actionHasBeenSet = true;
44 m_action = std::forward<ActionT>(value);
45 }
46 template <typename ActionT = GrpcGatewayRouteAction>
47 GrpcGatewayRoute& WithAction(ActionT&& value) {
48 SetAction(std::forward<ActionT>(value));
49 return *this;
50 }
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) {
61 m_matchHasBeenSet = true;
62 m_match = std::forward<MatchT>(value);
63 }
64 template <typename MatchT = GrpcGatewayRouteMatch>
65 GrpcGatewayRoute& WithMatch(MatchT&& value) {
66 SetMatch(std::forward<MatchT>(value));
67 return *this;
68 }
70 private:
72
74 bool m_actionHasBeenSet = false;
75 bool m_matchHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace AppMesh
80} // 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