AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
RetryPolicy.h
1
6#pragma once
7#include <aws/emr-serverless/EMRServerless_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace EMRServerless {
17namespace Model {
18
25 public:
26 AWS_EMRSERVERLESS_API RetryPolicy() = default;
27 AWS_EMRSERVERLESS_API RetryPolicy(Aws::Utils::Json::JsonView jsonValue);
28 AWS_EMRSERVERLESS_API RetryPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
29 AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
30
32
36 inline int GetMaxAttempts() const { return m_maxAttempts; }
37 inline bool MaxAttemptsHasBeenSet() const { return m_maxAttemptsHasBeenSet; }
38 inline void SetMaxAttempts(int value) {
39 m_maxAttemptsHasBeenSet = true;
40 m_maxAttempts = value;
41 }
42 inline RetryPolicy& WithMaxAttempts(int value) {
43 SetMaxAttempts(value);
44 return *this;
45 }
47
49
53 inline int GetMaxFailedAttemptsPerHour() const { return m_maxFailedAttemptsPerHour; }
54 inline bool MaxFailedAttemptsPerHourHasBeenSet() const { return m_maxFailedAttemptsPerHourHasBeenSet; }
55 inline void SetMaxFailedAttemptsPerHour(int value) {
56 m_maxFailedAttemptsPerHourHasBeenSet = true;
57 m_maxFailedAttemptsPerHour = value;
58 }
61 return *this;
62 }
64 private:
65 int m_maxAttempts{0};
66
67 int m_maxFailedAttemptsPerHour{0};
68 bool m_maxAttemptsHasBeenSet = false;
69 bool m_maxFailedAttemptsPerHourHasBeenSet = false;
70};
71
72} // namespace Model
73} // namespace EMRServerless
74} // namespace Aws
AWS_EMRSERVERLESS_API RetryPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
RetryPolicy & WithMaxFailedAttemptsPerHour(int value)
Definition RetryPolicy.h:59
AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EMRSERVERLESS_API RetryPolicy(Aws::Utils::Json::JsonView jsonValue)
AWS_EMRSERVERLESS_API RetryPolicy()=default
RetryPolicy & WithMaxAttempts(int value)
Definition RetryPolicy.h:42
Aws::Utils::Json::JsonValue JsonValue