AWS SDK for C++  1.9.16
AWS SDK for C++
TcpRoute.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace AppMesh
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const TcpRouteAction& GetAction() const{ return m_action; }
45 
49  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
50 
54  inline void SetAction(const TcpRouteAction& value) { m_actionHasBeenSet = true; m_action = value; }
55 
59  inline void SetAction(TcpRouteAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
60 
64  inline TcpRoute& WithAction(const TcpRouteAction& value) { SetAction(value); return *this;}
65 
69  inline TcpRoute& WithAction(TcpRouteAction&& value) { SetAction(std::move(value)); return *this;}
70 
71 
75  inline const TcpTimeout& GetTimeout() const{ return m_timeout; }
76 
80  inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
81 
85  inline void SetTimeout(const TcpTimeout& value) { m_timeoutHasBeenSet = true; m_timeout = value; }
86 
90  inline void SetTimeout(TcpTimeout&& value) { m_timeoutHasBeenSet = true; m_timeout = std::move(value); }
91 
95  inline TcpRoute& WithTimeout(const TcpTimeout& value) { SetTimeout(value); return *this;}
96 
100  inline TcpRoute& WithTimeout(TcpTimeout&& value) { SetTimeout(std::move(value)); return *this;}
101 
102  private:
103 
104  TcpRouteAction m_action;
105  bool m_actionHasBeenSet;
106 
107  TcpTimeout m_timeout;
108  bool m_timeoutHasBeenSet;
109  };
110 
111 } // namespace Model
112 } // namespace AppMesh
113 } // namespace Aws
Aws::AppMesh::Model::TcpRoute::WithAction
TcpRoute & WithAction(const TcpRouteAction &value)
Definition: TcpRoute.h:64
Aws::AppMesh::Model::TcpRoute
Definition: TcpRoute.h:33
Aws::AppMesh::Model::TcpRoute::WithTimeout
TcpRoute & WithTimeout(TcpTimeout &&value)
Definition: TcpRoute.h:100
Aws::AppMesh::Model::TcpRoute::GetTimeout
const TcpTimeout & GetTimeout() const
Definition: TcpRoute.h:75
TcpRouteAction.h
Aws::AppMesh::Model::TcpRoute::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AppMesh_EXPORTS.h
Aws::AppMesh::Model::TcpRoute::WithAction
TcpRoute & WithAction(TcpRouteAction &&value)
Definition: TcpRoute.h:69
Aws::AppMesh::Model::TcpRoute::SetTimeout
void SetTimeout(const TcpTimeout &value)
Definition: TcpRoute.h:85
Aws::AppMesh::Model::TcpRoute::SetAction
void SetAction(TcpRouteAction &&value)
Definition: TcpRoute.h:59
Aws::AppMesh::Model::TcpRoute::TimeoutHasBeenSet
bool TimeoutHasBeenSet() const
Definition: TcpRoute.h:80
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::AppMesh::Model::TcpRoute::TcpRoute
TcpRoute(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::TcpRoute::SetTimeout
void SetTimeout(TcpTimeout &&value)
Definition: TcpRoute.h:90
Aws::AppMesh::Model::TcpRoute::SetAction
void SetAction(const TcpRouteAction &value)
Definition: TcpRoute.h:54
Aws::AppMesh::Model::TcpRoute::TcpRoute
TcpRoute()
Aws::AppMesh::Model::TcpRoute::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: TcpRoute.h:49
Aws::AppMesh::Model::TcpRouteAction
Definition: TcpRouteAction.h:34
Aws
Definition: AccessManagementClient.h:15
TcpTimeout.h
Aws::AppMesh::Model::TcpRoute::WithTimeout
TcpRoute & WithTimeout(const TcpTimeout &value)
Definition: TcpRoute.h:95
Aws::AppMesh::Model::TcpRoute::GetAction
const TcpRouteAction & GetAction() const
Definition: TcpRoute.h:44
Aws::AppMesh::Model::TcpRoute::operator=
TcpRoute & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::TcpTimeout
Definition: TcpTimeout.h:32
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28