AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TcpRoute.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/TcpRouteAction.h>
9#include <aws/appmesh/model/TcpRouteMatch.h>
10#include <aws/appmesh/model/TcpTimeout.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
34 {
35 public:
36 AWS_APPMESH_API TcpRoute();
37 AWS_APPMESH_API TcpRoute(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPMESH_API TcpRoute& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const TcpRouteAction& GetAction() const{ return m_action; }
47 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
48 inline void SetAction(const TcpRouteAction& value) { m_actionHasBeenSet = true; m_action = value; }
49 inline void SetAction(TcpRouteAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
50 inline TcpRoute& WithAction(const TcpRouteAction& value) { SetAction(value); return *this;}
51 inline TcpRoute& WithAction(TcpRouteAction&& value) { SetAction(std::move(value)); return *this;}
53
55
58 inline const TcpRouteMatch& GetMatch() const{ return m_match; }
59 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
60 inline void SetMatch(const TcpRouteMatch& value) { m_matchHasBeenSet = true; m_match = value; }
61 inline void SetMatch(TcpRouteMatch&& value) { m_matchHasBeenSet = true; m_match = std::move(value); }
62 inline TcpRoute& WithMatch(const TcpRouteMatch& value) { SetMatch(value); return *this;}
63 inline TcpRoute& WithMatch(TcpRouteMatch&& value) { SetMatch(std::move(value)); return *this;}
65
67
70 inline const TcpTimeout& GetTimeout() const{ return m_timeout; }
71 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
72 inline void SetTimeout(const TcpTimeout& value) { m_timeoutHasBeenSet = true; m_timeout = value; }
73 inline void SetTimeout(TcpTimeout&& value) { m_timeoutHasBeenSet = true; m_timeout = std::move(value); }
74 inline TcpRoute& WithTimeout(const TcpTimeout& value) { SetTimeout(value); return *this;}
75 inline TcpRoute& WithTimeout(TcpTimeout&& value) { SetTimeout(std::move(value)); return *this;}
77 private:
78
79 TcpRouteAction m_action;
80 bool m_actionHasBeenSet = false;
81
82 TcpRouteMatch m_match;
83 bool m_matchHasBeenSet = false;
84
85 TcpTimeout m_timeout;
86 bool m_timeoutHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace AppMesh
91} // namespace Aws
void SetAction(const TcpRouteAction &value)
Definition TcpRoute.h:48
TcpRoute & WithMatch(const TcpRouteMatch &value)
Definition TcpRoute.h:62
void SetMatch(TcpRouteMatch &&value)
Definition TcpRoute.h:61
TcpRoute & WithTimeout(TcpTimeout &&value)
Definition TcpRoute.h:75
void SetMatch(const TcpRouteMatch &value)
Definition TcpRoute.h:60
bool ActionHasBeenSet() const
Definition TcpRoute.h:47
void SetTimeout(TcpTimeout &&value)
Definition TcpRoute.h:73
TcpRoute & WithAction(TcpRouteAction &&value)
Definition TcpRoute.h:51
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPMESH_API TcpRoute()
bool TimeoutHasBeenSet() const
Definition TcpRoute.h:71
AWS_APPMESH_API TcpRoute & operator=(Aws::Utils::Json::JsonView jsonValue)
TcpRoute & WithTimeout(const TcpTimeout &value)
Definition TcpRoute.h:74
TcpRoute & WithMatch(TcpRouteMatch &&value)
Definition TcpRoute.h:63
const TcpTimeout & GetTimeout() const
Definition TcpRoute.h:70
void SetAction(TcpRouteAction &&value)
Definition TcpRoute.h:49
AWS_APPMESH_API TcpRoute(Aws::Utils::Json::JsonView jsonValue)
const TcpRouteAction & GetAction() const
Definition TcpRoute.h:46
TcpRoute & WithAction(const TcpRouteAction &value)
Definition TcpRoute.h:50
void SetTimeout(const TcpTimeout &value)
Definition TcpRoute.h:72
const TcpRouteMatch & GetMatch() const
Definition TcpRoute.h:58
Aws::Utils::Json::JsonValue JsonValue