AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RetryPolicy.h
1
6#pragma once
7#include <aws/scheduler/Scheduler_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 Scheduler
20{
21namespace Model
22{
23
33 {
34 public:
35 AWS_SCHEDULER_API RetryPolicy();
36 AWS_SCHEDULER_API RetryPolicy(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SCHEDULER_API RetryPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SCHEDULER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline int GetMaximumEventAgeInSeconds() const{ return m_maximumEventAgeInSeconds; }
47 inline bool MaximumEventAgeInSecondsHasBeenSet() const { return m_maximumEventAgeInSecondsHasBeenSet; }
48 inline void SetMaximumEventAgeInSeconds(int value) { m_maximumEventAgeInSecondsHasBeenSet = true; m_maximumEventAgeInSeconds = value; }
49 inline RetryPolicy& WithMaximumEventAgeInSeconds(int value) { SetMaximumEventAgeInSeconds(value); return *this;}
51
53
59 inline int GetMaximumRetryAttempts() const{ return m_maximumRetryAttempts; }
60 inline bool MaximumRetryAttemptsHasBeenSet() const { return m_maximumRetryAttemptsHasBeenSet; }
61 inline void SetMaximumRetryAttempts(int value) { m_maximumRetryAttemptsHasBeenSet = true; m_maximumRetryAttempts = value; }
62 inline RetryPolicy& WithMaximumRetryAttempts(int value) { SetMaximumRetryAttempts(value); return *this;}
64 private:
65
66 int m_maximumEventAgeInSeconds;
67 bool m_maximumEventAgeInSecondsHasBeenSet = false;
68
69 int m_maximumRetryAttempts;
70 bool m_maximumRetryAttemptsHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace Scheduler
75} // namespace Aws
bool MaximumEventAgeInSecondsHasBeenSet() const
Definition RetryPolicy.h:47
AWS_SCHEDULER_API RetryPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
RetryPolicy & WithMaximumRetryAttempts(int value)
Definition RetryPolicy.h:62
RetryPolicy & WithMaximumEventAgeInSeconds(int value)
Definition RetryPolicy.h:49
void SetMaximumRetryAttempts(int value)
Definition RetryPolicy.h:61
void SetMaximumEventAgeInSeconds(int value)
Definition RetryPolicy.h:48
AWS_SCHEDULER_API RetryPolicy(Aws::Utils::Json::JsonView jsonValue)
AWS_SCHEDULER_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue