/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeCommit { namespace Model { /** *

Returns information about the approval rules applied to a pull request and * whether conditions have been met.

See Also:

AWS * API Reference

*/ class Evaluation { public: AWS_CODECOMMIT_API Evaluation(); AWS_CODECOMMIT_API Evaluation(Aws::Utils::Json::JsonView jsonValue); AWS_CODECOMMIT_API Evaluation& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Whether the state of the pull request is approved.

*/ inline bool GetApproved() const{ return m_approved; } /** *

Whether the state of the pull request is approved.

*/ inline bool ApprovedHasBeenSet() const { return m_approvedHasBeenSet; } /** *

Whether the state of the pull request is approved.

*/ inline void SetApproved(bool value) { m_approvedHasBeenSet = true; m_approved = value; } /** *

Whether the state of the pull request is approved.

*/ inline Evaluation& WithApproved(bool value) { SetApproved(value); return *this;} /** *

Whether the approval rule requirements for the pull request have been * overridden and no longer need to be met.

*/ inline bool GetOverridden() const{ return m_overridden; } /** *

Whether the approval rule requirements for the pull request have been * overridden and no longer need to be met.

*/ inline bool OverriddenHasBeenSet() const { return m_overriddenHasBeenSet; } /** *

Whether the approval rule requirements for the pull request have been * overridden and no longer need to be met.

*/ inline void SetOverridden(bool value) { m_overriddenHasBeenSet = true; m_overridden = value; } /** *

Whether the approval rule requirements for the pull request have been * overridden and no longer need to be met.

*/ inline Evaluation& WithOverridden(bool value) { SetOverridden(value); return *this;} /** *

The names of the approval rules that have had their conditions met.

*/ inline const Aws::Vector& GetApprovalRulesSatisfied() const{ return m_approvalRulesSatisfied; } /** *

The names of the approval rules that have had their conditions met.

*/ inline bool ApprovalRulesSatisfiedHasBeenSet() const { return m_approvalRulesSatisfiedHasBeenSet; } /** *

The names of the approval rules that have had their conditions met.

*/ inline void SetApprovalRulesSatisfied(const Aws::Vector& value) { m_approvalRulesSatisfiedHasBeenSet = true; m_approvalRulesSatisfied = value; } /** *

The names of the approval rules that have had their conditions met.

*/ inline void SetApprovalRulesSatisfied(Aws::Vector&& value) { m_approvalRulesSatisfiedHasBeenSet = true; m_approvalRulesSatisfied = std::move(value); } /** *

The names of the approval rules that have had their conditions met.

*/ inline Evaluation& WithApprovalRulesSatisfied(const Aws::Vector& value) { SetApprovalRulesSatisfied(value); return *this;} /** *

The names of the approval rules that have had their conditions met.

*/ inline Evaluation& WithApprovalRulesSatisfied(Aws::Vector&& value) { SetApprovalRulesSatisfied(std::move(value)); return *this;} /** *

The names of the approval rules that have had their conditions met.

*/ inline Evaluation& AddApprovalRulesSatisfied(const Aws::String& value) { m_approvalRulesSatisfiedHasBeenSet = true; m_approvalRulesSatisfied.push_back(value); return *this; } /** *

The names of the approval rules that have had their conditions met.

*/ inline Evaluation& AddApprovalRulesSatisfied(Aws::String&& value) { m_approvalRulesSatisfiedHasBeenSet = true; m_approvalRulesSatisfied.push_back(std::move(value)); return *this; } /** *

The names of the approval rules that have had their conditions met.

*/ inline Evaluation& AddApprovalRulesSatisfied(const char* value) { m_approvalRulesSatisfiedHasBeenSet = true; m_approvalRulesSatisfied.push_back(value); return *this; } /** *

The names of the approval rules that have not had their conditions met.

*/ inline const Aws::Vector& GetApprovalRulesNotSatisfied() const{ return m_approvalRulesNotSatisfied; } /** *

The names of the approval rules that have not had their conditions met.

*/ inline bool ApprovalRulesNotSatisfiedHasBeenSet() const { return m_approvalRulesNotSatisfiedHasBeenSet; } /** *

The names of the approval rules that have not had their conditions met.

*/ inline void SetApprovalRulesNotSatisfied(const Aws::Vector& value) { m_approvalRulesNotSatisfiedHasBeenSet = true; m_approvalRulesNotSatisfied = value; } /** *

The names of the approval rules that have not had their conditions met.

*/ inline void SetApprovalRulesNotSatisfied(Aws::Vector&& value) { m_approvalRulesNotSatisfiedHasBeenSet = true; m_approvalRulesNotSatisfied = std::move(value); } /** *

The names of the approval rules that have not had their conditions met.

*/ inline Evaluation& WithApprovalRulesNotSatisfied(const Aws::Vector& value) { SetApprovalRulesNotSatisfied(value); return *this;} /** *

The names of the approval rules that have not had their conditions met.

*/ inline Evaluation& WithApprovalRulesNotSatisfied(Aws::Vector&& value) { SetApprovalRulesNotSatisfied(std::move(value)); return *this;} /** *

The names of the approval rules that have not had their conditions met.

*/ inline Evaluation& AddApprovalRulesNotSatisfied(const Aws::String& value) { m_approvalRulesNotSatisfiedHasBeenSet = true; m_approvalRulesNotSatisfied.push_back(value); return *this; } /** *

The names of the approval rules that have not had their conditions met.

*/ inline Evaluation& AddApprovalRulesNotSatisfied(Aws::String&& value) { m_approvalRulesNotSatisfiedHasBeenSet = true; m_approvalRulesNotSatisfied.push_back(std::move(value)); return *this; } /** *

The names of the approval rules that have not had their conditions met.

*/ inline Evaluation& AddApprovalRulesNotSatisfied(const char* value) { m_approvalRulesNotSatisfiedHasBeenSet = true; m_approvalRulesNotSatisfied.push_back(value); return *this; } private: bool m_approved; bool m_approvedHasBeenSet = false; bool m_overridden; bool m_overriddenHasBeenSet = false; Aws::Vector m_approvalRulesSatisfied; bool m_approvalRulesSatisfiedHasBeenSet = false; Aws::Vector m_approvalRulesNotSatisfied; bool m_approvalRulesNotSatisfiedHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws