AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
FailureConditions.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/Result.h>
9#include <aws/codepipeline/model/RetryConfiguration.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codepipeline/model/Condition.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodePipeline
25{
26namespace Model
27{
28
40 {
41 public:
42 AWS_CODEPIPELINE_API FailureConditions() = default;
43 AWS_CODEPIPELINE_API FailureConditions(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CODEPIPELINE_API FailureConditions& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
53 inline Result GetResult() const { return m_result; }
54 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
55 inline void SetResult(Result value) { m_resultHasBeenSet = true; m_result = value; }
56 inline FailureConditions& WithResult(Result value) { SetResult(value); return *this;}
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) { m_retryConfigurationHasBeenSet = true; m_retryConfiguration = std::forward<RetryConfigurationT>(value); }
68 template<typename RetryConfigurationT = RetryConfiguration>
69 FailureConditions& WithRetryConfiguration(RetryConfigurationT&& value) { SetRetryConfiguration(std::forward<RetryConfigurationT>(value)); return *this;}
71
73
81 inline const Aws::Vector<Condition>& GetConditions() const { return m_conditions; }
82 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
83 template<typename ConditionsT = Aws::Vector<Condition>>
84 void SetConditions(ConditionsT&& value) { m_conditionsHasBeenSet = true; m_conditions = std::forward<ConditionsT>(value); }
85 template<typename ConditionsT = Aws::Vector<Condition>>
86 FailureConditions& WithConditions(ConditionsT&& value) { SetConditions(std::forward<ConditionsT>(value)); return *this;}
87 template<typename ConditionsT = Condition>
88 FailureConditions& AddConditions(ConditionsT&& value) { m_conditionsHasBeenSet = true; m_conditions.emplace_back(std::forward<ConditionsT>(value)); return *this; }
90 private:
91
92 Result m_result{Result::NOT_SET};
93 bool m_resultHasBeenSet = false;
94
95 RetryConfiguration m_retryConfiguration;
96 bool m_retryConfigurationHasBeenSet = false;
97
98 Aws::Vector<Condition> m_conditions;
99 bool m_conditionsHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace CodePipeline
104} // 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