AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeBuild
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CODEBUILD_API AutoRetryConfig() = default;
36 AWS_CODEBUILD_API AutoRetryConfig(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
48 inline int GetAutoRetryLimit() const { return m_autoRetryLimit; }
49 inline bool AutoRetryLimitHasBeenSet() const { return m_autoRetryLimitHasBeenSet; }
50 inline void SetAutoRetryLimit(int value) { m_autoRetryLimitHasBeenSet = true; m_autoRetryLimit = value; }
51 inline AutoRetryConfig& WithAutoRetryLimit(int value) { SetAutoRetryLimit(value); return *this;}
53
55
59 inline int GetAutoRetryNumber() const { return m_autoRetryNumber; }
60 inline bool AutoRetryNumberHasBeenSet() const { return m_autoRetryNumberHasBeenSet; }
61 inline void SetAutoRetryNumber(int value) { m_autoRetryNumberHasBeenSet = true; m_autoRetryNumber = value; }
62 inline AutoRetryConfig& WithAutoRetryNumber(int value) { SetAutoRetryNumber(value); return *this;}
64
66
71 inline const Aws::String& GetNextAutoRetry() const { return m_nextAutoRetry; }
72 inline bool NextAutoRetryHasBeenSet() const { return m_nextAutoRetryHasBeenSet; }
73 template<typename NextAutoRetryT = Aws::String>
74 void SetNextAutoRetry(NextAutoRetryT&& value) { m_nextAutoRetryHasBeenSet = true; m_nextAutoRetry = std::forward<NextAutoRetryT>(value); }
75 template<typename NextAutoRetryT = Aws::String>
76 AutoRetryConfig& WithNextAutoRetry(NextAutoRetryT&& value) { SetNextAutoRetry(std::forward<NextAutoRetryT>(value)); return *this;}
78
80
84 inline const Aws::String& GetPreviousAutoRetry() const { return m_previousAutoRetry; }
85 inline bool PreviousAutoRetryHasBeenSet() const { return m_previousAutoRetryHasBeenSet; }
86 template<typename PreviousAutoRetryT = Aws::String>
87 void SetPreviousAutoRetry(PreviousAutoRetryT&& value) { m_previousAutoRetryHasBeenSet = true; m_previousAutoRetry = std::forward<PreviousAutoRetryT>(value); }
88 template<typename PreviousAutoRetryT = Aws::String>
89 AutoRetryConfig& WithPreviousAutoRetry(PreviousAutoRetryT&& value) { SetPreviousAutoRetry(std::forward<PreviousAutoRetryT>(value)); return *this;}
91 private:
92
93 int m_autoRetryLimit{0};
94 bool m_autoRetryLimitHasBeenSet = false;
95
96 int m_autoRetryNumber{0};
97 bool m_autoRetryNumberHasBeenSet = false;
98
99 Aws::String m_nextAutoRetry;
100 bool m_nextAutoRetryHasBeenSet = false;
101
102 Aws::String m_previousAutoRetry;
103 bool m_previousAutoRetryHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace CodeBuild
108} // 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