AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
RetryPolicy.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/eventbridgev2/EventBridgeV2_EXPORTS.h>
9#include <aws/eventbridgev2/model/RetryStrategy.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace EventBridgeV2 {
20namespace Model {
21
28 public:
29 AWS_EVENTBRIDGEV2_API RetryPolicy() = default;
30 AWS_EVENTBRIDGEV2_API RetryPolicy(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
31 AWS_EVENTBRIDGEV2_API RetryPolicy& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
33
35
38 inline int64_t GetMaxRetryAttempts() const { return m_maxRetryAttempts; }
39 inline bool MaxRetryAttemptsHasBeenSet() const { return m_maxRetryAttemptsHasBeenSet; }
40 inline void SetMaxRetryAttempts(int64_t value) {
41 m_maxRetryAttemptsHasBeenSet = true;
42 m_maxRetryAttempts = value;
43 }
44 inline RetryPolicy& WithMaxRetryAttempts(int64_t value) {
46 return *this;
47 }
49
51
55 inline int64_t GetMaxEventAgeInSeconds() const { return m_maxEventAgeInSeconds; }
56 inline bool MaxEventAgeInSecondsHasBeenSet() const { return m_maxEventAgeInSecondsHasBeenSet; }
57 inline void SetMaxEventAgeInSeconds(int64_t value) {
58 m_maxEventAgeInSecondsHasBeenSet = true;
59 m_maxEventAgeInSeconds = value;
60 }
61 inline RetryPolicy& WithMaxEventAgeInSeconds(int64_t value) {
63 return *this;
64 }
66
68
71 inline RetryStrategy GetRetryStrategy() const { return m_retryStrategy; }
72 inline bool RetryStrategyHasBeenSet() const { return m_retryStrategyHasBeenSet; }
73 inline void SetRetryStrategy(RetryStrategy value) {
74 m_retryStrategyHasBeenSet = true;
75 m_retryStrategy = value;
76 }
78 SetRetryStrategy(value);
79 return *this;
80 }
82 private:
83 int64_t m_maxRetryAttempts{0};
84
85 int64_t m_maxEventAgeInSeconds{0};
86
88 bool m_maxRetryAttemptsHasBeenSet = false;
89 bool m_maxEventAgeInSecondsHasBeenSet = false;
90 bool m_retryStrategyHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace EventBridgeV2
95} // namespace Aws
AWS_EVENTBRIDGEV2_API RetryPolicy(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_EVENTBRIDGEV2_API RetryPolicy()=default
RetryPolicy & WithMaxEventAgeInSeconds(int64_t value)
Definition RetryPolicy.h:61
RetryPolicy & WithMaxRetryAttempts(int64_t value)
Definition RetryPolicy.h:44
AWS_EVENTBRIDGEV2_API RetryPolicy & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetRetryStrategy(RetryStrategy value)
Definition RetryPolicy.h:73
void SetMaxEventAgeInSeconds(int64_t value)
Definition RetryPolicy.h:57
void SetMaxRetryAttempts(int64_t value)
Definition RetryPolicy.h:40
RetryStrategy GetRetryStrategy() const
Definition RetryPolicy.h:71
RetryPolicy & WithRetryStrategy(RetryStrategy value)
Definition RetryPolicy.h:77