AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Evaluation.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeCommit
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODECOMMIT_API Evaluation() = default;
37 AWS_CODECOMMIT_API Evaluation(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECOMMIT_API Evaluation& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline bool GetApproved() const { return m_approved; }
47 inline bool ApprovedHasBeenSet() const { return m_approvedHasBeenSet; }
48 inline void SetApproved(bool value) { m_approvedHasBeenSet = true; m_approved = value; }
49 inline Evaluation& WithApproved(bool value) { SetApproved(value); return *this;}
51
53
57 inline bool GetOverridden() const { return m_overridden; }
58 inline bool OverriddenHasBeenSet() const { return m_overriddenHasBeenSet; }
59 inline void SetOverridden(bool value) { m_overriddenHasBeenSet = true; m_overridden = value; }
60 inline Evaluation& WithOverridden(bool value) { SetOverridden(value); return *this;}
62
64
67 inline const Aws::Vector<Aws::String>& GetApprovalRulesSatisfied() const { return m_approvalRulesSatisfied; }
68 inline bool ApprovalRulesSatisfiedHasBeenSet() const { return m_approvalRulesSatisfiedHasBeenSet; }
69 template<typename ApprovalRulesSatisfiedT = Aws::Vector<Aws::String>>
70 void SetApprovalRulesSatisfied(ApprovalRulesSatisfiedT&& value) { m_approvalRulesSatisfiedHasBeenSet = true; m_approvalRulesSatisfied = std::forward<ApprovalRulesSatisfiedT>(value); }
71 template<typename ApprovalRulesSatisfiedT = Aws::Vector<Aws::String>>
72 Evaluation& WithApprovalRulesSatisfied(ApprovalRulesSatisfiedT&& value) { SetApprovalRulesSatisfied(std::forward<ApprovalRulesSatisfiedT>(value)); return *this;}
73 template<typename ApprovalRulesSatisfiedT = Aws::String>
74 Evaluation& AddApprovalRulesSatisfied(ApprovalRulesSatisfiedT&& value) { m_approvalRulesSatisfiedHasBeenSet = true; m_approvalRulesSatisfied.emplace_back(std::forward<ApprovalRulesSatisfiedT>(value)); return *this; }
76
78
81 inline const Aws::Vector<Aws::String>& GetApprovalRulesNotSatisfied() const { return m_approvalRulesNotSatisfied; }
82 inline bool ApprovalRulesNotSatisfiedHasBeenSet() const { return m_approvalRulesNotSatisfiedHasBeenSet; }
83 template<typename ApprovalRulesNotSatisfiedT = Aws::Vector<Aws::String>>
84 void SetApprovalRulesNotSatisfied(ApprovalRulesNotSatisfiedT&& value) { m_approvalRulesNotSatisfiedHasBeenSet = true; m_approvalRulesNotSatisfied = std::forward<ApprovalRulesNotSatisfiedT>(value); }
85 template<typename ApprovalRulesNotSatisfiedT = Aws::Vector<Aws::String>>
86 Evaluation& WithApprovalRulesNotSatisfied(ApprovalRulesNotSatisfiedT&& value) { SetApprovalRulesNotSatisfied(std::forward<ApprovalRulesNotSatisfiedT>(value)); return *this;}
87 template<typename ApprovalRulesNotSatisfiedT = Aws::String>
88 Evaluation& AddApprovalRulesNotSatisfied(ApprovalRulesNotSatisfiedT&& value) { m_approvalRulesNotSatisfiedHasBeenSet = true; m_approvalRulesNotSatisfied.emplace_back(std::forward<ApprovalRulesNotSatisfiedT>(value)); return *this; }
90 private:
91
92 bool m_approved{false};
93 bool m_approvedHasBeenSet = false;
94
95 bool m_overridden{false};
96 bool m_overriddenHasBeenSet = false;
97
98 Aws::Vector<Aws::String> m_approvalRulesSatisfied;
99 bool m_approvalRulesSatisfiedHasBeenSet = false;
100
101 Aws::Vector<Aws::String> m_approvalRulesNotSatisfied;
102 bool m_approvalRulesNotSatisfiedHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace CodeCommit
107} // namespace Aws
Evaluation & WithApprovalRulesNotSatisfied(ApprovalRulesNotSatisfiedT &&value)
Definition Evaluation.h:86
Evaluation & WithApproved(bool value)
Definition Evaluation.h:49
Evaluation & WithApprovalRulesSatisfied(ApprovalRulesSatisfiedT &&value)
Definition Evaluation.h:72
Evaluation & AddApprovalRulesNotSatisfied(ApprovalRulesNotSatisfiedT &&value)
Definition Evaluation.h:88
bool ApprovalRulesSatisfiedHasBeenSet() const
Definition Evaluation.h:68
Evaluation & AddApprovalRulesSatisfied(ApprovalRulesSatisfiedT &&value)
Definition Evaluation.h:74
Evaluation & WithOverridden(bool value)
Definition Evaluation.h:60
AWS_CODECOMMIT_API Evaluation(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetApprovalRulesSatisfied() const
Definition Evaluation.h:67
void SetApprovalRulesNotSatisfied(ApprovalRulesNotSatisfiedT &&value)
Definition Evaluation.h:84
AWS_CODECOMMIT_API Evaluation()=default
void SetApprovalRulesSatisfied(ApprovalRulesSatisfiedT &&value)
Definition Evaluation.h:70
const Aws::Vector< Aws::String > & GetApprovalRulesNotSatisfied() const
Definition Evaluation.h:81
bool ApprovalRulesNotSatisfiedHasBeenSet() const
Definition Evaluation.h:82
AWS_CODECOMMIT_API Evaluation & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue