AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
RetryPolicy.h
Go to the documentation of this file.
1
6#pragma once
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Scheduler
20{
21namespace Model
22{
23
33 {
34 public:
39
40
45 inline int GetMaximumEventAgeInSeconds() const{ return m_maximumEventAgeInSeconds; }
46
51 inline bool MaximumEventAgeInSecondsHasBeenSet() const { return m_maximumEventAgeInSecondsHasBeenSet; }
52
57 inline void SetMaximumEventAgeInSeconds(int value) { m_maximumEventAgeInSecondsHasBeenSet = true; m_maximumEventAgeInSeconds = value; }
58
63 inline RetryPolicy& WithMaximumEventAgeInSeconds(int value) { SetMaximumEventAgeInSeconds(value); return *this;}
64
65
72 inline int GetMaximumRetryAttempts() const{ return m_maximumRetryAttempts; }
73
80 inline bool MaximumRetryAttemptsHasBeenSet() const { return m_maximumRetryAttemptsHasBeenSet; }
81
88 inline void SetMaximumRetryAttempts(int value) { m_maximumRetryAttemptsHasBeenSet = true; m_maximumRetryAttempts = value; }
89
96 inline RetryPolicy& WithMaximumRetryAttempts(int value) { SetMaximumRetryAttempts(value); return *this;}
97
98 private:
99
100 int m_maximumEventAgeInSeconds;
101 bool m_maximumEventAgeInSecondsHasBeenSet = false;
102
103 int m_maximumRetryAttempts;
104 bool m_maximumRetryAttemptsHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace Scheduler
109} // namespace Aws
#define AWS_SCHEDULER_API
bool MaximumEventAgeInSecondsHasBeenSet() const
Definition: RetryPolicy.h:51
AWS_SCHEDULER_API RetryPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
RetryPolicy & WithMaximumRetryAttempts(int value)
Definition: RetryPolicy.h:96
RetryPolicy & WithMaximumEventAgeInSeconds(int value)
Definition: RetryPolicy.h:63
void SetMaximumRetryAttempts(int value)
Definition: RetryPolicy.h:88
bool MaximumRetryAttemptsHasBeenSet() const
Definition: RetryPolicy.h:80
void SetMaximumEventAgeInSeconds(int value)
Definition: RetryPolicy.h:57
AWS_SCHEDULER_API RetryPolicy(Aws::Utils::Json::JsonView jsonValue)
AWS_SCHEDULER_API Aws::Utils::Json::JsonValue Jsonize() const