AWS SDK for C++  1.9.17
AWS SDK for C++
HttpRoute.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace AppMesh
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
47  inline const HttpRouteAction& GetAction() const{ return m_action; }
48 
52  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
53 
57  inline void SetAction(const HttpRouteAction& value) { m_actionHasBeenSet = true; m_action = value; }
58 
62  inline void SetAction(HttpRouteAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
63 
67  inline HttpRoute& WithAction(const HttpRouteAction& value) { SetAction(value); return *this;}
68 
72  inline HttpRoute& WithAction(HttpRouteAction&& value) { SetAction(std::move(value)); return *this;}
73 
74 
78  inline const HttpRouteMatch& GetMatch() const{ return m_match; }
79 
83  inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
84 
88  inline void SetMatch(const HttpRouteMatch& value) { m_matchHasBeenSet = true; m_match = value; }
89 
93  inline void SetMatch(HttpRouteMatch&& value) { m_matchHasBeenSet = true; m_match = std::move(value); }
94 
98  inline HttpRoute& WithMatch(const HttpRouteMatch& value) { SetMatch(value); return *this;}
99 
103  inline HttpRoute& WithMatch(HttpRouteMatch&& value) { SetMatch(std::move(value)); return *this;}
104 
105 
109  inline const HttpRetryPolicy& GetRetryPolicy() const{ return m_retryPolicy; }
110 
114  inline bool RetryPolicyHasBeenSet() const { return m_retryPolicyHasBeenSet; }
115 
119  inline void SetRetryPolicy(const HttpRetryPolicy& value) { m_retryPolicyHasBeenSet = true; m_retryPolicy = value; }
120 
124  inline void SetRetryPolicy(HttpRetryPolicy&& value) { m_retryPolicyHasBeenSet = true; m_retryPolicy = std::move(value); }
125 
129  inline HttpRoute& WithRetryPolicy(const HttpRetryPolicy& value) { SetRetryPolicy(value); return *this;}
130 
134  inline HttpRoute& WithRetryPolicy(HttpRetryPolicy&& value) { SetRetryPolicy(std::move(value)); return *this;}
135 
136 
140  inline const HttpTimeout& GetTimeout() const{ return m_timeout; }
141 
145  inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
146 
150  inline void SetTimeout(const HttpTimeout& value) { m_timeoutHasBeenSet = true; m_timeout = value; }
151 
155  inline void SetTimeout(HttpTimeout&& value) { m_timeoutHasBeenSet = true; m_timeout = std::move(value); }
156 
160  inline HttpRoute& WithTimeout(const HttpTimeout& value) { SetTimeout(value); return *this;}
161 
165  inline HttpRoute& WithTimeout(HttpTimeout&& value) { SetTimeout(std::move(value)); return *this;}
166 
167  private:
168 
169  HttpRouteAction m_action;
170  bool m_actionHasBeenSet;
171 
172  HttpRouteMatch m_match;
173  bool m_matchHasBeenSet;
174 
175  HttpRetryPolicy m_retryPolicy;
176  bool m_retryPolicyHasBeenSet;
177 
178  HttpTimeout m_timeout;
179  bool m_timeoutHasBeenSet;
180  };
181 
182 } // namespace Model
183 } // namespace AppMesh
184 } // namespace Aws
Aws::AppMesh::Model::HttpRoute::WithMatch
HttpRoute & WithMatch(HttpRouteMatch &&value)
Definition: HttpRoute.h:103
Aws::AppMesh::Model::HttpRoute::WithAction
HttpRoute & WithAction(const HttpRouteAction &value)
Definition: HttpRoute.h:67
Aws::AppMesh::Model::HttpRoute::SetAction
void SetAction(HttpRouteAction &&value)
Definition: HttpRoute.h:62
HttpRouteAction.h
Aws::AppMesh::Model::HttpRoute::GetTimeout
const HttpTimeout & GetTimeout() const
Definition: HttpRoute.h:140
Aws::AppMesh::Model::HttpRetryPolicy
Definition: HttpRetryPolicy.h:38
Aws::AppMesh::Model::HttpRoute::RetryPolicyHasBeenSet
bool RetryPolicyHasBeenSet() const
Definition: HttpRoute.h:114
Aws::AppMesh::Model::HttpRoute::SetTimeout
void SetTimeout(const HttpTimeout &value)
Definition: HttpRoute.h:150
Aws::AppMesh::Model::HttpRoute::GetRetryPolicy
const HttpRetryPolicy & GetRetryPolicy() const
Definition: HttpRoute.h:109
AppMesh_EXPORTS.h
Aws::AppMesh::Model::HttpRoute::WithMatch
HttpRoute & WithMatch(const HttpRouteMatch &value)
Definition: HttpRoute.h:98
HttpRouteMatch.h
Aws::AppMesh::Model::HttpRoute::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
HttpTimeout.h
Aws::AppMesh::Model::HttpRoute::SetAction
void SetAction(const HttpRouteAction &value)
Definition: HttpRoute.h:57
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
HttpRetryPolicy.h
Aws::AppMesh::Model::HttpRoute::WithAction
HttpRoute & WithAction(HttpRouteAction &&value)
Definition: HttpRoute.h:72
Aws::AppMesh::Model::HttpRouteAction
Definition: HttpRouteAction.h:34
Aws::AppMesh::Model::HttpRoute::WithTimeout
HttpRoute & WithTimeout(const HttpTimeout &value)
Definition: HttpRoute.h:160
Aws::AppMesh::Model::HttpRoute::TimeoutHasBeenSet
bool TimeoutHasBeenSet() const
Definition: HttpRoute.h:145
Aws::AppMesh::Model::HttpRoute::SetMatch
void SetMatch(const HttpRouteMatch &value)
Definition: HttpRoute.h:88
Aws::AppMesh::Model::HttpRoute::WithRetryPolicy
HttpRoute & WithRetryPolicy(const HttpRetryPolicy &value)
Definition: HttpRoute.h:129
Aws::AppMesh::Model::HttpRoute::SetRetryPolicy
void SetRetryPolicy(HttpRetryPolicy &&value)
Definition: HttpRoute.h:124
Aws::AppMesh::Model::HttpRoute::GetAction
const HttpRouteAction & GetAction() const
Definition: HttpRoute.h:47
Aws::AppMesh::Model::HttpRoute
Definition: HttpRoute.h:36
Aws::AppMesh::Model::HttpRoute::HttpRoute
HttpRoute()
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::HttpRoute::MatchHasBeenSet
bool MatchHasBeenSet() const
Definition: HttpRoute.h:83
Aws::AppMesh::Model::HttpRoute::SetMatch
void SetMatch(HttpRouteMatch &&value)
Definition: HttpRoute.h:93
Aws::AppMesh::Model::HttpRoute::operator=
HttpRoute & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::HttpRoute::GetMatch
const HttpRouteMatch & GetMatch() const
Definition: HttpRoute.h:78
Aws::AppMesh::Model::HttpRoute::SetTimeout
void SetTimeout(HttpTimeout &&value)
Definition: HttpRoute.h:155
Aws::AppMesh::Model::HttpRoute::SetRetryPolicy
void SetRetryPolicy(const HttpRetryPolicy &value)
Definition: HttpRoute.h:119
Aws::AppMesh::Model::HttpRouteMatch
Definition: HttpRouteMatch.h:37
Aws::AppMesh::Model::HttpRoute::WithRetryPolicy
HttpRoute & WithRetryPolicy(HttpRetryPolicy &&value)
Definition: HttpRoute.h:134
Aws::AppMesh::Model::HttpRoute::WithTimeout
HttpRoute & WithTimeout(HttpTimeout &&value)
Definition: HttpRoute.h:165
Aws::AppMesh::Model::HttpRoute::HttpRoute
HttpRoute(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::HttpRoute::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: HttpRoute.h:52
Aws::AppMesh::Model::HttpTimeout
Definition: HttpTimeout.h:32