AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename LatestExecutionT = ConditionExecution>
49 void SetLatestExecution(LatestExecutionT&& value) { m_latestExecutionHasBeenSet = true; m_latestExecution = std::forward<LatestExecutionT>(value); }
50 template<typename LatestExecutionT = ConditionExecution>
51 ConditionState& WithLatestExecution(LatestExecutionT&& value) { SetLatestExecution(std::forward<LatestExecutionT>(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 template<typename RuleStatesT = Aws::Vector<RuleState>>
61 void SetRuleStates(RuleStatesT&& value) { m_ruleStatesHasBeenSet = true; m_ruleStates = std::forward<RuleStatesT>(value); }
62 template<typename RuleStatesT = Aws::Vector<RuleState>>
63 ConditionState& WithRuleStates(RuleStatesT&& value) { SetRuleStates(std::forward<RuleStatesT>(value)); return *this;}
64 template<typename RuleStatesT = RuleState>
65 ConditionState& AddRuleStates(RuleStatesT&& value) { m_ruleStatesHasBeenSet = true; m_ruleStates.emplace_back(std::forward<RuleStatesT>(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 SetLatestExecution(LatestExecutionT &&value)
AWS_CODEPIPELINE_API ConditionState & operator=(Aws::Utils::Json::JsonView jsonValue)
ConditionState & WithLatestExecution(LatestExecutionT &&value)
const ConditionExecution & GetLatestExecution() const
void SetRuleStates(RuleStatesT &&value)
const Aws::Vector< RuleState > & GetRuleStates() const
ConditionState & WithRuleStates(RuleStatesT &&value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEPIPELINE_API ConditionState(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEPIPELINE_API ConditionState()=default
ConditionState & AddRuleStates(RuleStatesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue