AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RetryStrategy.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/batch/model/EvaluateOnExit.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Batch
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_BATCH_API RetryStrategy();
38 AWS_BATCH_API RetryStrategy(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
50 inline int GetAttempts() const{ return m_attempts; }
51 inline bool AttemptsHasBeenSet() const { return m_attemptsHasBeenSet; }
52 inline void SetAttempts(int value) { m_attemptsHasBeenSet = true; m_attempts = value; }
53 inline RetryStrategy& WithAttempts(int value) { SetAttempts(value); return *this;}
55
57
63 inline const Aws::Vector<EvaluateOnExit>& GetEvaluateOnExit() const{ return m_evaluateOnExit; }
64 inline bool EvaluateOnExitHasBeenSet() const { return m_evaluateOnExitHasBeenSet; }
65 inline void SetEvaluateOnExit(const Aws::Vector<EvaluateOnExit>& value) { m_evaluateOnExitHasBeenSet = true; m_evaluateOnExit = value; }
66 inline void SetEvaluateOnExit(Aws::Vector<EvaluateOnExit>&& value) { m_evaluateOnExitHasBeenSet = true; m_evaluateOnExit = std::move(value); }
68 inline RetryStrategy& WithEvaluateOnExit(Aws::Vector<EvaluateOnExit>&& value) { SetEvaluateOnExit(std::move(value)); return *this;}
69 inline RetryStrategy& AddEvaluateOnExit(const EvaluateOnExit& value) { m_evaluateOnExitHasBeenSet = true; m_evaluateOnExit.push_back(value); return *this; }
70 inline RetryStrategy& AddEvaluateOnExit(EvaluateOnExit&& value) { m_evaluateOnExitHasBeenSet = true; m_evaluateOnExit.push_back(std::move(value)); return *this; }
72 private:
73
74 int m_attempts;
75 bool m_attemptsHasBeenSet = false;
76
77 Aws::Vector<EvaluateOnExit> m_evaluateOnExit;
78 bool m_evaluateOnExitHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace Batch
83} // namespace Aws
RetryStrategy & WithEvaluateOnExit(Aws::Vector< EvaluateOnExit > &&value)
void SetEvaluateOnExit(Aws::Vector< EvaluateOnExit > &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
RetryStrategy & WithEvaluateOnExit(const Aws::Vector< EvaluateOnExit > &value)
void SetEvaluateOnExit(const Aws::Vector< EvaluateOnExit > &value)
const Aws::Vector< EvaluateOnExit > & GetEvaluateOnExit() const
RetryStrategy & AddEvaluateOnExit(EvaluateOnExit &&value)
RetryStrategy & AddEvaluateOnExit(const EvaluateOnExit &value)
AWS_BATCH_API RetryStrategy(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API RetryStrategy & operator=(Aws::Utils::Json::JsonView jsonValue)
RetryStrategy & WithAttempts(int value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue