AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RouteSpec.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/GrpcRoute.h>
9#include <aws/appmesh/model/HttpRoute.h>
10#include <aws/appmesh/model/TcpRoute.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AppMesh
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_APPMESH_API RouteSpec();
38 AWS_APPMESH_API RouteSpec(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPMESH_API RouteSpec& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const GrpcRoute& GetGrpcRoute() const{ return m_grpcRoute; }
48 inline bool GrpcRouteHasBeenSet() const { return m_grpcRouteHasBeenSet; }
49 inline void SetGrpcRoute(const GrpcRoute& value) { m_grpcRouteHasBeenSet = true; m_grpcRoute = value; }
50 inline void SetGrpcRoute(GrpcRoute&& value) { m_grpcRouteHasBeenSet = true; m_grpcRoute = std::move(value); }
51 inline RouteSpec& WithGrpcRoute(const GrpcRoute& value) { SetGrpcRoute(value); return *this;}
52 inline RouteSpec& WithGrpcRoute(GrpcRoute&& value) { SetGrpcRoute(std::move(value)); return *this;}
54
56
59 inline const HttpRoute& GetHttp2Route() const{ return m_http2Route; }
60 inline bool Http2RouteHasBeenSet() const { return m_http2RouteHasBeenSet; }
61 inline void SetHttp2Route(const HttpRoute& value) { m_http2RouteHasBeenSet = true; m_http2Route = value; }
62 inline void SetHttp2Route(HttpRoute&& value) { m_http2RouteHasBeenSet = true; m_http2Route = std::move(value); }
63 inline RouteSpec& WithHttp2Route(const HttpRoute& value) { SetHttp2Route(value); return *this;}
64 inline RouteSpec& WithHttp2Route(HttpRoute&& value) { SetHttp2Route(std::move(value)); return *this;}
66
68
71 inline const HttpRoute& GetHttpRoute() const{ return m_httpRoute; }
72 inline bool HttpRouteHasBeenSet() const { return m_httpRouteHasBeenSet; }
73 inline void SetHttpRoute(const HttpRoute& value) { m_httpRouteHasBeenSet = true; m_httpRoute = value; }
74 inline void SetHttpRoute(HttpRoute&& value) { m_httpRouteHasBeenSet = true; m_httpRoute = std::move(value); }
75 inline RouteSpec& WithHttpRoute(const HttpRoute& value) { SetHttpRoute(value); return *this;}
76 inline RouteSpec& WithHttpRoute(HttpRoute&& value) { SetHttpRoute(std::move(value)); return *this;}
78
80
84 inline int GetPriority() const{ return m_priority; }
85 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
86 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
87 inline RouteSpec& WithPriority(int value) { SetPriority(value); return *this;}
89
91
94 inline const TcpRoute& GetTcpRoute() const{ return m_tcpRoute; }
95 inline bool TcpRouteHasBeenSet() const { return m_tcpRouteHasBeenSet; }
96 inline void SetTcpRoute(const TcpRoute& value) { m_tcpRouteHasBeenSet = true; m_tcpRoute = value; }
97 inline void SetTcpRoute(TcpRoute&& value) { m_tcpRouteHasBeenSet = true; m_tcpRoute = std::move(value); }
98 inline RouteSpec& WithTcpRoute(const TcpRoute& value) { SetTcpRoute(value); return *this;}
99 inline RouteSpec& WithTcpRoute(TcpRoute&& value) { SetTcpRoute(std::move(value)); return *this;}
101 private:
102
103 GrpcRoute m_grpcRoute;
104 bool m_grpcRouteHasBeenSet = false;
105
106 HttpRoute m_http2Route;
107 bool m_http2RouteHasBeenSet = false;
108
109 HttpRoute m_httpRoute;
110 bool m_httpRouteHasBeenSet = false;
111
112 int m_priority;
113 bool m_priorityHasBeenSet = false;
114
115 TcpRoute m_tcpRoute;
116 bool m_tcpRouteHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace AppMesh
121} // namespace Aws
AWS_APPMESH_API RouteSpec(Aws::Utils::Json::JsonView jsonValue)
RouteSpec & WithHttp2Route(HttpRoute &&value)
Definition RouteSpec.h:64
RouteSpec & WithTcpRoute(TcpRoute &&value)
Definition RouteSpec.h:99
RouteSpec & WithTcpRoute(const TcpRoute &value)
Definition RouteSpec.h:98
const GrpcRoute & GetGrpcRoute() const
Definition RouteSpec.h:47
void SetTcpRoute(const TcpRoute &value)
Definition RouteSpec.h:96
void SetHttp2Route(const HttpRoute &value)
Definition RouteSpec.h:61
void SetGrpcRoute(GrpcRoute &&value)
Definition RouteSpec.h:50
RouteSpec & WithGrpcRoute(const GrpcRoute &value)
Definition RouteSpec.h:51
RouteSpec & WithHttpRoute(const HttpRoute &value)
Definition RouteSpec.h:75
RouteSpec & WithHttp2Route(const HttpRoute &value)
Definition RouteSpec.h:63
AWS_APPMESH_API RouteSpec & operator=(Aws::Utils::Json::JsonView jsonValue)
const HttpRoute & GetHttpRoute() const
Definition RouteSpec.h:71
void SetHttp2Route(HttpRoute &&value)
Definition RouteSpec.h:62
void SetGrpcRoute(const GrpcRoute &value)
Definition RouteSpec.h:49
RouteSpec & WithGrpcRoute(GrpcRoute &&value)
Definition RouteSpec.h:52
RouteSpec & WithHttpRoute(HttpRoute &&value)
Definition RouteSpec.h:76
void SetTcpRoute(TcpRoute &&value)
Definition RouteSpec.h:97
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
const HttpRoute & GetHttp2Route() const
Definition RouteSpec.h:59
void SetHttpRoute(HttpRoute &&value)
Definition RouteSpec.h:74
RouteSpec & WithPriority(int value)
Definition RouteSpec.h:87
bool Http2RouteHasBeenSet() const
Definition RouteSpec.h:60
void SetPriority(int value)
Definition RouteSpec.h:86
void SetHttpRoute(const HttpRoute &value)
Definition RouteSpec.h:73
const TcpRoute & GetTcpRoute() const
Definition RouteSpec.h:94
Aws::Utils::Json::JsonValue JsonValue