AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
RetryPolicy.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace EventBridge {
17namespace Model {
18
26 public:
27 AWS_EVENTBRIDGE_API RetryPolicy() = default;
28 AWS_EVENTBRIDGE_API RetryPolicy(Aws::Utils::Json::JsonView jsonValue);
29 AWS_EVENTBRIDGE_API RetryPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
38 inline int GetMaximumRetryAttempts() const { return m_maximumRetryAttempts; }
39 inline bool MaximumRetryAttemptsHasBeenSet() const { return m_maximumRetryAttemptsHasBeenSet; }
40 inline void SetMaximumRetryAttempts(int value) {
41 m_maximumRetryAttemptsHasBeenSet = true;
42 m_maximumRetryAttempts = value;
43 }
46 return *this;
47 }
49
51
55 inline int GetMaximumEventAgeInSeconds() const { return m_maximumEventAgeInSeconds; }
56 inline bool MaximumEventAgeInSecondsHasBeenSet() const { return m_maximumEventAgeInSecondsHasBeenSet; }
57 inline void SetMaximumEventAgeInSeconds(int value) {
58 m_maximumEventAgeInSecondsHasBeenSet = true;
59 m_maximumEventAgeInSeconds = value;
60 }
63 return *this;
64 }
66 private:
67 int m_maximumRetryAttempts{0};
68
69 int m_maximumEventAgeInSeconds{0};
70 bool m_maximumRetryAttemptsHasBeenSet = false;
71 bool m_maximumEventAgeInSecondsHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace EventBridge
76} // namespace Aws
AWS_EVENTBRIDGE_API RetryPolicy()=default
AWS_EVENTBRIDGE_API RetryPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
RetryPolicy & WithMaximumEventAgeInSeconds(int value)
Definition RetryPolicy.h:61
RetryPolicy & WithMaximumRetryAttempts(int value)
Definition RetryPolicy.h:44
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:57
Aws::Utils::Json::JsonValue JsonValue