AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RetryPolicy.h
1
6#pragma once
7#include <aws/emr-serverless/EMRServerless_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace EMRServerless
20{
21namespace Model
22{
23
30 {
31 public:
32 AWS_EMRSERVERLESS_API RetryPolicy() = default;
33 AWS_EMRSERVERLESS_API RetryPolicy(Aws::Utils::Json::JsonView jsonValue);
34 AWS_EMRSERVERLESS_API RetryPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
37
39
43 inline int GetMaxAttempts() const { return m_maxAttempts; }
44 inline bool MaxAttemptsHasBeenSet() const { return m_maxAttemptsHasBeenSet; }
45 inline void SetMaxAttempts(int value) { m_maxAttemptsHasBeenSet = true; m_maxAttempts = value; }
46 inline RetryPolicy& WithMaxAttempts(int value) { SetMaxAttempts(value); return *this;}
48
50
54 inline int GetMaxFailedAttemptsPerHour() const { return m_maxFailedAttemptsPerHour; }
55 inline bool MaxFailedAttemptsPerHourHasBeenSet() const { return m_maxFailedAttemptsPerHourHasBeenSet; }
56 inline void SetMaxFailedAttemptsPerHour(int value) { m_maxFailedAttemptsPerHourHasBeenSet = true; m_maxFailedAttemptsPerHour = value; }
57 inline RetryPolicy& WithMaxFailedAttemptsPerHour(int value) { SetMaxFailedAttemptsPerHour(value); return *this;}
59 private:
60
61 int m_maxAttempts{0};
62 bool m_maxAttemptsHasBeenSet = false;
63
64 int m_maxFailedAttemptsPerHour{0};
65 bool m_maxFailedAttemptsPerHourHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace EMRServerless
70} // namespace Aws
AWS_EMRSERVERLESS_API RetryPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
RetryPolicy & WithMaxFailedAttemptsPerHour(int value)
Definition RetryPolicy.h:57
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:46
Aws::Utils::Json::JsonValue JsonValue