AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConditionState.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/ConditionExecution.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/codepipeline/model/RuleState.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
34 {
35 public:
36 AWS_CODEPIPELINE_API ConditionState();
37 AWS_CODEPIPELINE_API ConditionState(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEPIPELINE_API ConditionState& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const ConditionExecution& GetLatestExecution() const{ return m_latestExecution; }
47 inline bool LatestExecutionHasBeenSet() const { return m_latestExecutionHasBeenSet; }
48 inline void SetLatestExecution(const ConditionExecution& value) { m_latestExecutionHasBeenSet = true; m_latestExecution = value; }
49 inline void SetLatestExecution(ConditionExecution&& value) { m_latestExecutionHasBeenSet = true; m_latestExecution = std::move(value); }
50 inline ConditionState& WithLatestExecution(const ConditionExecution& value) { SetLatestExecution(value); return *this;}
51 inline ConditionState& WithLatestExecution(ConditionExecution&& value) { SetLatestExecution(std::move(value)); return *this;}
53
55
58 inline const Aws::Vector<RuleState>& GetRuleStates() const{ return m_ruleStates; }
59 inline bool RuleStatesHasBeenSet() const { return m_ruleStatesHasBeenSet; }
60 inline void SetRuleStates(const Aws::Vector<RuleState>& value) { m_ruleStatesHasBeenSet = true; m_ruleStates = value; }
61 inline void SetRuleStates(Aws::Vector<RuleState>&& value) { m_ruleStatesHasBeenSet = true; m_ruleStates = std::move(value); }
62 inline ConditionState& WithRuleStates(const Aws::Vector<RuleState>& value) { SetRuleStates(value); return *this;}
63 inline ConditionState& WithRuleStates(Aws::Vector<RuleState>&& value) { SetRuleStates(std::move(value)); return *this;}
64 inline ConditionState& AddRuleStates(const RuleState& value) { m_ruleStatesHasBeenSet = true; m_ruleStates.push_back(value); return *this; }
65 inline ConditionState& AddRuleStates(RuleState&& value) { m_ruleStatesHasBeenSet = true; m_ruleStates.push_back(std::move(value)); return *this; }
67 private:
68
69 ConditionExecution m_latestExecution;
70 bool m_latestExecutionHasBeenSet = false;
71
72 Aws::Vector<RuleState> m_ruleStates;
73 bool m_ruleStatesHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace CodePipeline
78} // namespace Aws
void SetRuleStates(Aws::Vector< RuleState > &&value)
AWS_CODEPIPELINE_API ConditionState & operator=(Aws::Utils::Json::JsonView jsonValue)
const ConditionExecution & GetLatestExecution() const
ConditionState & WithLatestExecution(ConditionExecution &&value)
void SetLatestExecution(ConditionExecution &&value)
ConditionState & WithRuleStates(const Aws::Vector< RuleState > &value)
ConditionState & WithLatestExecution(const ConditionExecution &value)
const Aws::Vector< RuleState > & GetRuleStates() const
ConditionState & AddRuleStates(const RuleState &value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
ConditionState & AddRuleStates(RuleState &&value)
void SetRuleStates(const Aws::Vector< RuleState > &value)
void SetLatestExecution(const ConditionExecution &value)
ConditionState & WithRuleStates(Aws::Vector< RuleState > &&value)
AWS_CODEPIPELINE_API ConditionState(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue