AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AutoRetryConfig.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CodeBuild {
20namespace Model {
21
29 public:
30 AWS_CODEBUILD_API AutoRetryConfig() = default;
31 AWS_CODEBUILD_API AutoRetryConfig(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
42 inline int GetAutoRetryLimit() const { return m_autoRetryLimit; }
43 inline bool AutoRetryLimitHasBeenSet() const { return m_autoRetryLimitHasBeenSet; }
44 inline void SetAutoRetryLimit(int value) {
45 m_autoRetryLimitHasBeenSet = true;
46 m_autoRetryLimit = value;
47 }
49 SetAutoRetryLimit(value);
50 return *this;
51 }
53
55
59 inline int GetAutoRetryNumber() const { return m_autoRetryNumber; }
60 inline bool AutoRetryNumberHasBeenSet() const { return m_autoRetryNumberHasBeenSet; }
61 inline void SetAutoRetryNumber(int value) {
62 m_autoRetryNumberHasBeenSet = true;
63 m_autoRetryNumber = value;
64 }
66 SetAutoRetryNumber(value);
67 return *this;
68 }
70
72
77 inline const Aws::String& GetNextAutoRetry() const { return m_nextAutoRetry; }
78 inline bool NextAutoRetryHasBeenSet() const { return m_nextAutoRetryHasBeenSet; }
79 template <typename NextAutoRetryT = Aws::String>
80 void SetNextAutoRetry(NextAutoRetryT&& value) {
81 m_nextAutoRetryHasBeenSet = true;
82 m_nextAutoRetry = std::forward<NextAutoRetryT>(value);
83 }
84 template <typename NextAutoRetryT = Aws::String>
85 AutoRetryConfig& WithNextAutoRetry(NextAutoRetryT&& value) {
86 SetNextAutoRetry(std::forward<NextAutoRetryT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetPreviousAutoRetry() const { return m_previousAutoRetry; }
97 inline bool PreviousAutoRetryHasBeenSet() const { return m_previousAutoRetryHasBeenSet; }
98 template <typename PreviousAutoRetryT = Aws::String>
99 void SetPreviousAutoRetry(PreviousAutoRetryT&& value) {
100 m_previousAutoRetryHasBeenSet = true;
101 m_previousAutoRetry = std::forward<PreviousAutoRetryT>(value);
102 }
103 template <typename PreviousAutoRetryT = Aws::String>
104 AutoRetryConfig& WithPreviousAutoRetry(PreviousAutoRetryT&& value) {
105 SetPreviousAutoRetry(std::forward<PreviousAutoRetryT>(value));
106 return *this;
107 }
109 private:
110 int m_autoRetryLimit{0};
111
112 int m_autoRetryNumber{0};
113
114 Aws::String m_nextAutoRetry;
115
116 Aws::String m_previousAutoRetry;
117 bool m_autoRetryLimitHasBeenSet = false;
118 bool m_autoRetryNumberHasBeenSet = false;
119 bool m_nextAutoRetryHasBeenSet = false;
120 bool m_previousAutoRetryHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace CodeBuild
125} // namespace Aws
const Aws::String & GetNextAutoRetry() const
void SetPreviousAutoRetry(PreviousAutoRetryT &&value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
AutoRetryConfig & WithAutoRetryNumber(int value)
AWS_CODEBUILD_API AutoRetryConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoRetryConfig & WithAutoRetryLimit(int value)
AutoRetryConfig & WithPreviousAutoRetry(PreviousAutoRetryT &&value)
AWS_CODEBUILD_API AutoRetryConfig(Aws::Utils::Json::JsonView jsonValue)
void SetNextAutoRetry(NextAutoRetryT &&value)
AWS_CODEBUILD_API AutoRetryConfig()=default
const Aws::String & GetPreviousAutoRetry() const
AutoRetryConfig & WithNextAutoRetry(NextAutoRetryT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue