/** * 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 AWS_CODECOMMIT_API GetPullRequestApprovalStatesResult { public: GetPullRequestApprovalStatesResult(); GetPullRequestApprovalStatesResult(const Aws::AmazonWebServiceResult& result); GetPullRequestApprovalStatesResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Information about users who have approved the pull request.

*/ inline const Aws::Vector& GetApprovals() const{ return m_approvals; } /** *

Information about users who have approved the pull request.

*/ inline void SetApprovals(const Aws::Vector& value) { m_approvals = value; } /** *

Information about users who have approved the pull request.

*/ inline void SetApprovals(Aws::Vector&& value) { m_approvals = std::move(value); } /** *

Information about users who have approved the pull request.

*/ inline GetPullRequestApprovalStatesResult& WithApprovals(const Aws::Vector& value) { SetApprovals(value); return *this;} /** *

Information about users who have approved the pull request.

*/ inline GetPullRequestApprovalStatesResult& WithApprovals(Aws::Vector&& value) { SetApprovals(std::move(value)); return *this;} /** *

Information about users who have approved the pull request.

*/ inline GetPullRequestApprovalStatesResult& AddApprovals(const Approval& value) { m_approvals.push_back(value); return *this; } /** *

Information about users who have approved the pull request.

*/ inline GetPullRequestApprovalStatesResult& AddApprovals(Approval&& value) { m_approvals.push_back(std::move(value)); return *this; } private: Aws::Vector m_approvals; }; } // namespace Model } // namespace CodeCommit } // namespace Aws