This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-codecommit/include/aws/codecommit/model/BatchGetCommitsResult.h

146 lines
5.4 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codecommit/CodeCommit_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/codecommit/model/Commit.h>
#include <aws/codecommit/model/BatchGetCommitsError.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeCommit
{
namespace Model
{
class AWS_CODECOMMIT_API BatchGetCommitsResult
{
public:
BatchGetCommitsResult();
BatchGetCommitsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchGetCommitsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An array of commit data type objects, each of which contains information
* about a specified commit.</p>
*/
inline const Aws::Vector<Commit>& GetCommits() const{ return m_commits; }
/**
* <p>An array of commit data type objects, each of which contains information
* about a specified commit.</p>
*/
inline void SetCommits(const Aws::Vector<Commit>& value) { m_commits = value; }
/**
* <p>An array of commit data type objects, each of which contains information
* about a specified commit.</p>
*/
inline void SetCommits(Aws::Vector<Commit>&& value) { m_commits = std::move(value); }
/**
* <p>An array of commit data type objects, each of which contains information
* about a specified commit.</p>
*/
inline BatchGetCommitsResult& WithCommits(const Aws::Vector<Commit>& value) { SetCommits(value); return *this;}
/**
* <p>An array of commit data type objects, each of which contains information
* about a specified commit.</p>
*/
inline BatchGetCommitsResult& WithCommits(Aws::Vector<Commit>&& value) { SetCommits(std::move(value)); return *this;}
/**
* <p>An array of commit data type objects, each of which contains information
* about a specified commit.</p>
*/
inline BatchGetCommitsResult& AddCommits(const Commit& value) { m_commits.push_back(value); return *this; }
/**
* <p>An array of commit data type objects, each of which contains information
* about a specified commit.</p>
*/
inline BatchGetCommitsResult& AddCommits(Commit&& value) { m_commits.push_back(std::move(value)); return *this; }
/**
* <p>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.</p>
*/
inline const Aws::Vector<BatchGetCommitsError>& GetErrors() const{ return m_errors; }
/**
* <p>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.</p>
*/
inline void SetErrors(const Aws::Vector<BatchGetCommitsError>& value) { m_errors = value; }
/**
* <p>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.</p>
*/
inline void SetErrors(Aws::Vector<BatchGetCommitsError>&& value) { m_errors = std::move(value); }
/**
* <p>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.</p>
*/
inline BatchGetCommitsResult& WithErrors(const Aws::Vector<BatchGetCommitsError>& value) { SetErrors(value); return *this;}
/**
* <p>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.</p>
*/
inline BatchGetCommitsResult& WithErrors(Aws::Vector<BatchGetCommitsError>&& value) { SetErrors(std::move(value)); return *this;}
/**
* <p>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.</p>
*/
inline BatchGetCommitsResult& AddErrors(const BatchGetCommitsError& value) { m_errors.push_back(value); return *this; }
/**
* <p>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.</p>
*/
inline BatchGetCommitsResult& AddErrors(BatchGetCommitsError&& value) { m_errors.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Commit> m_commits;
Aws::Vector<BatchGetCommitsError> m_errors;
};
} // namespace Model
} // namespace CodeCommit
} // namespace Aws