AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
RetryDetails.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace Lambda {
17namespace Model {
18
26 public:
27 AWS_LAMBDA_API RetryDetails() = default;
28 AWS_LAMBDA_API RetryDetails(Aws::Utils::Json::JsonView jsonValue);
30 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline int GetCurrentAttempt() const { return m_currentAttempt; }
37 inline bool CurrentAttemptHasBeenSet() const { return m_currentAttemptHasBeenSet; }
38 inline void SetCurrentAttempt(int value) {
39 m_currentAttemptHasBeenSet = true;
40 m_currentAttempt = value;
41 }
42 inline RetryDetails& WithCurrentAttempt(int value) {
43 SetCurrentAttempt(value);
44 return *this;
45 }
47
49
52 inline int GetNextAttemptDelaySeconds() const { return m_nextAttemptDelaySeconds; }
53 inline bool NextAttemptDelaySecondsHasBeenSet() const { return m_nextAttemptDelaySecondsHasBeenSet; }
54 inline void SetNextAttemptDelaySeconds(int value) {
55 m_nextAttemptDelaySecondsHasBeenSet = true;
56 m_nextAttemptDelaySeconds = value;
57 }
60 return *this;
61 }
63 private:
64 int m_currentAttempt{0};
65
66 int m_nextAttemptDelaySeconds{0};
67 bool m_currentAttemptHasBeenSet = false;
68 bool m_nextAttemptDelaySecondsHasBeenSet = false;
69};
70
71} // namespace Model
72} // namespace Lambda
73} // namespace Aws
RetryDetails & WithCurrentAttempt(int value)
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LAMBDA_API RetryDetails()=default
AWS_LAMBDA_API RetryDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetNextAttemptDelaySeconds(int value)
AWS_LAMBDA_API RetryDetails(Aws::Utils::Json::JsonView jsonValue)
RetryDetails & WithNextAttemptDelaySeconds(int value)
bool NextAttemptDelaySecondsHasBeenSet() const
Aws::Utils::Json::JsonValue JsonValue