7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/Result.h>
9#include <aws/codepipeline/model/RuleDeclaration.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/crt/cbor/Cbor.h>
21namespace CodePipeline {
39 AWS_CODEPIPELINE_API
Condition(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_CODEPIPELINE_API
Condition&
operator=(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
41 AWS_CODEPIPELINE_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
51 m_resultHasBeenSet =
true;
66 template <
typename RulesT = Aws::Vector<RuleDeclaration>>
68 m_rulesHasBeenSet =
true;
69 m_rules = std::forward<RulesT>(value);
71 template <
typename RulesT = Aws::Vector<RuleDeclaration>>
73 SetRules(std::forward<RulesT>(value));
76 template <
typename RulesT = RuleDeclaration>
78 m_rulesHasBeenSet =
true;
79 m_rules.emplace_back(std::forward<RulesT>(value));
87 bool m_resultHasBeenSet =
false;
88 bool m_rulesHasBeenSet =
false;
bool ResultHasBeenSet() const
AWS_CODEPIPELINE_API Condition(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetRules(RulesT &&value)
Condition & WithResult(Result value)
AWS_CODEPIPELINE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
Condition & WithRules(RulesT &&value)
AWS_CODEPIPELINE_API Condition & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
Condition & AddRules(RulesT &&value)
void SetResult(Result value)
bool RulesHasBeenSet() const
AWS_CODEPIPELINE_API Condition()=default
const Aws::Vector< RuleDeclaration > & GetRules() const
std::vector< T, Aws::Allocator< T > > Vector