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/eventbridge/EventBridge_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 EventBridge
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_EVENTBRIDGE_API RetryPolicy();
34 AWS_EVENTBRIDGE_API RetryPolicy(Aws::Utils::Json::JsonView jsonValue);
35 AWS_EVENTBRIDGE_API RetryPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
38
40
45 inline int GetMaximumRetryAttempts() const{ return m_maximumRetryAttempts; }
46 inline bool MaximumRetryAttemptsHasBeenSet() const { return m_maximumRetryAttemptsHasBeenSet; }
47 inline void SetMaximumRetryAttempts(int value) { m_maximumRetryAttemptsHasBeenSet = true; m_maximumRetryAttempts = value; }
48 inline RetryPolicy& WithMaximumRetryAttempts(int value) { SetMaximumRetryAttempts(value); return *this;}
50
52
56 inline int GetMaximumEventAgeInSeconds() const{ return m_maximumEventAgeInSeconds; }
57 inline bool MaximumEventAgeInSecondsHasBeenSet() const { return m_maximumEventAgeInSecondsHasBeenSet; }
58 inline void SetMaximumEventAgeInSeconds(int value) { m_maximumEventAgeInSecondsHasBeenSet = true; m_maximumEventAgeInSeconds = value; }
59 inline RetryPolicy& WithMaximumEventAgeInSeconds(int value) { SetMaximumEventAgeInSeconds(value); return *this;}
61 private:
62
63 int m_maximumRetryAttempts;
64 bool m_maximumRetryAttemptsHasBeenSet = false;
65
66 int m_maximumEventAgeInSeconds;
67 bool m_maximumEventAgeInSecondsHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace EventBridge
72} // namespace Aws
AWS_EVENTBRIDGE_API RetryPolicy()
AWS_EVENTBRIDGE_API RetryPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
RetryPolicy & WithMaximumEventAgeInSeconds(int value)
Definition RetryPolicy.h:59
RetryPolicy & WithMaximumRetryAttempts(int value)
Definition RetryPolicy.h:48
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EVENTBRIDGE_API RetryPolicy(Aws::Utils::Json::JsonView jsonValue)
void SetMaximumEventAgeInSeconds(int value)
Definition RetryPolicy.h:58
Aws::Utils::Json::JsonValue JsonValue