AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
RetryPolicy.h
1
6#pragma once
7#include <aws/scheduler/Scheduler_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace Scheduler {
17namespace Model {
18
28 public:
29 AWS_SCHEDULER_API RetryPolicy() = default;
30 AWS_SCHEDULER_API RetryPolicy(Aws::Utils::Json::JsonView jsonValue);
31 AWS_SCHEDULER_API RetryPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SCHEDULER_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
39 inline int GetMaximumEventAgeInSeconds() const { return m_maximumEventAgeInSeconds; }
40 inline bool MaximumEventAgeInSecondsHasBeenSet() const { return m_maximumEventAgeInSecondsHasBeenSet; }
41 inline void SetMaximumEventAgeInSeconds(int value) {
42 m_maximumEventAgeInSecondsHasBeenSet = true;
43 m_maximumEventAgeInSeconds = value;
44 }
47 return *this;
48 }
50
52
58 inline int GetMaximumRetryAttempts() const { return m_maximumRetryAttempts; }
59 inline bool MaximumRetryAttemptsHasBeenSet() const { return m_maximumRetryAttemptsHasBeenSet; }
60 inline void SetMaximumRetryAttempts(int value) {
61 m_maximumRetryAttemptsHasBeenSet = true;
62 m_maximumRetryAttempts = value;
63 }
66 return *this;
67 }
69 private:
70 int m_maximumEventAgeInSeconds{0};
71
72 int m_maximumRetryAttempts{0};
73 bool m_maximumEventAgeInSecondsHasBeenSet = false;
74 bool m_maximumRetryAttemptsHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace Scheduler
79} // namespace Aws
bool MaximumEventAgeInSecondsHasBeenSet() const
Definition RetryPolicy.h:40
AWS_SCHEDULER_API RetryPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
RetryPolicy & WithMaximumRetryAttempts(int value)
Definition RetryPolicy.h:64
RetryPolicy & WithMaximumEventAgeInSeconds(int value)
Definition RetryPolicy.h:45
void SetMaximumRetryAttempts(int value)
Definition RetryPolicy.h:60
void SetMaximumEventAgeInSeconds(int value)
Definition RetryPolicy.h:41
AWS_SCHEDULER_API RetryPolicy(Aws::Utils::Json::JsonView jsonValue)
AWS_SCHEDULER_API RetryPolicy()=default
AWS_SCHEDULER_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue