AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Condition.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/Result.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/codepipeline/model/RuleDeclaration.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodePipeline
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CODEPIPELINE_API Condition();
38 AWS_CODEPIPELINE_API Condition(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEPIPELINE_API Condition& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Result& GetResult() const{ return m_result; }
49 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
50 inline void SetResult(const Result& value) { m_resultHasBeenSet = true; m_result = value; }
51 inline void SetResult(Result&& value) { m_resultHasBeenSet = true; m_result = std::move(value); }
52 inline Condition& WithResult(const Result& value) { SetResult(value); return *this;}
53 inline Condition& WithResult(Result&& value) { SetResult(std::move(value)); return *this;}
55
57
60 inline const Aws::Vector<RuleDeclaration>& GetRules() const{ return m_rules; }
61 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
62 inline void SetRules(const Aws::Vector<RuleDeclaration>& value) { m_rulesHasBeenSet = true; m_rules = value; }
63 inline void SetRules(Aws::Vector<RuleDeclaration>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
64 inline Condition& WithRules(const Aws::Vector<RuleDeclaration>& value) { SetRules(value); return *this;}
65 inline Condition& WithRules(Aws::Vector<RuleDeclaration>&& value) { SetRules(std::move(value)); return *this;}
66 inline Condition& AddRules(const RuleDeclaration& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
67 inline Condition& AddRules(RuleDeclaration&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
69 private:
70
71 Result m_result;
72 bool m_resultHasBeenSet = false;
73
75 bool m_rulesHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace CodePipeline
80} // namespace Aws
AWS_CODEPIPELINE_API Condition & operator=(Aws::Utils::Json::JsonView jsonValue)
const Result & GetResult() const
Definition Condition.h:48
Condition & AddRules(RuleDeclaration &&value)
Definition Condition.h:67
Condition & WithRules(const Aws::Vector< RuleDeclaration > &value)
Definition Condition.h:64
void SetRules(Aws::Vector< RuleDeclaration > &&value)
Definition Condition.h:63
void SetResult(Result &&value)
Definition Condition.h:51
AWS_CODEPIPELINE_API Condition()
void SetResult(const Result &value)
Definition Condition.h:50
Condition & AddRules(const RuleDeclaration &value)
Definition Condition.h:66
Condition & WithRules(Aws::Vector< RuleDeclaration > &&value)
Definition Condition.h:65
Condition & WithResult(const Result &value)
Definition Condition.h:52
void SetRules(const Aws::Vector< RuleDeclaration > &value)
Definition Condition.h:62
AWS_CODEPIPELINE_API Condition(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< RuleDeclaration > & GetRules() const
Definition Condition.h:60
Condition & WithResult(Result &&value)
Definition Condition.h:53
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue