AWS SDK for C++

AWS SDK for C++ Version 1.11.635

Loading...
Searching...
No Matches
ServiceJobRetryStrategy.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/ServiceJobEvaluateOnExit.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
37 {
38 public:
39 AWS_BATCH_API ServiceJobRetryStrategy() = default;
42 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
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 ServiceJobRetryStrategy& WithAttempts(int value) { SetAttempts(value); return *this;}
55
57
61 inline const Aws::Vector<ServiceJobEvaluateOnExit>& GetEvaluateOnExit() const { return m_evaluateOnExit; }
62 inline bool EvaluateOnExitHasBeenSet() const { return m_evaluateOnExitHasBeenSet; }
63 template<typename EvaluateOnExitT = Aws::Vector<ServiceJobEvaluateOnExit>>
64 void SetEvaluateOnExit(EvaluateOnExitT&& value) { m_evaluateOnExitHasBeenSet = true; m_evaluateOnExit = std::forward<EvaluateOnExitT>(value); }
65 template<typename EvaluateOnExitT = Aws::Vector<ServiceJobEvaluateOnExit>>
66 ServiceJobRetryStrategy& WithEvaluateOnExit(EvaluateOnExitT&& value) { SetEvaluateOnExit(std::forward<EvaluateOnExitT>(value)); return *this;}
67 template<typename EvaluateOnExitT = ServiceJobEvaluateOnExit>
68 ServiceJobRetryStrategy& AddEvaluateOnExit(EvaluateOnExitT&& value) { m_evaluateOnExitHasBeenSet = true; m_evaluateOnExit.emplace_back(std::forward<EvaluateOnExitT>(value)); return *this; }
70 private:
71
72 int m_attempts{0};
73 bool m_attemptsHasBeenSet = false;
74
76 bool m_evaluateOnExitHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace Batch
81} // namespace Aws
const Aws::Vector< ServiceJobEvaluateOnExit > & GetEvaluateOnExit() const
AWS_BATCH_API ServiceJobRetryStrategy & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API ServiceJobRetryStrategy(Aws::Utils::Json::JsonView jsonValue)
ServiceJobRetryStrategy & WithEvaluateOnExit(EvaluateOnExitT &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceJobRetryStrategy & AddEvaluateOnExit(EvaluateOnExitT &&value)
ServiceJobRetryStrategy & WithAttempts(int value)
AWS_BATCH_API ServiceJobRetryStrategy()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue