AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
FailureConditions.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/Condition.h>
9#include <aws/codepipeline/model/Result.h>
10#include <aws/codepipeline/model/RetryConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodePipeline {
23namespace Model {
24
36 public:
37 AWS_CODEPIPELINE_API FailureConditions() = default;
38 AWS_CODEPIPELINE_API FailureConditions(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEPIPELINE_API FailureConditions& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
47 inline Result GetResult() const { return m_result; }
48 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
49 inline void SetResult(Result value) {
50 m_resultHasBeenSet = true;
51 m_result = value;
52 }
54 SetResult(value);
55 return *this;
56 }
58
60
64 inline const RetryConfiguration& GetRetryConfiguration() const { return m_retryConfiguration; }
65 inline bool RetryConfigurationHasBeenSet() const { return m_retryConfigurationHasBeenSet; }
66 template <typename RetryConfigurationT = RetryConfiguration>
67 void SetRetryConfiguration(RetryConfigurationT&& value) {
68 m_retryConfigurationHasBeenSet = true;
69 m_retryConfiguration = std::forward<RetryConfigurationT>(value);
70 }
71 template <typename RetryConfigurationT = RetryConfiguration>
72 FailureConditions& WithRetryConfiguration(RetryConfigurationT&& value) {
73 SetRetryConfiguration(std::forward<RetryConfigurationT>(value));
74 return *this;
75 }
77
79
87 inline const Aws::Vector<Condition>& GetConditions() const { return m_conditions; }
88 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
89 template <typename ConditionsT = Aws::Vector<Condition>>
90 void SetConditions(ConditionsT&& value) {
91 m_conditionsHasBeenSet = true;
92 m_conditions = std::forward<ConditionsT>(value);
93 }
94 template <typename ConditionsT = Aws::Vector<Condition>>
95 FailureConditions& WithConditions(ConditionsT&& value) {
96 SetConditions(std::forward<ConditionsT>(value));
97 return *this;
98 }
99 template <typename ConditionsT = Condition>
100 FailureConditions& AddConditions(ConditionsT&& value) {
101 m_conditionsHasBeenSet = true;
102 m_conditions.emplace_back(std::forward<ConditionsT>(value));
103 return *this;
104 }
106 private:
107 Result m_result{Result::NOT_SET};
108
109 RetryConfiguration m_retryConfiguration;
110
111 Aws::Vector<Condition> m_conditions;
112 bool m_resultHasBeenSet = false;
113 bool m_retryConfigurationHasBeenSet = false;
114 bool m_conditionsHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace CodePipeline
119} // namespace Aws
const RetryConfiguration & GetRetryConfiguration() const
AWS_CODEPIPELINE_API FailureConditions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEPIPELINE_API FailureConditions()=default
FailureConditions & WithRetryConfiguration(RetryConfigurationT &&value)
AWS_CODEPIPELINE_API FailureConditions(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
FailureConditions & WithResult(Result value)
FailureConditions & AddConditions(ConditionsT &&value)
FailureConditions & WithConditions(ConditionsT &&value)
void SetRetryConfiguration(RetryConfigurationT &&value)
const Aws::Vector< Condition > & GetConditions() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue