AWS SDK for C++  1.9.19
AWS SDK for C++
GrpcRoute.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 
35  {
36  public:
41 
42 
46  inline const GrpcRouteAction& GetAction() const{ return m_action; }
47 
51  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
52 
56  inline void SetAction(const GrpcRouteAction& value) { m_actionHasBeenSet = true; m_action = value; }
57 
61  inline void SetAction(GrpcRouteAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
62 
66  inline GrpcRoute& WithAction(const GrpcRouteAction& value) { SetAction(value); return *this;}
67 
71  inline GrpcRoute& WithAction(GrpcRouteAction&& value) { SetAction(std::move(value)); return *this;}
72 
73 
77  inline const GrpcRouteMatch& GetMatch() const{ return m_match; }
78 
82  inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
83 
87  inline void SetMatch(const GrpcRouteMatch& value) { m_matchHasBeenSet = true; m_match = value; }
88 
92  inline void SetMatch(GrpcRouteMatch&& value) { m_matchHasBeenSet = true; m_match = std::move(value); }
93 
97  inline GrpcRoute& WithMatch(const GrpcRouteMatch& value) { SetMatch(value); return *this;}
98 
102  inline GrpcRoute& WithMatch(GrpcRouteMatch&& value) { SetMatch(std::move(value)); return *this;}
103 
104 
108  inline const GrpcRetryPolicy& GetRetryPolicy() const{ return m_retryPolicy; }
109 
113  inline bool RetryPolicyHasBeenSet() const { return m_retryPolicyHasBeenSet; }
114 
118  inline void SetRetryPolicy(const GrpcRetryPolicy& value) { m_retryPolicyHasBeenSet = true; m_retryPolicy = value; }
119 
123  inline void SetRetryPolicy(GrpcRetryPolicy&& value) { m_retryPolicyHasBeenSet = true; m_retryPolicy = std::move(value); }
124 
128  inline GrpcRoute& WithRetryPolicy(const GrpcRetryPolicy& value) { SetRetryPolicy(value); return *this;}
129 
133  inline GrpcRoute& WithRetryPolicy(GrpcRetryPolicy&& value) { SetRetryPolicy(std::move(value)); return *this;}
134 
135 
139  inline const GrpcTimeout& GetTimeout() const{ return m_timeout; }
140 
144  inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
145 
149  inline void SetTimeout(const GrpcTimeout& value) { m_timeoutHasBeenSet = true; m_timeout = value; }
150 
154  inline void SetTimeout(GrpcTimeout&& value) { m_timeoutHasBeenSet = true; m_timeout = std::move(value); }
155 
159  inline GrpcRoute& WithTimeout(const GrpcTimeout& value) { SetTimeout(value); return *this;}
160 
164  inline GrpcRoute& WithTimeout(GrpcTimeout&& value) { SetTimeout(std::move(value)); return *this;}
165 
166  private:
167 
168  GrpcRouteAction m_action;
169  bool m_actionHasBeenSet;
170 
171  GrpcRouteMatch m_match;
172  bool m_matchHasBeenSet;
173 
174  GrpcRetryPolicy m_retryPolicy;
175  bool m_retryPolicyHasBeenSet;
176 
177  GrpcTimeout m_timeout;
178  bool m_timeoutHasBeenSet;
179  };
180 
181 } // namespace Model
182 } // namespace AppMesh
183 } // namespace Aws
Aws::AppMesh::Model::GrpcRoute::SetMatch
void SetMatch(const GrpcRouteMatch &value)
Definition: GrpcRoute.h:87
Aws::AppMesh::Model::GrpcRoute::WithAction
GrpcRoute & WithAction(GrpcRouteAction &&value)
Definition: GrpcRoute.h:71
GrpcRouteAction.h
Aws::AppMesh::Model::GrpcRouteAction
Definition: GrpcRouteAction.h:34
GrpcTimeout.h
Aws::AppMesh::Model::GrpcRoute::SetTimeout
void SetTimeout(GrpcTimeout &&value)
Definition: GrpcRoute.h:154
Aws::AppMesh::Model::GrpcRoute::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AppMesh_EXPORTS.h
Aws::AppMesh::Model::GrpcRoute::SetAction
void SetAction(const GrpcRouteAction &value)
Definition: GrpcRoute.h:56
Aws::AppMesh::Model::GrpcRoute::GetTimeout
const GrpcTimeout & GetTimeout() const
Definition: GrpcRoute.h:139
Aws::AppMesh::Model::GrpcRoute::WithTimeout
GrpcRoute & WithTimeout(GrpcTimeout &&value)
Definition: GrpcRoute.h:164
Aws::AppMesh::Model::GrpcRouteMatch
Definition: GrpcRouteMatch.h:35
GrpcRouteMatch.h
Aws::AppMesh::Model::GrpcRoute::SetAction
void SetAction(GrpcRouteAction &&value)
Definition: GrpcRoute.h:61
Aws::AppMesh::Model::GrpcRetryPolicy
Definition: GrpcRetryPolicy.h:39
Aws::AppMesh::Model::GrpcRoute::WithMatch
GrpcRoute & WithMatch(GrpcRouteMatch &&value)
Definition: GrpcRoute.h:102
Aws::AppMesh::Model::GrpcRoute::WithRetryPolicy
GrpcRoute & WithRetryPolicy(GrpcRetryPolicy &&value)
Definition: GrpcRoute.h:133
Aws::AppMesh::Model::GrpcRoute::SetRetryPolicy
void SetRetryPolicy(const GrpcRetryPolicy &value)
Definition: GrpcRoute.h:118
Aws::AppMesh::Model::GrpcRoute::WithMatch
GrpcRoute & WithMatch(const GrpcRouteMatch &value)
Definition: GrpcRoute.h:97
Aws::AppMesh::Model::GrpcRoute::WithRetryPolicy
GrpcRoute & WithRetryPolicy(const GrpcRetryPolicy &value)
Definition: GrpcRoute.h:128
Aws::AppMesh::Model::GrpcRoute::SetTimeout
void SetTimeout(const GrpcTimeout &value)
Definition: GrpcRoute.h:149
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::AppMesh::Model::GrpcRoute
Definition: GrpcRoute.h:35
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::AppMesh::Model::GrpcTimeout
Definition: GrpcTimeout.h:32
Aws::AppMesh::Model::GrpcRoute::operator=
GrpcRoute & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::GrpcRoute::GetAction
const GrpcRouteAction & GetAction() const
Definition: GrpcRoute.h:46
Aws::AppMesh::Model::GrpcRoute::GrpcRoute
GrpcRoute()
Aws::AppMesh::Model::GrpcRoute::RetryPolicyHasBeenSet
bool RetryPolicyHasBeenSet() const
Definition: GrpcRoute.h:113
Aws::AppMesh::Model::GrpcRoute::SetRetryPolicy
void SetRetryPolicy(GrpcRetryPolicy &&value)
Definition: GrpcRoute.h:123
Aws::AppMesh::Model::GrpcRoute::GetRetryPolicy
const GrpcRetryPolicy & GetRetryPolicy() const
Definition: GrpcRoute.h:108
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::GrpcRoute::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: GrpcRoute.h:51
Aws::AppMesh::Model::GrpcRoute::TimeoutHasBeenSet
bool TimeoutHasBeenSet() const
Definition: GrpcRoute.h:144
Aws::AppMesh::Model::GrpcRoute::MatchHasBeenSet
bool MatchHasBeenSet() const
Definition: GrpcRoute.h:82
Aws::AppMesh::Model::GrpcRoute::WithAction
GrpcRoute & WithAction(const GrpcRouteAction &value)
Definition: GrpcRoute.h:66
Aws::AppMesh::Model::GrpcRoute::GetMatch
const GrpcRouteMatch & GetMatch() const
Definition: GrpcRoute.h:77
Aws::AppMesh::Model::GrpcRoute::SetMatch
void SetMatch(GrpcRouteMatch &&value)
Definition: GrpcRoute.h:92
GrpcRetryPolicy.h
Aws::AppMesh::Model::GrpcRoute::GrpcRoute
GrpcRoute(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::GrpcRoute::WithTimeout
GrpcRoute & WithTimeout(const GrpcTimeout &value)
Definition: GrpcRoute.h:159