7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codecommit/model/Commit.h>
11#include <aws/codecommit/model/BatchGetCommitsError.h>
16template<
typename RESULT_TYPE>
17class AmazonWebServiceResult;
44 template<
typename CommitsT = Aws::Vector<Commit>>
45 void SetCommits(CommitsT&& value) { m_commitsHasBeenSet =
true; m_commits = std::forward<CommitsT>(value); }
46 template<
typename CommitsT = Aws::Vector<Commit>>
48 template<
typename CommitsT = Commit>
60 template<
typename ErrorsT = Aws::Vector<BatchGetCommitsError>>
61 void SetErrors(ErrorsT&& value) { m_errorsHasBeenSet =
true; m_errors = std::forward<ErrorsT>(value); }
62 template<
typename ErrorsT = Aws::Vector<BatchGetCommitsError>>
64 template<
typename ErrorsT = BatchGetCommitsError>
71 template<
typename RequestIdT = Aws::String>
72 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet =
true; m_requestId = std::forward<RequestIdT>(value); }
73 template<
typename RequestIdT = Aws::String>
79 bool m_commitsHasBeenSet =
false;
82 bool m_errorsHasBeenSet =
false;
85 bool m_requestIdHasBeenSet =
false;
const Aws::String & GetRequestId() const
void SetCommits(CommitsT &&value)
void SetErrors(ErrorsT &&value)
BatchGetCommitsResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< BatchGetCommitsError > & GetErrors() const
BatchGetCommitsResult & AddErrors(ErrorsT &&value)
AWS_CODECOMMIT_API BatchGetCommitsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetCommitsResult & AddCommits(CommitsT &&value)
AWS_CODECOMMIT_API BatchGetCommitsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetCommitsResult & WithCommits(CommitsT &&value)
AWS_CODECOMMIT_API BatchGetCommitsResult()=default
BatchGetCommitsResult & WithErrors(ErrorsT &&value)
const Aws::Vector< Commit > & GetCommits() const
void SetRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue