AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/codepipeline/model/RuleState.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodePipeline {
22namespace Model {
23
30 public:
31 AWS_CODEPIPELINE_API ConditionState() = default;
32 AWS_CODEPIPELINE_API ConditionState(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEPIPELINE_API ConditionState& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const ConditionExecution& GetLatestExecution() const { return m_latestExecution; }
41 inline bool LatestExecutionHasBeenSet() const { return m_latestExecutionHasBeenSet; }
42 template <typename LatestExecutionT = ConditionExecution>
43 void SetLatestExecution(LatestExecutionT&& value) {
44 m_latestExecutionHasBeenSet = true;
45 m_latestExecution = std::forward<LatestExecutionT>(value);
46 }
47 template <typename LatestExecutionT = ConditionExecution>
48 ConditionState& WithLatestExecution(LatestExecutionT&& value) {
49 SetLatestExecution(std::forward<LatestExecutionT>(value));
50 return *this;
51 }
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) {
62 m_ruleStatesHasBeenSet = true;
63 m_ruleStates = std::forward<RuleStatesT>(value);
64 }
65 template <typename RuleStatesT = Aws::Vector<RuleState>>
66 ConditionState& WithRuleStates(RuleStatesT&& value) {
67 SetRuleStates(std::forward<RuleStatesT>(value));
68 return *this;
69 }
70 template <typename RuleStatesT = RuleState>
71 ConditionState& AddRuleStates(RuleStatesT&& value) {
72 m_ruleStatesHasBeenSet = true;
73 m_ruleStates.emplace_back(std::forward<RuleStatesT>(value));
74 return *this;
75 }
77 private:
78 ConditionExecution m_latestExecution;
79
80 Aws::Vector<RuleState> m_ruleStates;
81 bool m_latestExecutionHasBeenSet = false;
82 bool m_ruleStatesHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace CodePipeline
87} // 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