AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
Evaluation.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeCommit {
21namespace Model {
22
30 public:
31 AWS_CODECOMMIT_API Evaluation() = default;
32 AWS_CODECOMMIT_API Evaluation(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODECOMMIT_API Evaluation& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline bool GetApproved() const { return m_approved; }
41 inline bool ApprovedHasBeenSet() const { return m_approvedHasBeenSet; }
42 inline void SetApproved(bool value) {
43 m_approvedHasBeenSet = true;
44 m_approved = value;
45 }
46 inline Evaluation& WithApproved(bool value) {
47 SetApproved(value);
48 return *this;
49 }
51
53
57 inline bool GetOverridden() const { return m_overridden; }
58 inline bool OverriddenHasBeenSet() const { return m_overriddenHasBeenSet; }
59 inline void SetOverridden(bool value) {
60 m_overriddenHasBeenSet = true;
61 m_overridden = value;
62 }
63 inline Evaluation& WithOverridden(bool value) {
64 SetOverridden(value);
65 return *this;
66 }
68
70
73 inline const Aws::Vector<Aws::String>& GetApprovalRulesSatisfied() const { return m_approvalRulesSatisfied; }
74 inline bool ApprovalRulesSatisfiedHasBeenSet() const { return m_approvalRulesSatisfiedHasBeenSet; }
75 template <typename ApprovalRulesSatisfiedT = Aws::Vector<Aws::String>>
76 void SetApprovalRulesSatisfied(ApprovalRulesSatisfiedT&& value) {
77 m_approvalRulesSatisfiedHasBeenSet = true;
78 m_approvalRulesSatisfied = std::forward<ApprovalRulesSatisfiedT>(value);
79 }
80 template <typename ApprovalRulesSatisfiedT = Aws::Vector<Aws::String>>
81 Evaluation& WithApprovalRulesSatisfied(ApprovalRulesSatisfiedT&& value) {
82 SetApprovalRulesSatisfied(std::forward<ApprovalRulesSatisfiedT>(value));
83 return *this;
84 }
85 template <typename ApprovalRulesSatisfiedT = Aws::String>
86 Evaluation& AddApprovalRulesSatisfied(ApprovalRulesSatisfiedT&& value) {
87 m_approvalRulesSatisfiedHasBeenSet = true;
88 m_approvalRulesSatisfied.emplace_back(std::forward<ApprovalRulesSatisfiedT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Vector<Aws::String>& GetApprovalRulesNotSatisfied() const { return m_approvalRulesNotSatisfied; }
98 inline bool ApprovalRulesNotSatisfiedHasBeenSet() const { return m_approvalRulesNotSatisfiedHasBeenSet; }
99 template <typename ApprovalRulesNotSatisfiedT = Aws::Vector<Aws::String>>
100 void SetApprovalRulesNotSatisfied(ApprovalRulesNotSatisfiedT&& value) {
101 m_approvalRulesNotSatisfiedHasBeenSet = true;
102 m_approvalRulesNotSatisfied = std::forward<ApprovalRulesNotSatisfiedT>(value);
103 }
104 template <typename ApprovalRulesNotSatisfiedT = Aws::Vector<Aws::String>>
105 Evaluation& WithApprovalRulesNotSatisfied(ApprovalRulesNotSatisfiedT&& value) {
106 SetApprovalRulesNotSatisfied(std::forward<ApprovalRulesNotSatisfiedT>(value));
107 return *this;
108 }
109 template <typename ApprovalRulesNotSatisfiedT = Aws::String>
110 Evaluation& AddApprovalRulesNotSatisfied(ApprovalRulesNotSatisfiedT&& value) {
111 m_approvalRulesNotSatisfiedHasBeenSet = true;
112 m_approvalRulesNotSatisfied.emplace_back(std::forward<ApprovalRulesNotSatisfiedT>(value));
113 return *this;
114 }
116 private:
117 bool m_approved{false};
118
119 bool m_overridden{false};
120
121 Aws::Vector<Aws::String> m_approvalRulesSatisfied;
122
123 Aws::Vector<Aws::String> m_approvalRulesNotSatisfied;
124 bool m_approvedHasBeenSet = false;
125 bool m_overriddenHasBeenSet = false;
126 bool m_approvalRulesSatisfiedHasBeenSet = false;
127 bool m_approvalRulesNotSatisfiedHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace CodeCommit
132} // namespace Aws
Evaluation & WithApprovalRulesNotSatisfied(ApprovalRulesNotSatisfiedT &&value)
Definition Evaluation.h:105
Evaluation & WithApproved(bool value)
Definition Evaluation.h:46
Evaluation & WithApprovalRulesSatisfied(ApprovalRulesSatisfiedT &&value)
Definition Evaluation.h:81
Evaluation & AddApprovalRulesNotSatisfied(ApprovalRulesNotSatisfiedT &&value)
Definition Evaluation.h:110
bool ApprovalRulesSatisfiedHasBeenSet() const
Definition Evaluation.h:74
Evaluation & AddApprovalRulesSatisfied(ApprovalRulesSatisfiedT &&value)
Definition Evaluation.h:86
Evaluation & WithOverridden(bool value)
Definition Evaluation.h:63
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:73
void SetApprovalRulesNotSatisfied(ApprovalRulesNotSatisfiedT &&value)
Definition Evaluation.h:100
AWS_CODECOMMIT_API Evaluation()=default
void SetApprovalRulesSatisfied(ApprovalRulesSatisfiedT &&value)
Definition Evaluation.h:76
const Aws::Vector< Aws::String > & GetApprovalRulesNotSatisfied() const
Definition Evaluation.h:97
bool ApprovalRulesNotSatisfiedHasBeenSet() const
Definition Evaluation.h:98
AWS_CODECOMMIT_API Evaluation & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue