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