AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
36 {
37 public:
38 AWS_CODEPIPELINE_API FailureConditions();
39 AWS_CODEPIPELINE_API FailureConditions(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEPIPELINE_API FailureConditions& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Result& GetResult() const{ return m_result; }
50 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
51 inline void SetResult(const Result& value) { m_resultHasBeenSet = true; m_result = value; }
52 inline void SetResult(Result&& value) { m_resultHasBeenSet = true; m_result = std::move(value); }
53 inline FailureConditions& WithResult(const Result& value) { SetResult(value); return *this;}
54 inline FailureConditions& WithResult(Result&& value) { SetResult(std::move(value)); return *this;}
56
58
62 inline const RetryConfiguration& GetRetryConfiguration() const{ return m_retryConfiguration; }
63 inline bool RetryConfigurationHasBeenSet() const { return m_retryConfigurationHasBeenSet; }
64 inline void SetRetryConfiguration(const RetryConfiguration& value) { m_retryConfigurationHasBeenSet = true; m_retryConfiguration = value; }
65 inline void SetRetryConfiguration(RetryConfiguration&& value) { m_retryConfigurationHasBeenSet = true; m_retryConfiguration = std::move(value); }
67 inline FailureConditions& WithRetryConfiguration(RetryConfiguration&& value) { SetRetryConfiguration(std::move(value)); return *this;}
69
71
74 inline const Aws::Vector<Condition>& GetConditions() const{ return m_conditions; }
75 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
76 inline void SetConditions(const Aws::Vector<Condition>& value) { m_conditionsHasBeenSet = true; m_conditions = value; }
77 inline void SetConditions(Aws::Vector<Condition>&& value) { m_conditionsHasBeenSet = true; m_conditions = std::move(value); }
78 inline FailureConditions& WithConditions(const Aws::Vector<Condition>& value) { SetConditions(value); return *this;}
79 inline FailureConditions& WithConditions(Aws::Vector<Condition>&& value) { SetConditions(std::move(value)); return *this;}
80 inline FailureConditions& AddConditions(const Condition& value) { m_conditionsHasBeenSet = true; m_conditions.push_back(value); return *this; }
81 inline FailureConditions& AddConditions(Condition&& value) { m_conditionsHasBeenSet = true; m_conditions.push_back(std::move(value)); return *this; }
83 private:
84
85 Result m_result;
86 bool m_resultHasBeenSet = false;
87
88 RetryConfiguration m_retryConfiguration;
89 bool m_retryConfigurationHasBeenSet = false;
90
91 Aws::Vector<Condition> m_conditions;
92 bool m_conditionsHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace CodePipeline
97} // namespace Aws
const RetryConfiguration & GetRetryConfiguration() const
void SetRetryConfiguration(const RetryConfiguration &value)
FailureConditions & AddConditions(const Condition &value)
void SetRetryConfiguration(RetryConfiguration &&value)
AWS_CODEPIPELINE_API FailureConditions & operator=(Aws::Utils::Json::JsonView jsonValue)
FailureConditions & WithConditions(Aws::Vector< Condition > &&value)
FailureConditions & WithResult(Result &&value)
AWS_CODEPIPELINE_API FailureConditions(Aws::Utils::Json::JsonView jsonValue)
FailureConditions & WithRetryConfiguration(RetryConfiguration &&value)
FailureConditions & WithConditions(const Aws::Vector< Condition > &value)
FailureConditions & WithResult(const Result &value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
FailureConditions & AddConditions(Condition &&value)
void SetConditions(Aws::Vector< Condition > &&value)
FailureConditions & WithRetryConfiguration(const RetryConfiguration &value)
void SetConditions(const Aws::Vector< Condition > &value)
const Aws::Vector< Condition > & GetConditions() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue