AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetNextAutoRetry(const Aws::String& value) { m_nextAutoRetryHasBeenSet = true; m_nextAutoRetry = value; }
74 inline void SetNextAutoRetry(Aws::String&& value) { m_nextAutoRetryHasBeenSet = true; m_nextAutoRetry = std::move(value); }
75 inline void SetNextAutoRetry(const char* value) { m_nextAutoRetryHasBeenSet = true; m_nextAutoRetry.assign(value); }
76 inline AutoRetryConfig& WithNextAutoRetry(const Aws::String& value) { SetNextAutoRetry(value); return *this;}
77 inline AutoRetryConfig& WithNextAutoRetry(Aws::String&& value) { SetNextAutoRetry(std::move(value)); return *this;}
78 inline AutoRetryConfig& WithNextAutoRetry(const char* value) { SetNextAutoRetry(value); return *this;}
80
82
86 inline const Aws::String& GetPreviousAutoRetry() const{ return m_previousAutoRetry; }
87 inline bool PreviousAutoRetryHasBeenSet() const { return m_previousAutoRetryHasBeenSet; }
88 inline void SetPreviousAutoRetry(const Aws::String& value) { m_previousAutoRetryHasBeenSet = true; m_previousAutoRetry = value; }
89 inline void SetPreviousAutoRetry(Aws::String&& value) { m_previousAutoRetryHasBeenSet = true; m_previousAutoRetry = std::move(value); }
90 inline void SetPreviousAutoRetry(const char* value) { m_previousAutoRetryHasBeenSet = true; m_previousAutoRetry.assign(value); }
91 inline AutoRetryConfig& WithPreviousAutoRetry(const Aws::String& value) { SetPreviousAutoRetry(value); return *this;}
92 inline AutoRetryConfig& WithPreviousAutoRetry(Aws::String&& value) { SetPreviousAutoRetry(std::move(value)); return *this;}
93 inline AutoRetryConfig& WithPreviousAutoRetry(const char* value) { SetPreviousAutoRetry(value); return *this;}
95 private:
96
97 int m_autoRetryLimit;
98 bool m_autoRetryLimitHasBeenSet = false;
99
100 int m_autoRetryNumber;
101 bool m_autoRetryNumberHasBeenSet = false;
102
103 Aws::String m_nextAutoRetry;
104 bool m_nextAutoRetryHasBeenSet = false;
105
106 Aws::String m_previousAutoRetry;
107 bool m_previousAutoRetryHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace CodeBuild
112} // namespace Aws
const Aws::String & GetNextAutoRetry() const
void SetNextAutoRetry(const char *value)
AutoRetryConfig & WithPreviousAutoRetry(Aws::String &&value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
AutoRetryConfig & WithAutoRetryNumber(int value)
AWS_CODEBUILD_API AutoRetryConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetNextAutoRetry(const Aws::String &value)
AutoRetryConfig & WithNextAutoRetry(const Aws::String &value)
AutoRetryConfig & WithPreviousAutoRetry(const char *value)
void SetPreviousAutoRetry(Aws::String &&value)
void SetPreviousAutoRetry(const char *value)
AutoRetryConfig & WithNextAutoRetry(const char *value)
AutoRetryConfig & WithAutoRetryLimit(int value)
AWS_CODEBUILD_API AutoRetryConfig(Aws::Utils::Json::JsonView jsonValue)
void SetNextAutoRetry(Aws::String &&value)
void SetPreviousAutoRetry(const Aws::String &value)
AutoRetryConfig & WithPreviousAutoRetry(const Aws::String &value)
const Aws::String & GetPreviousAutoRetry() const
AutoRetryConfig & WithNextAutoRetry(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue