AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAction(const GrpcGatewayRouteAction& value) { m_actionHasBeenSet = true; m_action = value; }
48 inline void SetAction(GrpcGatewayRouteAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
49 inline GrpcGatewayRoute& WithAction(const GrpcGatewayRouteAction& value) { SetAction(value); return *this;}
50 inline GrpcGatewayRoute& WithAction(GrpcGatewayRouteAction&& value) { SetAction(std::move(value)); return *this;}
52
54
57 inline const GrpcGatewayRouteMatch& GetMatch() const{ return m_match; }
58 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
59 inline void SetMatch(const GrpcGatewayRouteMatch& value) { m_matchHasBeenSet = true; m_match = value; }
60 inline void SetMatch(GrpcGatewayRouteMatch&& value) { m_matchHasBeenSet = true; m_match = std::move(value); }
61 inline GrpcGatewayRoute& WithMatch(const GrpcGatewayRouteMatch& value) { SetMatch(value); return *this;}
62 inline GrpcGatewayRoute& WithMatch(GrpcGatewayRouteMatch&& value) { SetMatch(std::move(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)
GrpcGatewayRoute & WithAction(GrpcGatewayRouteAction &&value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAction(const GrpcGatewayRouteAction &value)
GrpcGatewayRoute & WithMatch(GrpcGatewayRouteMatch &&value)
void SetMatch(GrpcGatewayRouteMatch &&value)
GrpcGatewayRoute & WithMatch(const GrpcGatewayRouteMatch &value)
void SetMatch(const GrpcGatewayRouteMatch &value)
const GrpcGatewayRouteMatch & GetMatch() const
const GrpcGatewayRouteAction & GetAction() const
void SetAction(GrpcGatewayRouteAction &&value)
GrpcGatewayRoute & WithAction(const GrpcGatewayRouteAction &value)
AWS_APPMESH_API GrpcGatewayRoute(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue