/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CodeCommit { namespace Model { class AWS_CODECOMMIT_API EvaluatePullRequestApprovalRulesResult { public: EvaluatePullRequestApprovalRulesResult(); EvaluatePullRequestApprovalRulesResult(const Aws::AmazonWebServiceResult& result); EvaluatePullRequestApprovalRulesResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The result of the evaluation, including the names of the rules whose * conditions have been met (if any), the names of the rules whose conditions have * not been met (if any), whether the pull request is in the approved state, and * whether the pull request approval rule has been set aside by an override.

*/ inline const Evaluation& GetEvaluation() const{ return m_evaluation; } /** *

The result of the evaluation, including the names of the rules whose * conditions have been met (if any), the names of the rules whose conditions have * not been met (if any), whether the pull request is in the approved state, and * whether the pull request approval rule has been set aside by an override.

*/ inline void SetEvaluation(const Evaluation& value) { m_evaluation = value; } /** *

The result of the evaluation, including the names of the rules whose * conditions have been met (if any), the names of the rules whose conditions have * not been met (if any), whether the pull request is in the approved state, and * whether the pull request approval rule has been set aside by an override.

*/ inline void SetEvaluation(Evaluation&& value) { m_evaluation = std::move(value); } /** *

The result of the evaluation, including the names of the rules whose * conditions have been met (if any), the names of the rules whose conditions have * not been met (if any), whether the pull request is in the approved state, and * whether the pull request approval rule has been set aside by an override.

*/ inline EvaluatePullRequestApprovalRulesResult& WithEvaluation(const Evaluation& value) { SetEvaluation(value); return *this;} /** *

The result of the evaluation, including the names of the rules whose * conditions have been met (if any), the names of the rules whose conditions have * not been met (if any), whether the pull request is in the approved state, and * whether the pull request approval rule has been set aside by an override.

*/ inline EvaluatePullRequestApprovalRulesResult& WithEvaluation(Evaluation&& value) { SetEvaluation(std::move(value)); return *this;} private: Evaluation m_evaluation; }; } // namespace Model } // namespace CodeCommit } // namespace Aws