AWS SDK for C++  1.9.21
AWS SDK for C++
GrpcRetryPolicy.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace AppMesh
26 {
27 namespace Model
28 {
29 
39  {
40  public:
45 
46 
50  inline const Aws::Vector<GrpcRetryPolicyEvent>& GetGrpcRetryEvents() const{ return m_grpcRetryEvents; }
51 
55  inline bool GrpcRetryEventsHasBeenSet() const { return m_grpcRetryEventsHasBeenSet; }
56 
60  inline void SetGrpcRetryEvents(const Aws::Vector<GrpcRetryPolicyEvent>& value) { m_grpcRetryEventsHasBeenSet = true; m_grpcRetryEvents = value; }
61 
65  inline void SetGrpcRetryEvents(Aws::Vector<GrpcRetryPolicyEvent>&& value) { m_grpcRetryEventsHasBeenSet = true; m_grpcRetryEvents = std::move(value); }
66 
70  inline GrpcRetryPolicy& WithGrpcRetryEvents(const Aws::Vector<GrpcRetryPolicyEvent>& value) { SetGrpcRetryEvents(value); return *this;}
71 
75  inline GrpcRetryPolicy& WithGrpcRetryEvents(Aws::Vector<GrpcRetryPolicyEvent>&& value) { SetGrpcRetryEvents(std::move(value)); return *this;}
76 
80  inline GrpcRetryPolicy& AddGrpcRetryEvents(const GrpcRetryPolicyEvent& value) { m_grpcRetryEventsHasBeenSet = true; m_grpcRetryEvents.push_back(value); return *this; }
81 
85  inline GrpcRetryPolicy& AddGrpcRetryEvents(GrpcRetryPolicyEvent&& value) { m_grpcRetryEventsHasBeenSet = true; m_grpcRetryEvents.push_back(std::move(value)); return *this; }
86 
87 
96  inline const Aws::Vector<Aws::String>& GetHttpRetryEvents() const{ return m_httpRetryEvents; }
97 
106  inline bool HttpRetryEventsHasBeenSet() const { return m_httpRetryEventsHasBeenSet; }
107 
116  inline void SetHttpRetryEvents(const Aws::Vector<Aws::String>& value) { m_httpRetryEventsHasBeenSet = true; m_httpRetryEvents = value; }
117 
126  inline void SetHttpRetryEvents(Aws::Vector<Aws::String>&& value) { m_httpRetryEventsHasBeenSet = true; m_httpRetryEvents = std::move(value); }
127 
136  inline GrpcRetryPolicy& WithHttpRetryEvents(const Aws::Vector<Aws::String>& value) { SetHttpRetryEvents(value); return *this;}
137 
146  inline GrpcRetryPolicy& WithHttpRetryEvents(Aws::Vector<Aws::String>&& value) { SetHttpRetryEvents(std::move(value)); return *this;}
147 
156  inline GrpcRetryPolicy& AddHttpRetryEvents(const Aws::String& value) { m_httpRetryEventsHasBeenSet = true; m_httpRetryEvents.push_back(value); return *this; }
157 
166  inline GrpcRetryPolicy& AddHttpRetryEvents(Aws::String&& value) { m_httpRetryEventsHasBeenSet = true; m_httpRetryEvents.push_back(std::move(value)); return *this; }
167 
176  inline GrpcRetryPolicy& AddHttpRetryEvents(const char* value) { m_httpRetryEventsHasBeenSet = true; m_httpRetryEvents.push_back(value); return *this; }
177 
178 
182  inline long long GetMaxRetries() const{ return m_maxRetries; }
183 
187  inline bool MaxRetriesHasBeenSet() const { return m_maxRetriesHasBeenSet; }
188 
192  inline void SetMaxRetries(long long value) { m_maxRetriesHasBeenSet = true; m_maxRetries = value; }
193 
197  inline GrpcRetryPolicy& WithMaxRetries(long long value) { SetMaxRetries(value); return *this;}
198 
199 
203  inline const Duration& GetPerRetryTimeout() const{ return m_perRetryTimeout; }
204 
208  inline bool PerRetryTimeoutHasBeenSet() const { return m_perRetryTimeoutHasBeenSet; }
209 
213  inline void SetPerRetryTimeout(const Duration& value) { m_perRetryTimeoutHasBeenSet = true; m_perRetryTimeout = value; }
214 
218  inline void SetPerRetryTimeout(Duration&& value) { m_perRetryTimeoutHasBeenSet = true; m_perRetryTimeout = std::move(value); }
219 
223  inline GrpcRetryPolicy& WithPerRetryTimeout(const Duration& value) { SetPerRetryTimeout(value); return *this;}
224 
228  inline GrpcRetryPolicy& WithPerRetryTimeout(Duration&& value) { SetPerRetryTimeout(std::move(value)); return *this;}
229 
230 
236  inline const Aws::Vector<TcpRetryPolicyEvent>& GetTcpRetryEvents() const{ return m_tcpRetryEvents; }
237 
243  inline bool TcpRetryEventsHasBeenSet() const { return m_tcpRetryEventsHasBeenSet; }
244 
250  inline void SetTcpRetryEvents(const Aws::Vector<TcpRetryPolicyEvent>& value) { m_tcpRetryEventsHasBeenSet = true; m_tcpRetryEvents = value; }
251 
257  inline void SetTcpRetryEvents(Aws::Vector<TcpRetryPolicyEvent>&& value) { m_tcpRetryEventsHasBeenSet = true; m_tcpRetryEvents = std::move(value); }
258 
264  inline GrpcRetryPolicy& WithTcpRetryEvents(const Aws::Vector<TcpRetryPolicyEvent>& value) { SetTcpRetryEvents(value); return *this;}
265 
271  inline GrpcRetryPolicy& WithTcpRetryEvents(Aws::Vector<TcpRetryPolicyEvent>&& value) { SetTcpRetryEvents(std::move(value)); return *this;}
272 
278  inline GrpcRetryPolicy& AddTcpRetryEvents(const TcpRetryPolicyEvent& value) { m_tcpRetryEventsHasBeenSet = true; m_tcpRetryEvents.push_back(value); return *this; }
279 
285  inline GrpcRetryPolicy& AddTcpRetryEvents(TcpRetryPolicyEvent&& value) { m_tcpRetryEventsHasBeenSet = true; m_tcpRetryEvents.push_back(std::move(value)); return *this; }
286 
287  private:
288 
289  Aws::Vector<GrpcRetryPolicyEvent> m_grpcRetryEvents;
290  bool m_grpcRetryEventsHasBeenSet;
291 
292  Aws::Vector<Aws::String> m_httpRetryEvents;
293  bool m_httpRetryEventsHasBeenSet;
294 
295  long long m_maxRetries;
296  bool m_maxRetriesHasBeenSet;
297 
298  Duration m_perRetryTimeout;
299  bool m_perRetryTimeoutHasBeenSet;
300 
301  Aws::Vector<TcpRetryPolicyEvent> m_tcpRetryEvents;
302  bool m_tcpRetryEventsHasBeenSet;
303  };
304 
305 } // namespace Model
306 } // namespace AppMesh
307 } // namespace Aws
Aws::AppMesh::Model::GrpcRetryPolicy::GetGrpcRetryEvents
const Aws::Vector< GrpcRetryPolicyEvent > & GetGrpcRetryEvents() const
Definition: GrpcRetryPolicy.h:50
Aws::AppMesh::Model::GrpcRetryPolicy::GrpcRetryPolicy
GrpcRetryPolicy()
Aws::AppMesh::Model::GrpcRetryPolicy::TcpRetryEventsHasBeenSet
bool TcpRetryEventsHasBeenSet() const
Definition: GrpcRetryPolicy.h:243
Aws::AppMesh::Model::GrpcRetryPolicy::WithMaxRetries
GrpcRetryPolicy & WithMaxRetries(long long value)
Definition: GrpcRetryPolicy.h:197
Aws::AppMesh::Model::GrpcRetryPolicy::SetHttpRetryEvents
void SetHttpRetryEvents(Aws::Vector< Aws::String > &&value)
Definition: GrpcRetryPolicy.h:126
Aws::AppMesh::Model::GrpcRetryPolicy::AddHttpRetryEvents
GrpcRetryPolicy & AddHttpRetryEvents(const Aws::String &value)
Definition: GrpcRetryPolicy.h:156
Aws::AppMesh::Model::GrpcRetryPolicy::SetTcpRetryEvents
void SetTcpRetryEvents(Aws::Vector< TcpRetryPolicyEvent > &&value)
Definition: GrpcRetryPolicy.h:257
GrpcRetryPolicyEvent.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AppMesh_EXPORTS.h
AWSVector.h
Aws::AppMesh::Model::GrpcRetryPolicy::SetTcpRetryEvents
void SetTcpRetryEvents(const Aws::Vector< TcpRetryPolicyEvent > &value)
Definition: GrpcRetryPolicy.h:250
Aws::AppMesh::Model::GrpcRetryPolicy::PerRetryTimeoutHasBeenSet
bool PerRetryTimeoutHasBeenSet() const
Definition: GrpcRetryPolicy.h:208
Aws::AppMesh::Model::GrpcRetryPolicy::WithPerRetryTimeout
GrpcRetryPolicy & WithPerRetryTimeout(const Duration &value)
Definition: GrpcRetryPolicy.h:223
Aws::AppMesh::Model::GrpcRetryPolicy::SetPerRetryTimeout
void SetPerRetryTimeout(Duration &&value)
Definition: GrpcRetryPolicy.h:218
Aws::AppMesh::Model::GrpcRetryPolicy::AddGrpcRetryEvents
GrpcRetryPolicy & AddGrpcRetryEvents(const GrpcRetryPolicyEvent &value)
Definition: GrpcRetryPolicy.h:80
Aws::AppMesh::Model::GrpcRetryPolicy
Definition: GrpcRetryPolicy.h:39
Aws::AppMesh::Model::GrpcRetryPolicy::WithTcpRetryEvents
GrpcRetryPolicy & WithTcpRetryEvents(const Aws::Vector< TcpRetryPolicyEvent > &value)
Definition: GrpcRetryPolicy.h:264
Aws::AppMesh::Model::GrpcRetryPolicy::GetPerRetryTimeout
const Duration & GetPerRetryTimeout() const
Definition: GrpcRetryPolicy.h:203
Aws::AppMesh::Model::GrpcRetryPolicyEvent
GrpcRetryPolicyEvent
Definition: GrpcRetryPolicyEvent.h:17
Aws::AppMesh::Model::GrpcRetryPolicy::WithTcpRetryEvents
GrpcRetryPolicy & WithTcpRetryEvents(Aws::Vector< TcpRetryPolicyEvent > &&value)
Definition: GrpcRetryPolicy.h:271
Aws::AppMesh::Model::GrpcRetryPolicy::AddTcpRetryEvents
GrpcRetryPolicy & AddTcpRetryEvents(TcpRetryPolicyEvent &&value)
Definition: GrpcRetryPolicy.h:285
Aws::AppMesh::Model::GrpcRetryPolicy::AddTcpRetryEvents
GrpcRetryPolicy & AddTcpRetryEvents(const TcpRetryPolicyEvent &value)
Definition: GrpcRetryPolicy.h:278
Aws::AppMesh::Model::GrpcRetryPolicy::WithPerRetryTimeout
GrpcRetryPolicy & WithPerRetryTimeout(Duration &&value)
Definition: GrpcRetryPolicy.h:228
Aws::AppMesh::Model::TcpRetryPolicyEvent
TcpRetryPolicyEvent
Definition: TcpRetryPolicyEvent.h:17
Aws::AppMesh::Model::GrpcRetryPolicy::SetMaxRetries
void SetMaxRetries(long long value)
Definition: GrpcRetryPolicy.h:192
Aws::AppMesh::Model::GrpcRetryPolicy::SetGrpcRetryEvents
void SetGrpcRetryEvents(Aws::Vector< GrpcRetryPolicyEvent > &&value)
Definition: GrpcRetryPolicy.h:65
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::AppMesh::Model::GrpcRetryPolicy::WithHttpRetryEvents
GrpcRetryPolicy & WithHttpRetryEvents(Aws::Vector< Aws::String > &&value)
Definition: GrpcRetryPolicy.h:146
TcpRetryPolicyEvent.h
Duration.h
Aws::AppMesh::Model::GrpcRetryPolicy::GetMaxRetries
long long GetMaxRetries() const
Definition: GrpcRetryPolicy.h:182
Aws::AppMesh::Model::GrpcRetryPolicy::SetGrpcRetryEvents
void SetGrpcRetryEvents(const Aws::Vector< GrpcRetryPolicyEvent > &value)
Definition: GrpcRetryPolicy.h:60
Aws::AppMesh::Model::GrpcRetryPolicy::GrpcRetryPolicy
GrpcRetryPolicy(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::GrpcRetryPolicy::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::GrpcRetryPolicy::GrpcRetryEventsHasBeenSet
bool GrpcRetryEventsHasBeenSet() const
Definition: GrpcRetryPolicy.h:55
Aws::AppMesh::Model::GrpcRetryPolicy::AddGrpcRetryEvents
GrpcRetryPolicy & AddGrpcRetryEvents(GrpcRetryPolicyEvent &&value)
Definition: GrpcRetryPolicy.h:85
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::GrpcRetryPolicy::WithGrpcRetryEvents
GrpcRetryPolicy & WithGrpcRetryEvents(const Aws::Vector< GrpcRetryPolicyEvent > &value)
Definition: GrpcRetryPolicy.h:70
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::GrpcRetryPolicy::SetHttpRetryEvents
void SetHttpRetryEvents(const Aws::Vector< Aws::String > &value)
Definition: GrpcRetryPolicy.h:116
Aws::AppMesh::Model::GrpcRetryPolicy::MaxRetriesHasBeenSet
bool MaxRetriesHasBeenSet() const
Definition: GrpcRetryPolicy.h:187
Aws::AppMesh::Model::GrpcRetryPolicy::HttpRetryEventsHasBeenSet
bool HttpRetryEventsHasBeenSet() const
Definition: GrpcRetryPolicy.h:106
Aws::AppMesh::Model::GrpcRetryPolicy::GetHttpRetryEvents
const Aws::Vector< Aws::String > & GetHttpRetryEvents() const
Definition: GrpcRetryPolicy.h:96
Aws::AppMesh::Model::GrpcRetryPolicy::operator=
GrpcRetryPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::Duration
Definition: Duration.h:32
Aws::AppMesh::Model::GrpcRetryPolicy::AddHttpRetryEvents
GrpcRetryPolicy & AddHttpRetryEvents(Aws::String &&value)
Definition: GrpcRetryPolicy.h:166
Aws::AppMesh::Model::GrpcRetryPolicy::AddHttpRetryEvents
GrpcRetryPolicy & AddHttpRetryEvents(const char *value)
Definition: GrpcRetryPolicy.h:176
Aws::AppMesh::Model::GrpcRetryPolicy::WithHttpRetryEvents
GrpcRetryPolicy & WithHttpRetryEvents(const Aws::Vector< Aws::String > &value)
Definition: GrpcRetryPolicy.h:136
Aws::AppMesh::Model::GrpcRetryPolicy::GetTcpRetryEvents
const Aws::Vector< TcpRetryPolicyEvent > & GetTcpRetryEvents() const
Definition: GrpcRetryPolicy.h:236
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::GrpcRetryPolicy::SetPerRetryTimeout
void SetPerRetryTimeout(const Duration &value)
Definition: GrpcRetryPolicy.h:213
Aws::AppMesh::Model::GrpcRetryPolicy::WithGrpcRetryEvents
GrpcRetryPolicy & WithGrpcRetryEvents(Aws::Vector< GrpcRetryPolicyEvent > &&value)
Definition: GrpcRetryPolicy.h:75