/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 BatchGetCommitsResult { public: AWS_CODECOMMIT_API BatchGetCommitsResult(); AWS_CODECOMMIT_API BatchGetCommitsResult(const Aws::AmazonWebServiceResult& result); AWS_CODECOMMIT_API BatchGetCommitsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An array of commit data type objects, each of which contains information * about a specified commit.

*/ inline const Aws::Vector& GetCommits() const{ return m_commits; } /** *

An array of commit data type objects, each of which contains information * about a specified commit.

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

An array of commit data type objects, each of which contains information * about a specified commit.

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

An array of commit data type objects, each of which contains information * about a specified commit.

*/ inline BatchGetCommitsResult& WithCommits(const Aws::Vector& value) { SetCommits(value); return *this;} /** *

An array of commit data type objects, each of which contains information * about a specified commit.

*/ inline BatchGetCommitsResult& WithCommits(Aws::Vector&& value) { SetCommits(std::move(value)); return *this;} /** *

An array of commit data type objects, each of which contains information * about a specified commit.

*/ inline BatchGetCommitsResult& AddCommits(const Commit& value) { m_commits.push_back(value); return *this; } /** *

An array of commit data type objects, each of which contains information * about a specified commit.

*/ inline BatchGetCommitsResult& AddCommits(Commit&& value) { m_commits.push_back(std::move(value)); return *this; } /** *

Returns any commit IDs for which information could not be found. For example, * if one of the commit IDs was a shortened SHA ID or that commit was not found in * the specified repository, the ID returns an error object with more * information.

*/ inline const Aws::Vector& GetErrors() const{ return m_errors; } /** *

Returns any commit IDs for which information could not be found. For example, * if one of the commit IDs was a shortened SHA ID or that commit was not found in * the specified repository, the ID returns an error object with more * information.

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

Returns any commit IDs for which information could not be found. For example, * if one of the commit IDs was a shortened SHA ID or that commit was not found in * the specified repository, the ID returns an error object with more * information.

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

Returns any commit IDs for which information could not be found. For example, * if one of the commit IDs was a shortened SHA ID or that commit was not found in * the specified repository, the ID returns an error object with more * information.

*/ inline BatchGetCommitsResult& WithErrors(const Aws::Vector& value) { SetErrors(value); return *this;} /** *

Returns any commit IDs for which information could not be found. For example, * if one of the commit IDs was a shortened SHA ID or that commit was not found in * the specified repository, the ID returns an error object with more * information.

*/ inline BatchGetCommitsResult& WithErrors(Aws::Vector&& value) { SetErrors(std::move(value)); return *this;} /** *

Returns any commit IDs for which information could not be found. For example, * if one of the commit IDs was a shortened SHA ID or that commit was not found in * the specified repository, the ID returns an error object with more * information.

*/ inline BatchGetCommitsResult& AddErrors(const BatchGetCommitsError& value) { m_errors.push_back(value); return *this; } /** *

Returns any commit IDs for which information could not be found. For example, * if one of the commit IDs was a shortened SHA ID or that commit was not found in * the specified repository, the ID returns an error object with more * information.

*/ inline BatchGetCommitsResult& AddErrors(BatchGetCommitsError&& value) { m_errors.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 BatchGetCommitsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline BatchGetCommitsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline BatchGetCommitsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_commits; Aws::Vector m_errors; Aws::String m_requestId; }; } // namespace Model } // namespace CodeCommit } // namespace Aws