AWS SDK for C++  1.8.152
AWS SDK for C++
Evaluation.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace CodeCommit
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline bool GetApproved() const{ return m_approved; }
46 
50  inline bool ApprovedHasBeenSet() const { return m_approvedHasBeenSet; }
51 
55  inline void SetApproved(bool value) { m_approvedHasBeenSet = true; m_approved = value; }
56 
60  inline Evaluation& WithApproved(bool value) { SetApproved(value); return *this;}
61 
62 
67  inline bool GetOverridden() const{ return m_overridden; }
68 
73  inline bool OverriddenHasBeenSet() const { return m_overriddenHasBeenSet; }
74 
79  inline void SetOverridden(bool value) { m_overriddenHasBeenSet = true; m_overridden = value; }
80 
85  inline Evaluation& WithOverridden(bool value) { SetOverridden(value); return *this;}
86 
87 
91  inline const Aws::Vector<Aws::String>& GetApprovalRulesSatisfied() const{ return m_approvalRulesSatisfied; }
92 
96  inline bool ApprovalRulesSatisfiedHasBeenSet() const { return m_approvalRulesSatisfiedHasBeenSet; }
97 
101  inline void SetApprovalRulesSatisfied(const Aws::Vector<Aws::String>& value) { m_approvalRulesSatisfiedHasBeenSet = true; m_approvalRulesSatisfied = value; }
102 
106  inline void SetApprovalRulesSatisfied(Aws::Vector<Aws::String>&& value) { m_approvalRulesSatisfiedHasBeenSet = true; m_approvalRulesSatisfied = std::move(value); }
107 
111  inline Evaluation& WithApprovalRulesSatisfied(const Aws::Vector<Aws::String>& value) { SetApprovalRulesSatisfied(value); return *this;}
112 
116  inline Evaluation& WithApprovalRulesSatisfied(Aws::Vector<Aws::String>&& value) { SetApprovalRulesSatisfied(std::move(value)); return *this;}
117 
121  inline Evaluation& AddApprovalRulesSatisfied(const Aws::String& value) { m_approvalRulesSatisfiedHasBeenSet = true; m_approvalRulesSatisfied.push_back(value); return *this; }
122 
126  inline Evaluation& AddApprovalRulesSatisfied(Aws::String&& value) { m_approvalRulesSatisfiedHasBeenSet = true; m_approvalRulesSatisfied.push_back(std::move(value)); return *this; }
127 
131  inline Evaluation& AddApprovalRulesSatisfied(const char* value) { m_approvalRulesSatisfiedHasBeenSet = true; m_approvalRulesSatisfied.push_back(value); return *this; }
132 
133 
137  inline const Aws::Vector<Aws::String>& GetApprovalRulesNotSatisfied() const{ return m_approvalRulesNotSatisfied; }
138 
142  inline bool ApprovalRulesNotSatisfiedHasBeenSet() const { return m_approvalRulesNotSatisfiedHasBeenSet; }
143 
147  inline void SetApprovalRulesNotSatisfied(const Aws::Vector<Aws::String>& value) { m_approvalRulesNotSatisfiedHasBeenSet = true; m_approvalRulesNotSatisfied = value; }
148 
152  inline void SetApprovalRulesNotSatisfied(Aws::Vector<Aws::String>&& value) { m_approvalRulesNotSatisfiedHasBeenSet = true; m_approvalRulesNotSatisfied = std::move(value); }
153 
157  inline Evaluation& WithApprovalRulesNotSatisfied(const Aws::Vector<Aws::String>& value) { SetApprovalRulesNotSatisfied(value); return *this;}
158 
162  inline Evaluation& WithApprovalRulesNotSatisfied(Aws::Vector<Aws::String>&& value) { SetApprovalRulesNotSatisfied(std::move(value)); return *this;}
163 
167  inline Evaluation& AddApprovalRulesNotSatisfied(const Aws::String& value) { m_approvalRulesNotSatisfiedHasBeenSet = true; m_approvalRulesNotSatisfied.push_back(value); return *this; }
168 
172  inline Evaluation& AddApprovalRulesNotSatisfied(Aws::String&& value) { m_approvalRulesNotSatisfiedHasBeenSet = true; m_approvalRulesNotSatisfied.push_back(std::move(value)); return *this; }
173 
177  inline Evaluation& AddApprovalRulesNotSatisfied(const char* value) { m_approvalRulesNotSatisfiedHasBeenSet = true; m_approvalRulesNotSatisfied.push_back(value); return *this; }
178 
179  private:
180 
181  bool m_approved;
182  bool m_approvedHasBeenSet;
183 
184  bool m_overridden;
185  bool m_overriddenHasBeenSet;
186 
187  Aws::Vector<Aws::String> m_approvalRulesSatisfied;
188  bool m_approvalRulesSatisfiedHasBeenSet;
189 
190  Aws::Vector<Aws::String> m_approvalRulesNotSatisfied;
191  bool m_approvalRulesNotSatisfiedHasBeenSet;
192  };
193 
194 } // namespace Model
195 } // namespace CodeCommit
196 } // namespace Aws
Aws::CodeCommit::Model::Evaluation::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodeCommit::Model::Evaluation::operator=
Evaluation & operator=(Aws::Utils::Json::JsonView jsonValue)
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::Evaluation::AddApprovalRulesNotSatisfied
Evaluation & AddApprovalRulesNotSatisfied(Aws::String &&value)
Definition: Evaluation.h:172
Aws::CodeCommit::Model::Evaluation::GetApprovalRulesSatisfied
const Aws::Vector< Aws::String > & GetApprovalRulesSatisfied() const
Definition: Evaluation.h:91
Aws::CodeCommit::Model::Evaluation::SetOverridden
void SetOverridden(bool value)
Definition: Evaluation.h:79
Aws::CodeCommit::Model::Evaluation::AddApprovalRulesSatisfied
Evaluation & AddApprovalRulesSatisfied(const char *value)
Definition: Evaluation.h:131
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CodeCommit::Model::Evaluation::ApprovalRulesNotSatisfiedHasBeenSet
bool ApprovalRulesNotSatisfiedHasBeenSet() const
Definition: Evaluation.h:142
Aws::CodeCommit::Model::Evaluation::GetApprovalRulesNotSatisfied
const Aws::Vector< Aws::String > & GetApprovalRulesNotSatisfied() const
Definition: Evaluation.h:137
AWSVector.h
Aws::CodeCommit::Model::Evaluation::SetApprovalRulesNotSatisfied
void SetApprovalRulesNotSatisfied(const Aws::Vector< Aws::String > &value)
Definition: Evaluation.h:147
Aws::CodeCommit::Model::Evaluation::WithApprovalRulesNotSatisfied
Evaluation & WithApprovalRulesNotSatisfied(Aws::Vector< Aws::String > &&value)
Definition: Evaluation.h:162
Aws::CodeCommit::Model::Evaluation::ApprovalRulesSatisfiedHasBeenSet
bool ApprovalRulesSatisfiedHasBeenSet() const
Definition: Evaluation.h:96
Aws::CodeCommit::Model::Evaluation::AddApprovalRulesSatisfied
Evaluation & AddApprovalRulesSatisfied(const Aws::String &value)
Definition: Evaluation.h:121
Aws::CodeCommit::Model::Evaluation::WithApprovalRulesNotSatisfied
Evaluation & WithApprovalRulesNotSatisfied(const Aws::Vector< Aws::String > &value)
Definition: Evaluation.h:157
Aws::CodeCommit::Model::Evaluation::SetApprovalRulesSatisfied
void SetApprovalRulesSatisfied(const Aws::Vector< Aws::String > &value)
Definition: Evaluation.h:101
Aws::CodeCommit::Model::Evaluation::SetApprovalRulesNotSatisfied
void SetApprovalRulesNotSatisfied(Aws::Vector< Aws::String > &&value)
Definition: Evaluation.h:152
Aws::CodeCommit::Model::Evaluation::AddApprovalRulesNotSatisfied
Evaluation & AddApprovalRulesNotSatisfied(const Aws::String &value)
Definition: Evaluation.h:167
Aws::CodeCommit::Model::Evaluation::GetApproved
bool GetApproved() const
Definition: Evaluation.h:45
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::CodeCommit::Model::Evaluation::Evaluation
Evaluation()
AWSString.h
Aws::CodeCommit::Model::Evaluation::OverriddenHasBeenSet
bool OverriddenHasBeenSet() const
Definition: Evaluation.h:73
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::Evaluation::WithApprovalRulesSatisfied
Evaluation & WithApprovalRulesSatisfied(Aws::Vector< Aws::String > &&value)
Definition: Evaluation.h:116
Aws::CodeCommit::Model::Evaluation::WithApproved
Evaluation & WithApproved(bool value)
Definition: Evaluation.h:60
Aws::CodeCommit::Model::Evaluation::AddApprovalRulesNotSatisfied
Evaluation & AddApprovalRulesNotSatisfied(const char *value)
Definition: Evaluation.h:177
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::Evaluation::GetOverridden
bool GetOverridden() const
Definition: Evaluation.h:67
Aws::CodeCommit::Model::Evaluation::WithOverridden
Evaluation & WithOverridden(bool value)
Definition: Evaluation.h:85
Aws::CodeCommit::Model::Evaluation
Definition: Evaluation.h:34
Aws::CodeCommit::Model::Evaluation::SetApprovalRulesSatisfied
void SetApprovalRulesSatisfied(Aws::Vector< Aws::String > &&value)
Definition: Evaluation.h:106
Aws::CodeCommit::Model::Evaluation::Evaluation
Evaluation(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::Evaluation::WithApprovalRulesSatisfied
Evaluation & WithApprovalRulesSatisfied(const Aws::Vector< Aws::String > &value)
Definition: Evaluation.h:111
Aws::CodeCommit::Model::Evaluation::SetApproved
void SetApproved(bool value)
Definition: Evaluation.h:55
Aws::CodeCommit::Model::Evaluation::ApprovedHasBeenSet
bool ApprovedHasBeenSet() const
Definition: Evaluation.h:50
Aws::CodeCommit::Model::Evaluation::AddApprovalRulesSatisfied
Evaluation & AddApprovalRulesSatisfied(Aws::String &&value)
Definition: Evaluation.h:126