7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/model/BatchGetCommitsError.h>
9#include <aws/codecommit/model/Commit.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
16template <
typename RESULT_TYPE>
17class AmazonWebServiceResult;
38 template <
typename CommitsT = Aws::Vector<Commit>>
40 m_commitsHasBeenSet =
true;
41 m_commits = std::forward<CommitsT>(value);
43 template <
typename CommitsT = Aws::Vector<Commit>>
48 template <
typename CommitsT = Commit>
50 m_commitsHasBeenSet =
true;
51 m_commits.emplace_back(std::forward<CommitsT>(value));
64 template <
typename ErrorsT = Aws::Vector<BatchGetCommitsError>>
66 m_errorsHasBeenSet =
true;
67 m_errors = std::forward<ErrorsT>(value);
69 template <
typename ErrorsT = Aws::Vector<BatchGetCommitsError>>
74 template <
typename ErrorsT = BatchGetCommitsError>
76 m_errorsHasBeenSet =
true;
77 m_errors.emplace_back(std::forward<ErrorsT>(value));
85 template <
typename RequestIdT = Aws::String>
87 m_requestIdHasBeenSet =
true;
88 m_requestId = std::forward<RequestIdT>(value);
90 template <
typename RequestIdT = Aws::String>
102 bool m_commitsHasBeenSet =
false;
103 bool m_errorsHasBeenSet =
false;
104 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