/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CodeCommit { namespace Model { class EvaluatePullRequestApprovalRulesResult { public: AWS_CODECOMMIT_API EvaluatePullRequestApprovalRulesResult(); AWS_CODECOMMIT_API EvaluatePullRequestApprovalRulesResult(const Aws::AmazonWebServiceResult& result); AWS_CODECOMMIT_API 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;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline EvaluatePullRequestApprovalRulesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline EvaluatePullRequestApprovalRulesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline EvaluatePullRequestApprovalRulesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Evaluation m_evaluation; Aws::String m_requestId; }; } // namespace Model } // namespace CodeCommit } // namespace Aws