AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetApprovalRulesSatisfied(const Aws::Vector<Aws::String>& value) { m_approvalRulesSatisfiedHasBeenSet = true; m_approvalRulesSatisfied = value; }
70 inline void SetApprovalRulesSatisfied(Aws::Vector<Aws::String>&& value) { m_approvalRulesSatisfiedHasBeenSet = true; m_approvalRulesSatisfied = std::move(value); }
73 inline Evaluation& AddApprovalRulesSatisfied(const Aws::String& value) { m_approvalRulesSatisfiedHasBeenSet = true; m_approvalRulesSatisfied.push_back(value); return *this; }
74 inline Evaluation& AddApprovalRulesSatisfied(Aws::String&& value) { m_approvalRulesSatisfiedHasBeenSet = true; m_approvalRulesSatisfied.push_back(std::move(value)); return *this; }
75 inline Evaluation& AddApprovalRulesSatisfied(const char* value) { m_approvalRulesSatisfiedHasBeenSet = true; m_approvalRulesSatisfied.push_back(value); return *this; }
77
79
82 inline const Aws::Vector<Aws::String>& GetApprovalRulesNotSatisfied() const{ return m_approvalRulesNotSatisfied; }
83 inline bool ApprovalRulesNotSatisfiedHasBeenSet() const { return m_approvalRulesNotSatisfiedHasBeenSet; }
84 inline void SetApprovalRulesNotSatisfied(const Aws::Vector<Aws::String>& value) { m_approvalRulesNotSatisfiedHasBeenSet = true; m_approvalRulesNotSatisfied = value; }
85 inline void SetApprovalRulesNotSatisfied(Aws::Vector<Aws::String>&& value) { m_approvalRulesNotSatisfiedHasBeenSet = true; m_approvalRulesNotSatisfied = std::move(value); }
88 inline Evaluation& AddApprovalRulesNotSatisfied(const Aws::String& value) { m_approvalRulesNotSatisfiedHasBeenSet = true; m_approvalRulesNotSatisfied.push_back(value); return *this; }
89 inline Evaluation& AddApprovalRulesNotSatisfied(Aws::String&& value) { m_approvalRulesNotSatisfiedHasBeenSet = true; m_approvalRulesNotSatisfied.push_back(std::move(value)); return *this; }
90 inline Evaluation& AddApprovalRulesNotSatisfied(const char* value) { m_approvalRulesNotSatisfiedHasBeenSet = true; m_approvalRulesNotSatisfied.push_back(value); return *this; }
92 private:
93
94 bool m_approved;
95 bool m_approvedHasBeenSet = false;
96
97 bool m_overridden;
98 bool m_overriddenHasBeenSet = false;
99
100 Aws::Vector<Aws::String> m_approvalRulesSatisfied;
101 bool m_approvalRulesSatisfiedHasBeenSet = false;
102
103 Aws::Vector<Aws::String> m_approvalRulesNotSatisfied;
104 bool m_approvalRulesNotSatisfiedHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace CodeCommit
109} // namespace Aws
Evaluation & WithApprovalRulesNotSatisfied(const Aws::Vector< Aws::String > &value)
Definition Evaluation.h:86
Evaluation & WithApprovalRulesSatisfied(Aws::Vector< Aws::String > &&value)
Definition Evaluation.h:72
Evaluation & WithApproved(bool value)
Definition Evaluation.h:49
Evaluation & AddApprovalRulesSatisfied(Aws::String &&value)
Definition Evaluation.h:74
Evaluation & WithApprovalRulesNotSatisfied(Aws::Vector< Aws::String > &&value)
Definition Evaluation.h:87
Evaluation & AddApprovalRulesNotSatisfied(Aws::String &&value)
Definition Evaluation.h:89
bool ApprovalRulesSatisfiedHasBeenSet() const
Definition Evaluation.h:68
void SetApprovalRulesSatisfied(const Aws::Vector< Aws::String > &value)
Definition Evaluation.h:69
void SetApprovalRulesSatisfied(Aws::Vector< Aws::String > &&value)
Definition Evaluation.h:70
AWS_CODECOMMIT_API Evaluation()
Evaluation & AddApprovalRulesSatisfied(const char *value)
Definition Evaluation.h:75
void SetApprovalRulesNotSatisfied(Aws::Vector< Aws::String > &&value)
Definition Evaluation.h:85
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
Evaluation & AddApprovalRulesSatisfied(const Aws::String &value)
Definition Evaluation.h:73
const Aws::Vector< Aws::String > & GetApprovalRulesSatisfied() const
Definition Evaluation.h:67
const Aws::Vector< Aws::String > & GetApprovalRulesNotSatisfied() const
Definition Evaluation.h:82
Evaluation & WithApprovalRulesSatisfied(const Aws::Vector< Aws::String > &value)
Definition Evaluation.h:71
bool ApprovalRulesNotSatisfiedHasBeenSet() const
Definition Evaluation.h:83
Evaluation & AddApprovalRulesNotSatisfied(const Aws::String &value)
Definition Evaluation.h:88
Evaluation & AddApprovalRulesNotSatisfied(const char *value)
Definition Evaluation.h:90
void SetApprovalRulesNotSatisfied(const Aws::Vector< Aws::String > &value)
Definition Evaluation.h:84
AWS_CODECOMMIT_API Evaluation & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue