AWS SDK for C++  1.9.123
AWS SDK for C++
HttpRetryPolicy.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 
42  {
43  public:
48 
49 
58  inline const Aws::Vector<Aws::String>& GetHttpRetryEvents() const{ return m_httpRetryEvents; }
59 
68  inline bool HttpRetryEventsHasBeenSet() const { return m_httpRetryEventsHasBeenSet; }
69 
78  inline void SetHttpRetryEvents(const Aws::Vector<Aws::String>& value) { m_httpRetryEventsHasBeenSet = true; m_httpRetryEvents = value; }
79 
88  inline void SetHttpRetryEvents(Aws::Vector<Aws::String>&& value) { m_httpRetryEventsHasBeenSet = true; m_httpRetryEvents = std::move(value); }
89 
98  inline HttpRetryPolicy& WithHttpRetryEvents(const Aws::Vector<Aws::String>& value) { SetHttpRetryEvents(value); return *this;}
99 
108  inline HttpRetryPolicy& WithHttpRetryEvents(Aws::Vector<Aws::String>&& value) { SetHttpRetryEvents(std::move(value)); return *this;}
109 
118  inline HttpRetryPolicy& AddHttpRetryEvents(const Aws::String& value) { m_httpRetryEventsHasBeenSet = true; m_httpRetryEvents.push_back(value); return *this; }
119 
128  inline HttpRetryPolicy& AddHttpRetryEvents(Aws::String&& value) { m_httpRetryEventsHasBeenSet = true; m_httpRetryEvents.push_back(std::move(value)); return *this; }
129 
138  inline HttpRetryPolicy& AddHttpRetryEvents(const char* value) { m_httpRetryEventsHasBeenSet = true; m_httpRetryEvents.push_back(value); return *this; }
139 
140 
144  inline long long GetMaxRetries() const{ return m_maxRetries; }
145 
149  inline bool MaxRetriesHasBeenSet() const { return m_maxRetriesHasBeenSet; }
150 
154  inline void SetMaxRetries(long long value) { m_maxRetriesHasBeenSet = true; m_maxRetries = value; }
155 
159  inline HttpRetryPolicy& WithMaxRetries(long long value) { SetMaxRetries(value); return *this;}
160 
161 
165  inline const Duration& GetPerRetryTimeout() const{ return m_perRetryTimeout; }
166 
170  inline bool PerRetryTimeoutHasBeenSet() const { return m_perRetryTimeoutHasBeenSet; }
171 
175  inline void SetPerRetryTimeout(const Duration& value) { m_perRetryTimeoutHasBeenSet = true; m_perRetryTimeout = value; }
176 
180  inline void SetPerRetryTimeout(Duration&& value) { m_perRetryTimeoutHasBeenSet = true; m_perRetryTimeout = std::move(value); }
181 
185  inline HttpRetryPolicy& WithPerRetryTimeout(const Duration& value) { SetPerRetryTimeout(value); return *this;}
186 
190  inline HttpRetryPolicy& WithPerRetryTimeout(Duration&& value) { SetPerRetryTimeout(std::move(value)); return *this;}
191 
192 
198  inline const Aws::Vector<TcpRetryPolicyEvent>& GetTcpRetryEvents() const{ return m_tcpRetryEvents; }
199 
205  inline bool TcpRetryEventsHasBeenSet() const { return m_tcpRetryEventsHasBeenSet; }
206 
212  inline void SetTcpRetryEvents(const Aws::Vector<TcpRetryPolicyEvent>& value) { m_tcpRetryEventsHasBeenSet = true; m_tcpRetryEvents = value; }
213 
219  inline void SetTcpRetryEvents(Aws::Vector<TcpRetryPolicyEvent>&& value) { m_tcpRetryEventsHasBeenSet = true; m_tcpRetryEvents = std::move(value); }
220 
226  inline HttpRetryPolicy& WithTcpRetryEvents(const Aws::Vector<TcpRetryPolicyEvent>& value) { SetTcpRetryEvents(value); return *this;}
227 
233  inline HttpRetryPolicy& WithTcpRetryEvents(Aws::Vector<TcpRetryPolicyEvent>&& value) { SetTcpRetryEvents(std::move(value)); return *this;}
234 
240  inline HttpRetryPolicy& AddTcpRetryEvents(const TcpRetryPolicyEvent& value) { m_tcpRetryEventsHasBeenSet = true; m_tcpRetryEvents.push_back(value); return *this; }
241 
247  inline HttpRetryPolicy& AddTcpRetryEvents(TcpRetryPolicyEvent&& value) { m_tcpRetryEventsHasBeenSet = true; m_tcpRetryEvents.push_back(std::move(value)); return *this; }
248 
249  private:
250 
251  Aws::Vector<Aws::String> m_httpRetryEvents;
252  bool m_httpRetryEventsHasBeenSet;
253 
254  long long m_maxRetries;
255  bool m_maxRetriesHasBeenSet;
256 
257  Duration m_perRetryTimeout;
258  bool m_perRetryTimeoutHasBeenSet;
259 
260  Aws::Vector<TcpRetryPolicyEvent> m_tcpRetryEvents;
261  bool m_tcpRetryEventsHasBeenSet;
262  };
263 
264 } // namespace Model
265 } // namespace AppMesh
266 } // namespace Aws
Aws::AppMesh::Model::HttpRetryPolicy::WithHttpRetryEvents
HttpRetryPolicy & WithHttpRetryEvents(const Aws::Vector< Aws::String > &value)
Definition: HttpRetryPolicy.h:98
Aws::AppMesh::Model::HttpRetryPolicy::MaxRetriesHasBeenSet
bool MaxRetriesHasBeenSet() const
Definition: HttpRetryPolicy.h:149
Aws::AppMesh::Model::HttpRetryPolicy::SetHttpRetryEvents
void SetHttpRetryEvents(Aws::Vector< Aws::String > &&value)
Definition: HttpRetryPolicy.h:88
Aws::AppMesh::Model::HttpRetryPolicy::WithHttpRetryEvents
HttpRetryPolicy & WithHttpRetryEvents(Aws::Vector< Aws::String > &&value)
Definition: HttpRetryPolicy.h:108
Aws::AppMesh::Model::HttpRetryPolicy::HttpRetryPolicy
HttpRetryPolicy()
Aws::AppMesh::Model::HttpRetryPolicy::AddTcpRetryEvents
HttpRetryPolicy & AddTcpRetryEvents(const TcpRetryPolicyEvent &value)
Definition: HttpRetryPolicy.h:240
Aws::AppMesh::Model::HttpRetryPolicy::AddTcpRetryEvents
HttpRetryPolicy & AddTcpRetryEvents(TcpRetryPolicyEvent &&value)
Definition: HttpRetryPolicy.h:247
Aws::AppMesh::Model::HttpRetryPolicy::PerRetryTimeoutHasBeenSet
bool PerRetryTimeoutHasBeenSet() const
Definition: HttpRetryPolicy.h:170
Aws::AppMesh::Model::HttpRetryPolicy::SetPerRetryTimeout
void SetPerRetryTimeout(const Duration &value)
Definition: HttpRetryPolicy.h:175
Aws::AppMesh::Model::HttpRetryPolicy
Definition: HttpRetryPolicy.h:42
Aws::AppMesh::Model::HttpRetryPolicy::GetPerRetryTimeout
const Duration & GetPerRetryTimeout() const
Definition: HttpRetryPolicy.h:165
Aws::AppMesh::Model::HttpRetryPolicy::AddHttpRetryEvents
HttpRetryPolicy & AddHttpRetryEvents(Aws::String &&value)
Definition: HttpRetryPolicy.h:128
Aws::AppMesh::Model::HttpRetryPolicy::WithPerRetryTimeout
HttpRetryPolicy & WithPerRetryTimeout(Duration &&value)
Definition: HttpRetryPolicy.h:190
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AppMesh::Model::HttpRetryPolicy::WithPerRetryTimeout
HttpRetryPolicy & WithPerRetryTimeout(const Duration &value)
Definition: HttpRetryPolicy.h:185
Aws::AppMesh::Model::HttpRetryPolicy::SetPerRetryTimeout
void SetPerRetryTimeout(Duration &&value)
Definition: HttpRetryPolicy.h:180
AppMesh_EXPORTS.h
AWSVector.h
Aws::AppMesh::Model::HttpRetryPolicy::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::HttpRetryPolicy::SetMaxRetries
void SetMaxRetries(long long value)
Definition: HttpRetryPolicy.h:154
Aws::AppMesh::Model::HttpRetryPolicy::AddHttpRetryEvents
HttpRetryPolicy & AddHttpRetryEvents(const Aws::String &value)
Definition: HttpRetryPolicy.h:118
Aws::AppMesh::Model::TcpRetryPolicyEvent
TcpRetryPolicyEvent
Definition: TcpRetryPolicyEvent.h:17
Aws::AppMesh::Model::HttpRetryPolicy::WithTcpRetryEvents
HttpRetryPolicy & WithTcpRetryEvents(const Aws::Vector< TcpRetryPolicyEvent > &value)
Definition: HttpRetryPolicy.h:226
Aws::AppMesh::Model::HttpRetryPolicy::SetTcpRetryEvents
void SetTcpRetryEvents(const Aws::Vector< TcpRetryPolicyEvent > &value)
Definition: HttpRetryPolicy.h:212
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
TcpRetryPolicyEvent.h
Duration.h
Aws::AppMesh::Model::HttpRetryPolicy::GetTcpRetryEvents
const Aws::Vector< TcpRetryPolicyEvent > & GetTcpRetryEvents() const
Definition: HttpRetryPolicy.h:198
Aws::AppMesh::Model::HttpRetryPolicy::SetTcpRetryEvents
void SetTcpRetryEvents(Aws::Vector< TcpRetryPolicyEvent > &&value)
Definition: HttpRetryPolicy.h:219
Aws::AppMesh::Model::HttpRetryPolicy::WithMaxRetries
HttpRetryPolicy & WithMaxRetries(long long value)
Definition: HttpRetryPolicy.h:159
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::HttpRetryPolicy::SetHttpRetryEvents
void SetHttpRetryEvents(const Aws::Vector< Aws::String > &value)
Definition: HttpRetryPolicy.h:78
Aws::AppMesh::Model::HttpRetryPolicy::operator=
HttpRetryPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::HttpRetryPolicy::HttpRetryEventsHasBeenSet
bool HttpRetryEventsHasBeenSet() const
Definition: HttpRetryPolicy.h:68
Aws::AppMesh::Model::HttpRetryPolicy::TcpRetryEventsHasBeenSet
bool TcpRetryEventsHasBeenSet() const
Definition: HttpRetryPolicy.h:205
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::HttpRetryPolicy::WithTcpRetryEvents
HttpRetryPolicy & WithTcpRetryEvents(Aws::Vector< TcpRetryPolicyEvent > &&value)
Definition: HttpRetryPolicy.h:233
Aws::AppMesh::Model::HttpRetryPolicy::HttpRetryPolicy
HttpRetryPolicy(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::HttpRetryPolicy::GetMaxRetries
long long GetMaxRetries() const
Definition: HttpRetryPolicy.h:144
Aws::AppMesh::Model::Duration
Definition: Duration.h:32
Aws::AppMesh::Model::HttpRetryPolicy::GetHttpRetryEvents
const Aws::Vector< Aws::String > & GetHttpRetryEvents() const
Definition: HttpRetryPolicy.h:58
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::HttpRetryPolicy::AddHttpRetryEvents
HttpRetryPolicy & AddHttpRetryEvents(const char *value)
Definition: HttpRetryPolicy.h:138