AWS SDK for C++  1.9.129
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 
43  {
44  public:
49 
50 
54  inline const Aws::Vector<GrpcRetryPolicyEvent>& GetGrpcRetryEvents() const{ return m_grpcRetryEvents; }
55 
59  inline bool GrpcRetryEventsHasBeenSet() const { return m_grpcRetryEventsHasBeenSet; }
60 
64  inline void SetGrpcRetryEvents(const Aws::Vector<GrpcRetryPolicyEvent>& value) { m_grpcRetryEventsHasBeenSet = true; m_grpcRetryEvents = value; }
65 
69  inline void SetGrpcRetryEvents(Aws::Vector<GrpcRetryPolicyEvent>&& value) { m_grpcRetryEventsHasBeenSet = true; m_grpcRetryEvents = std::move(value); }
70 
74  inline GrpcRetryPolicy& WithGrpcRetryEvents(const Aws::Vector<GrpcRetryPolicyEvent>& value) { SetGrpcRetryEvents(value); return *this;}
75 
79  inline GrpcRetryPolicy& WithGrpcRetryEvents(Aws::Vector<GrpcRetryPolicyEvent>&& value) { SetGrpcRetryEvents(std::move(value)); return *this;}
80 
84  inline GrpcRetryPolicy& AddGrpcRetryEvents(const GrpcRetryPolicyEvent& value) { m_grpcRetryEventsHasBeenSet = true; m_grpcRetryEvents.push_back(value); return *this; }
85 
89  inline GrpcRetryPolicy& AddGrpcRetryEvents(GrpcRetryPolicyEvent&& value) { m_grpcRetryEventsHasBeenSet = true; m_grpcRetryEvents.push_back(std::move(value)); return *this; }
90 
91 
100  inline const Aws::Vector<Aws::String>& GetHttpRetryEvents() const{ return m_httpRetryEvents; }
101 
110  inline bool HttpRetryEventsHasBeenSet() const { return m_httpRetryEventsHasBeenSet; }
111 
120  inline void SetHttpRetryEvents(const Aws::Vector<Aws::String>& value) { m_httpRetryEventsHasBeenSet = true; m_httpRetryEvents = value; }
121 
130  inline void SetHttpRetryEvents(Aws::Vector<Aws::String>&& value) { m_httpRetryEventsHasBeenSet = true; m_httpRetryEvents = std::move(value); }
131 
140  inline GrpcRetryPolicy& WithHttpRetryEvents(const Aws::Vector<Aws::String>& value) { SetHttpRetryEvents(value); return *this;}
141 
150  inline GrpcRetryPolicy& WithHttpRetryEvents(Aws::Vector<Aws::String>&& value) { SetHttpRetryEvents(std::move(value)); return *this;}
151 
160  inline GrpcRetryPolicy& AddHttpRetryEvents(const Aws::String& value) { m_httpRetryEventsHasBeenSet = true; m_httpRetryEvents.push_back(value); return *this; }
161 
170  inline GrpcRetryPolicy& AddHttpRetryEvents(Aws::String&& value) { m_httpRetryEventsHasBeenSet = true; m_httpRetryEvents.push_back(std::move(value)); return *this; }
171 
180  inline GrpcRetryPolicy& AddHttpRetryEvents(const char* value) { m_httpRetryEventsHasBeenSet = true; m_httpRetryEvents.push_back(value); return *this; }
181 
182 
186  inline long long GetMaxRetries() const{ return m_maxRetries; }
187 
191  inline bool MaxRetriesHasBeenSet() const { return m_maxRetriesHasBeenSet; }
192 
196  inline void SetMaxRetries(long long value) { m_maxRetriesHasBeenSet = true; m_maxRetries = value; }
197 
201  inline GrpcRetryPolicy& WithMaxRetries(long long value) { SetMaxRetries(value); return *this;}
202 
203 
207  inline const Duration& GetPerRetryTimeout() const{ return m_perRetryTimeout; }
208 
212  inline bool PerRetryTimeoutHasBeenSet() const { return m_perRetryTimeoutHasBeenSet; }
213 
217  inline void SetPerRetryTimeout(const Duration& value) { m_perRetryTimeoutHasBeenSet = true; m_perRetryTimeout = value; }
218 
222  inline void SetPerRetryTimeout(Duration&& value) { m_perRetryTimeoutHasBeenSet = true; m_perRetryTimeout = std::move(value); }
223 
227  inline GrpcRetryPolicy& WithPerRetryTimeout(const Duration& value) { SetPerRetryTimeout(value); return *this;}
228 
232  inline GrpcRetryPolicy& WithPerRetryTimeout(Duration&& value) { SetPerRetryTimeout(std::move(value)); return *this;}
233 
234 
240  inline const Aws::Vector<TcpRetryPolicyEvent>& GetTcpRetryEvents() const{ return m_tcpRetryEvents; }
241 
247  inline bool TcpRetryEventsHasBeenSet() const { return m_tcpRetryEventsHasBeenSet; }
248 
254  inline void SetTcpRetryEvents(const Aws::Vector<TcpRetryPolicyEvent>& value) { m_tcpRetryEventsHasBeenSet = true; m_tcpRetryEvents = value; }
255 
261  inline void SetTcpRetryEvents(Aws::Vector<TcpRetryPolicyEvent>&& value) { m_tcpRetryEventsHasBeenSet = true; m_tcpRetryEvents = std::move(value); }
262 
268  inline GrpcRetryPolicy& WithTcpRetryEvents(const Aws::Vector<TcpRetryPolicyEvent>& value) { SetTcpRetryEvents(value); return *this;}
269 
275  inline GrpcRetryPolicy& WithTcpRetryEvents(Aws::Vector<TcpRetryPolicyEvent>&& value) { SetTcpRetryEvents(std::move(value)); return *this;}
276 
282  inline GrpcRetryPolicy& AddTcpRetryEvents(const TcpRetryPolicyEvent& value) { m_tcpRetryEventsHasBeenSet = true; m_tcpRetryEvents.push_back(value); return *this; }
283 
289  inline GrpcRetryPolicy& AddTcpRetryEvents(TcpRetryPolicyEvent&& value) { m_tcpRetryEventsHasBeenSet = true; m_tcpRetryEvents.push_back(std::move(value)); return *this; }
290 
291  private:
292 
293  Aws::Vector<GrpcRetryPolicyEvent> m_grpcRetryEvents;
294  bool m_grpcRetryEventsHasBeenSet;
295 
296  Aws::Vector<Aws::String> m_httpRetryEvents;
297  bool m_httpRetryEventsHasBeenSet;
298 
299  long long m_maxRetries;
300  bool m_maxRetriesHasBeenSet;
301 
302  Duration m_perRetryTimeout;
303  bool m_perRetryTimeoutHasBeenSet;
304 
305  Aws::Vector<TcpRetryPolicyEvent> m_tcpRetryEvents;
306  bool m_tcpRetryEventsHasBeenSet;
307  };
308 
309 } // namespace Model
310 } // namespace AppMesh
311 } // namespace Aws
Aws::AppMesh::Model::GrpcRetryPolicy::GetGrpcRetryEvents
const Aws::Vector< GrpcRetryPolicyEvent > & GetGrpcRetryEvents() const
Definition: GrpcRetryPolicy.h:54
Aws::AppMesh::Model::GrpcRetryPolicy::GrpcRetryPolicy
GrpcRetryPolicy()
Aws::AppMesh::Model::GrpcRetryPolicy::TcpRetryEventsHasBeenSet
bool TcpRetryEventsHasBeenSet() const
Definition: GrpcRetryPolicy.h:247
Aws::AppMesh::Model::GrpcRetryPolicy::WithMaxRetries
GrpcRetryPolicy & WithMaxRetries(long long value)
Definition: GrpcRetryPolicy.h:201
Aws::AppMesh::Model::GrpcRetryPolicy::SetHttpRetryEvents
void SetHttpRetryEvents(Aws::Vector< Aws::String > &&value)
Definition: GrpcRetryPolicy.h:130
Aws::AppMesh::Model::GrpcRetryPolicy::AddHttpRetryEvents
GrpcRetryPolicy & AddHttpRetryEvents(const Aws::String &value)
Definition: GrpcRetryPolicy.h:160
Aws::AppMesh::Model::GrpcRetryPolicy::SetTcpRetryEvents
void SetTcpRetryEvents(Aws::Vector< TcpRetryPolicyEvent > &&value)
Definition: GrpcRetryPolicy.h:261
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:254
Aws::AppMesh::Model::GrpcRetryPolicy::PerRetryTimeoutHasBeenSet
bool PerRetryTimeoutHasBeenSet() const
Definition: GrpcRetryPolicy.h:212
Aws::AppMesh::Model::GrpcRetryPolicy::WithPerRetryTimeout
GrpcRetryPolicy & WithPerRetryTimeout(const Duration &value)
Definition: GrpcRetryPolicy.h:227
Aws::AppMesh::Model::GrpcRetryPolicy::SetPerRetryTimeout
void SetPerRetryTimeout(Duration &&value)
Definition: GrpcRetryPolicy.h:222
Aws::AppMesh::Model::GrpcRetryPolicy::AddGrpcRetryEvents
GrpcRetryPolicy & AddGrpcRetryEvents(const GrpcRetryPolicyEvent &value)
Definition: GrpcRetryPolicy.h:84
Aws::AppMesh::Model::GrpcRetryPolicy
Definition: GrpcRetryPolicy.h:43
Aws::AppMesh::Model::GrpcRetryPolicy::WithTcpRetryEvents
GrpcRetryPolicy & WithTcpRetryEvents(const Aws::Vector< TcpRetryPolicyEvent > &value)
Definition: GrpcRetryPolicy.h:268
Aws::AppMesh::Model::GrpcRetryPolicy::GetPerRetryTimeout
const Duration & GetPerRetryTimeout() const
Definition: GrpcRetryPolicy.h:207
Aws::AppMesh::Model::GrpcRetryPolicyEvent
GrpcRetryPolicyEvent
Definition: GrpcRetryPolicyEvent.h:17
Aws::AppMesh::Model::GrpcRetryPolicy::WithTcpRetryEvents
GrpcRetryPolicy & WithTcpRetryEvents(Aws::Vector< TcpRetryPolicyEvent > &&value)
Definition: GrpcRetryPolicy.h:275
Aws::AppMesh::Model::GrpcRetryPolicy::AddTcpRetryEvents
GrpcRetryPolicy & AddTcpRetryEvents(TcpRetryPolicyEvent &&value)
Definition: GrpcRetryPolicy.h:289
Aws::AppMesh::Model::GrpcRetryPolicy::AddTcpRetryEvents
GrpcRetryPolicy & AddTcpRetryEvents(const TcpRetryPolicyEvent &value)
Definition: GrpcRetryPolicy.h:282
Aws::AppMesh::Model::GrpcRetryPolicy::WithPerRetryTimeout
GrpcRetryPolicy & WithPerRetryTimeout(Duration &&value)
Definition: GrpcRetryPolicy.h:232
Aws::AppMesh::Model::TcpRetryPolicyEvent
TcpRetryPolicyEvent
Definition: TcpRetryPolicyEvent.h:17
Aws::AppMesh::Model::GrpcRetryPolicy::SetMaxRetries
void SetMaxRetries(long long value)
Definition: GrpcRetryPolicy.h:196
Aws::AppMesh::Model::GrpcRetryPolicy::SetGrpcRetryEvents
void SetGrpcRetryEvents(Aws::Vector< GrpcRetryPolicyEvent > &&value)
Definition: GrpcRetryPolicy.h:69
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppMesh::Model::GrpcRetryPolicy::WithHttpRetryEvents
GrpcRetryPolicy & WithHttpRetryEvents(Aws::Vector< Aws::String > &&value)
Definition: GrpcRetryPolicy.h:150
TcpRetryPolicyEvent.h
Duration.h
Aws::AppMesh::Model::GrpcRetryPolicy::GetMaxRetries
long long GetMaxRetries() const
Definition: GrpcRetryPolicy.h:186
Aws::AppMesh::Model::GrpcRetryPolicy::SetGrpcRetryEvents
void SetGrpcRetryEvents(const Aws::Vector< GrpcRetryPolicyEvent > &value)
Definition: GrpcRetryPolicy.h:64
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:59
Aws::AppMesh::Model::GrpcRetryPolicy::AddGrpcRetryEvents
GrpcRetryPolicy & AddGrpcRetryEvents(GrpcRetryPolicyEvent &&value)
Definition: GrpcRetryPolicy.h:89
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::GrpcRetryPolicy::WithGrpcRetryEvents
GrpcRetryPolicy & WithGrpcRetryEvents(const Aws::Vector< GrpcRetryPolicyEvent > &value)
Definition: GrpcRetryPolicy.h:74
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:120
Aws::AppMesh::Model::GrpcRetryPolicy::MaxRetriesHasBeenSet
bool MaxRetriesHasBeenSet() const
Definition: GrpcRetryPolicy.h:191
Aws::AppMesh::Model::GrpcRetryPolicy::HttpRetryEventsHasBeenSet
bool HttpRetryEventsHasBeenSet() const
Definition: GrpcRetryPolicy.h:110
Aws::AppMesh::Model::GrpcRetryPolicy::GetHttpRetryEvents
const Aws::Vector< Aws::String > & GetHttpRetryEvents() const
Definition: GrpcRetryPolicy.h:100
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:170
Aws::AppMesh::Model::GrpcRetryPolicy::AddHttpRetryEvents
GrpcRetryPolicy & AddHttpRetryEvents(const char *value)
Definition: GrpcRetryPolicy.h:180
Aws::AppMesh::Model::GrpcRetryPolicy::WithHttpRetryEvents
GrpcRetryPolicy & WithHttpRetryEvents(const Aws::Vector< Aws::String > &value)
Definition: GrpcRetryPolicy.h:140
Aws::AppMesh::Model::GrpcRetryPolicy::GetTcpRetryEvents
const Aws::Vector< TcpRetryPolicyEvent > & GetTcpRetryEvents() const
Definition: GrpcRetryPolicy.h:240
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:217
Aws::AppMesh::Model::GrpcRetryPolicy::WithGrpcRetryEvents
GrpcRetryPolicy & WithGrpcRetryEvents(Aws::Vector< GrpcRetryPolicyEvent > &&value)
Definition: GrpcRetryPolicy.h:79