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>
55 inline void SetResult(
Result value) { m_resultHasBeenSet =
true; m_result = value; }
66 template<
typename RetryConfigurationT = RetryConfiguration>
67 void SetRetryConfiguration(RetryConfigurationT&& value) { m_retryConfigurationHasBeenSet =
true; m_retryConfiguration = std::forward<RetryConfigurationT>(value); }
68 template<
typename RetryConfigurationT = RetryConfiguration>
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>>
87 template<
typename ConditionsT = Condition>
88 FailureConditions&
AddConditions(ConditionsT&& value) { m_conditionsHasBeenSet =
true; m_conditions.emplace_back(std::forward<ConditionsT>(value));
return *
this; }
93 bool m_resultHasBeenSet =
false;
95 RetryConfiguration m_retryConfiguration;
96 bool m_retryConfigurationHasBeenSet =
false;
99 bool m_conditionsHasBeenSet =
false;
const RetryConfiguration & GetRetryConfiguration() const
bool ConditionsHasBeenSet() const
AWS_CODEPIPELINE_API FailureConditions & operator=(Aws::Utils::Json::JsonView jsonValue)
bool RetryConfigurationHasBeenSet() const
AWS_CODEPIPELINE_API FailureConditions()=default
FailureConditions & WithRetryConfiguration(RetryConfigurationT &&value)
AWS_CODEPIPELINE_API FailureConditions(Aws::Utils::Json::JsonView jsonValue)
void SetResult(Result value)
bool ResultHasBeenSet() const
void SetConditions(ConditionsT &&value)
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