AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GatewayRouteSpec.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/GrpcGatewayRoute.h>
9#include <aws/appmesh/model/HttpGatewayRoute.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 GatewayRouteSpec();
37 AWS_APPMESH_API GatewayRouteSpec(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const GrpcGatewayRoute& GetGrpcRoute() const{ return m_grpcRoute; }
47 inline bool GrpcRouteHasBeenSet() const { return m_grpcRouteHasBeenSet; }
48 inline void SetGrpcRoute(const GrpcGatewayRoute& value) { m_grpcRouteHasBeenSet = true; m_grpcRoute = value; }
49 inline void SetGrpcRoute(GrpcGatewayRoute&& value) { m_grpcRouteHasBeenSet = true; m_grpcRoute = std::move(value); }
50 inline GatewayRouteSpec& WithGrpcRoute(const GrpcGatewayRoute& value) { SetGrpcRoute(value); return *this;}
51 inline GatewayRouteSpec& WithGrpcRoute(GrpcGatewayRoute&& value) { SetGrpcRoute(std::move(value)); return *this;}
53
55
58 inline const HttpGatewayRoute& GetHttp2Route() const{ return m_http2Route; }
59 inline bool Http2RouteHasBeenSet() const { return m_http2RouteHasBeenSet; }
60 inline void SetHttp2Route(const HttpGatewayRoute& value) { m_http2RouteHasBeenSet = true; m_http2Route = value; }
61 inline void SetHttp2Route(HttpGatewayRoute&& value) { m_http2RouteHasBeenSet = true; m_http2Route = std::move(value); }
62 inline GatewayRouteSpec& WithHttp2Route(const HttpGatewayRoute& value) { SetHttp2Route(value); return *this;}
63 inline GatewayRouteSpec& WithHttp2Route(HttpGatewayRoute&& value) { SetHttp2Route(std::move(value)); return *this;}
65
67
70 inline const HttpGatewayRoute& GetHttpRoute() const{ return m_httpRoute; }
71 inline bool HttpRouteHasBeenSet() const { return m_httpRouteHasBeenSet; }
72 inline void SetHttpRoute(const HttpGatewayRoute& value) { m_httpRouteHasBeenSet = true; m_httpRoute = value; }
73 inline void SetHttpRoute(HttpGatewayRoute&& value) { m_httpRouteHasBeenSet = true; m_httpRoute = std::move(value); }
74 inline GatewayRouteSpec& WithHttpRoute(const HttpGatewayRoute& value) { SetHttpRoute(value); return *this;}
75 inline GatewayRouteSpec& WithHttpRoute(HttpGatewayRoute&& value) { SetHttpRoute(std::move(value)); return *this;}
77
79
82 inline int GetPriority() const{ return m_priority; }
83 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
84 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
85 inline GatewayRouteSpec& WithPriority(int value) { SetPriority(value); return *this;}
87 private:
88
89 GrpcGatewayRoute m_grpcRoute;
90 bool m_grpcRouteHasBeenSet = false;
91
92 HttpGatewayRoute m_http2Route;
93 bool m_http2RouteHasBeenSet = false;
94
95 HttpGatewayRoute m_httpRoute;
96 bool m_httpRouteHasBeenSet = false;
97
98 int m_priority;
99 bool m_priorityHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace AppMesh
104} // namespace Aws
void SetHttpRoute(HttpGatewayRoute &&value)
AWS_APPMESH_API GatewayRouteSpec & operator=(Aws::Utils::Json::JsonView jsonValue)
GatewayRouteSpec & WithGrpcRoute(const GrpcGatewayRoute &value)
void SetHttp2Route(const HttpGatewayRoute &value)
GatewayRouteSpec & WithGrpcRoute(GrpcGatewayRoute &&value)
const HttpGatewayRoute & GetHttp2Route() const
void SetGrpcRoute(GrpcGatewayRoute &&value)
GatewayRouteSpec & WithHttpRoute(const HttpGatewayRoute &value)
GatewayRouteSpec & WithHttp2Route(HttpGatewayRoute &&value)
const GrpcGatewayRoute & GetGrpcRoute() const
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPMESH_API GatewayRouteSpec(Aws::Utils::Json::JsonView jsonValue)
GatewayRouteSpec & WithHttp2Route(const HttpGatewayRoute &value)
const HttpGatewayRoute & GetHttpRoute() const
void SetHttpRoute(const HttpGatewayRoute &value)
GatewayRouteSpec & WithPriority(int value)
void SetGrpcRoute(const GrpcGatewayRoute &value)
GatewayRouteSpec & WithHttpRoute(HttpGatewayRoute &&value)
void SetHttp2Route(HttpGatewayRoute &&value)
Aws::Utils::Json::JsonValue JsonValue