AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
BatchRetryStrategy.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
27 public:
28 AWS_EVENTBRIDGE_API BatchRetryStrategy() = default;
29 AWS_EVENTBRIDGE_API BatchRetryStrategy(Aws::Utils::Json::JsonView jsonValue);
31 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
32
34
38 inline int GetAttempts() const { return m_attempts; }
39 inline bool AttemptsHasBeenSet() const { return m_attemptsHasBeenSet; }
40 inline void SetAttempts(int value) {
41 m_attemptsHasBeenSet = true;
42 m_attempts = value;
43 }
44 inline BatchRetryStrategy& WithAttempts(int value) {
45 SetAttempts(value);
46 return *this;
47 }
49 private:
50 int m_attempts{0};
51 bool m_attemptsHasBeenSet = false;
52};
53
54} // namespace Model
55} // namespace EventBridge
56} // namespace Aws
AWS_EVENTBRIDGE_API BatchRetryStrategy(Aws::Utils::Json::JsonView jsonValue)
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EVENTBRIDGE_API BatchRetryStrategy()=default
AWS_EVENTBRIDGE_API BatchRetryStrategy & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchRetryStrategy & WithAttempts(int value)
Aws::Utils::Json::JsonValue JsonValue