AWS SDK for C++  1.9.16
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 
38  {
39  public:
44 
45 
54  inline const Aws::Vector<Aws::String>& GetHttpRetryEvents() const{ return m_httpRetryEvents; }
55 
64  inline bool HttpRetryEventsHasBeenSet() const { return m_httpRetryEventsHasBeenSet; }
65 
74  inline void SetHttpRetryEvents(const Aws::Vector<Aws::String>& value) { m_httpRetryEventsHasBeenSet = true; m_httpRetryEvents = value; }
75 
84  inline void SetHttpRetryEvents(Aws::Vector<Aws::String>&& value) { m_httpRetryEventsHasBeenSet = true; m_httpRetryEvents = std::move(value); }
85 
94  inline HttpRetryPolicy& WithHttpRetryEvents(const Aws::Vector<Aws::String>& value) { SetHttpRetryEvents(value); return *this;}
95 
104  inline HttpRetryPolicy& WithHttpRetryEvents(Aws::Vector<Aws::String>&& value) { SetHttpRetryEvents(std::move(value)); return *this;}
105 
114  inline HttpRetryPolicy& AddHttpRetryEvents(const Aws::String& value) { m_httpRetryEventsHasBeenSet = true; m_httpRetryEvents.push_back(value); return *this; }
115 
124  inline HttpRetryPolicy& AddHttpRetryEvents(Aws::String&& value) { m_httpRetryEventsHasBeenSet = true; m_httpRetryEvents.push_back(std::move(value)); return *this; }
125 
134  inline HttpRetryPolicy& AddHttpRetryEvents(const char* value) { m_httpRetryEventsHasBeenSet = true; m_httpRetryEvents.push_back(value); return *this; }
135 
136 
140  inline long long GetMaxRetries() const{ return m_maxRetries; }
141 
145  inline bool MaxRetriesHasBeenSet() const { return m_maxRetriesHasBeenSet; }
146 
150  inline void SetMaxRetries(long long value) { m_maxRetriesHasBeenSet = true; m_maxRetries = value; }
151 
155  inline HttpRetryPolicy& WithMaxRetries(long long value) { SetMaxRetries(value); return *this;}
156 
157 
161  inline const Duration& GetPerRetryTimeout() const{ return m_perRetryTimeout; }
162 
166  inline bool PerRetryTimeoutHasBeenSet() const { return m_perRetryTimeoutHasBeenSet; }
167 
171  inline void SetPerRetryTimeout(const Duration& value) { m_perRetryTimeoutHasBeenSet = true; m_perRetryTimeout = value; }
172 
176  inline void SetPerRetryTimeout(Duration&& value) { m_perRetryTimeoutHasBeenSet = true; m_perRetryTimeout = std::move(value); }
177 
181  inline HttpRetryPolicy& WithPerRetryTimeout(const Duration& value) { SetPerRetryTimeout(value); return *this;}
182 
186  inline HttpRetryPolicy& WithPerRetryTimeout(Duration&& value) { SetPerRetryTimeout(std::move(value)); return *this;}
187 
188 
194  inline const Aws::Vector<TcpRetryPolicyEvent>& GetTcpRetryEvents() const{ return m_tcpRetryEvents; }
195 
201  inline bool TcpRetryEventsHasBeenSet() const { return m_tcpRetryEventsHasBeenSet; }
202 
208  inline void SetTcpRetryEvents(const Aws::Vector<TcpRetryPolicyEvent>& value) { m_tcpRetryEventsHasBeenSet = true; m_tcpRetryEvents = value; }
209 
215  inline void SetTcpRetryEvents(Aws::Vector<TcpRetryPolicyEvent>&& value) { m_tcpRetryEventsHasBeenSet = true; m_tcpRetryEvents = std::move(value); }
216 
222  inline HttpRetryPolicy& WithTcpRetryEvents(const Aws::Vector<TcpRetryPolicyEvent>& value) { SetTcpRetryEvents(value); return *this;}
223 
229  inline HttpRetryPolicy& WithTcpRetryEvents(Aws::Vector<TcpRetryPolicyEvent>&& value) { SetTcpRetryEvents(std::move(value)); return *this;}
230 
236  inline HttpRetryPolicy& AddTcpRetryEvents(const TcpRetryPolicyEvent& value) { m_tcpRetryEventsHasBeenSet = true; m_tcpRetryEvents.push_back(value); return *this; }
237 
243  inline HttpRetryPolicy& AddTcpRetryEvents(TcpRetryPolicyEvent&& value) { m_tcpRetryEventsHasBeenSet = true; m_tcpRetryEvents.push_back(std::move(value)); return *this; }
244 
245  private:
246 
247  Aws::Vector<Aws::String> m_httpRetryEvents;
248  bool m_httpRetryEventsHasBeenSet;
249 
250  long long m_maxRetries;
251  bool m_maxRetriesHasBeenSet;
252 
253  Duration m_perRetryTimeout;
254  bool m_perRetryTimeoutHasBeenSet;
255 
256  Aws::Vector<TcpRetryPolicyEvent> m_tcpRetryEvents;
257  bool m_tcpRetryEventsHasBeenSet;
258  };
259 
260 } // namespace Model
261 } // namespace AppMesh
262 } // namespace Aws
Aws::AppMesh::Model::HttpRetryPolicy::WithHttpRetryEvents
HttpRetryPolicy & WithHttpRetryEvents(const Aws::Vector< Aws::String > &value)
Definition: HttpRetryPolicy.h:94
Aws::AppMesh::Model::HttpRetryPolicy::MaxRetriesHasBeenSet
bool MaxRetriesHasBeenSet() const
Definition: HttpRetryPolicy.h:145
Aws::AppMesh::Model::HttpRetryPolicy::SetHttpRetryEvents
void SetHttpRetryEvents(Aws::Vector< Aws::String > &&value)
Definition: HttpRetryPolicy.h:84
Aws::AppMesh::Model::HttpRetryPolicy::WithHttpRetryEvents
HttpRetryPolicy & WithHttpRetryEvents(Aws::Vector< Aws::String > &&value)
Definition: HttpRetryPolicy.h:104
Aws::AppMesh::Model::HttpRetryPolicy::HttpRetryPolicy
HttpRetryPolicy()
Aws::AppMesh::Model::HttpRetryPolicy::AddTcpRetryEvents
HttpRetryPolicy & AddTcpRetryEvents(const TcpRetryPolicyEvent &value)
Definition: HttpRetryPolicy.h:236
Aws::AppMesh::Model::HttpRetryPolicy::AddTcpRetryEvents
HttpRetryPolicy & AddTcpRetryEvents(TcpRetryPolicyEvent &&value)
Definition: HttpRetryPolicy.h:243
Aws::AppMesh::Model::HttpRetryPolicy::PerRetryTimeoutHasBeenSet
bool PerRetryTimeoutHasBeenSet() const
Definition: HttpRetryPolicy.h:166
Aws::AppMesh::Model::HttpRetryPolicy::SetPerRetryTimeout
void SetPerRetryTimeout(const Duration &value)
Definition: HttpRetryPolicy.h:171
Aws::AppMesh::Model::HttpRetryPolicy
Definition: HttpRetryPolicy.h:38
Aws::AppMesh::Model::HttpRetryPolicy::GetPerRetryTimeout
const Duration & GetPerRetryTimeout() const
Definition: HttpRetryPolicy.h:161
Aws::AppMesh::Model::HttpRetryPolicy::AddHttpRetryEvents
HttpRetryPolicy & AddHttpRetryEvents(Aws::String &&value)
Definition: HttpRetryPolicy.h:124
Aws::AppMesh::Model::HttpRetryPolicy::WithPerRetryTimeout
HttpRetryPolicy & WithPerRetryTimeout(Duration &&value)
Definition: HttpRetryPolicy.h:186
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:181
Aws::AppMesh::Model::HttpRetryPolicy::SetPerRetryTimeout
void SetPerRetryTimeout(Duration &&value)
Definition: HttpRetryPolicy.h:176
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:150
Aws::AppMesh::Model::HttpRetryPolicy::AddHttpRetryEvents
HttpRetryPolicy & AddHttpRetryEvents(const Aws::String &value)
Definition: HttpRetryPolicy.h:114
Aws::AppMesh::Model::TcpRetryPolicyEvent
TcpRetryPolicyEvent
Definition: TcpRetryPolicyEvent.h:17
Aws::AppMesh::Model::HttpRetryPolicy::WithTcpRetryEvents
HttpRetryPolicy & WithTcpRetryEvents(const Aws::Vector< TcpRetryPolicyEvent > &value)
Definition: HttpRetryPolicy.h:222
Aws::AppMesh::Model::HttpRetryPolicy::SetTcpRetryEvents
void SetTcpRetryEvents(const Aws::Vector< TcpRetryPolicyEvent > &value)
Definition: HttpRetryPolicy.h:208
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
TcpRetryPolicyEvent.h
Duration.h
Aws::AppMesh::Model::HttpRetryPolicy::GetTcpRetryEvents
const Aws::Vector< TcpRetryPolicyEvent > & GetTcpRetryEvents() const
Definition: HttpRetryPolicy.h:194
Aws::AppMesh::Model::HttpRetryPolicy::SetTcpRetryEvents
void SetTcpRetryEvents(Aws::Vector< TcpRetryPolicyEvent > &&value)
Definition: HttpRetryPolicy.h:215
Aws::AppMesh::Model::HttpRetryPolicy::WithMaxRetries
HttpRetryPolicy & WithMaxRetries(long long value)
Definition: HttpRetryPolicy.h:155
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::HttpRetryPolicy::SetHttpRetryEvents
void SetHttpRetryEvents(const Aws::Vector< Aws::String > &value)
Definition: HttpRetryPolicy.h:74
Aws::AppMesh::Model::HttpRetryPolicy::operator=
HttpRetryPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::HttpRetryPolicy::HttpRetryEventsHasBeenSet
bool HttpRetryEventsHasBeenSet() const
Definition: HttpRetryPolicy.h:64
Aws::AppMesh::Model::HttpRetryPolicy::TcpRetryEventsHasBeenSet
bool TcpRetryEventsHasBeenSet() const
Definition: HttpRetryPolicy.h:201
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:229
Aws::AppMesh::Model::HttpRetryPolicy::HttpRetryPolicy
HttpRetryPolicy(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::HttpRetryPolicy::GetMaxRetries
long long GetMaxRetries() const
Definition: HttpRetryPolicy.h:140
Aws::AppMesh::Model::Duration
Definition: Duration.h:32
Aws::AppMesh::Model::HttpRetryPolicy::GetHttpRetryEvents
const Aws::Vector< Aws::String > & GetHttpRetryEvents() const
Definition: HttpRetryPolicy.h:54
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:134