AWS SDK for C++  1.9.15
AWS SDK for C++
BatchGetCommitsResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace CodeCommit
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
41  inline const Aws::Vector<Commit>& GetCommits() const{ return m_commits; }
42 
47  inline void SetCommits(const Aws::Vector<Commit>& value) { m_commits = value; }
48 
53  inline void SetCommits(Aws::Vector<Commit>&& value) { m_commits = std::move(value); }
54 
59  inline BatchGetCommitsResult& WithCommits(const Aws::Vector<Commit>& value) { SetCommits(value); return *this;}
60 
65  inline BatchGetCommitsResult& WithCommits(Aws::Vector<Commit>&& value) { SetCommits(std::move(value)); return *this;}
66 
71  inline BatchGetCommitsResult& AddCommits(const Commit& value) { m_commits.push_back(value); return *this; }
72 
77  inline BatchGetCommitsResult& AddCommits(Commit&& value) { m_commits.push_back(std::move(value)); return *this; }
78 
79 
86  inline const Aws::Vector<BatchGetCommitsError>& GetErrors() const{ return m_errors; }
87 
94  inline void SetErrors(const Aws::Vector<BatchGetCommitsError>& value) { m_errors = value; }
95 
102  inline void SetErrors(Aws::Vector<BatchGetCommitsError>&& value) { m_errors = std::move(value); }
103 
110  inline BatchGetCommitsResult& WithErrors(const Aws::Vector<BatchGetCommitsError>& value) { SetErrors(value); return *this;}
111 
118  inline BatchGetCommitsResult& WithErrors(Aws::Vector<BatchGetCommitsError>&& value) { SetErrors(std::move(value)); return *this;}
119 
126  inline BatchGetCommitsResult& AddErrors(const BatchGetCommitsError& value) { m_errors.push_back(value); return *this; }
127 
134  inline BatchGetCommitsResult& AddErrors(BatchGetCommitsError&& value) { m_errors.push_back(std::move(value)); return *this; }
135 
136  private:
137 
138  Aws::Vector<Commit> m_commits;
139 
141  };
142 
143 } // namespace Model
144 } // namespace CodeCommit
145 } // namespace Aws
Aws::CodeCommit::Model::BatchGetCommitsResult::SetErrors
void SetErrors(const Aws::Vector< BatchGetCommitsError > &value)
Definition: BatchGetCommitsResult.h:94
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::BatchGetCommitsResult
Definition: BatchGetCommitsResult.h:30
Aws::CodeCommit::Model::BatchGetCommitsResult::SetCommits
void SetCommits(const Aws::Vector< Commit > &value)
Definition: BatchGetCommitsResult.h:47
Aws::CodeCommit::Model::BatchGetCommitsResult::GetCommits
const Aws::Vector< Commit > & GetCommits() const
Definition: BatchGetCommitsResult.h:41
Aws::CodeCommit::Model::BatchGetCommitsResult::AddCommits
BatchGetCommitsResult & AddCommits(const Commit &value)
Definition: BatchGetCommitsResult.h:71
Aws::CodeCommit::Model::BatchGetCommitsResult::SetCommits
void SetCommits(Aws::Vector< Commit > &&value)
Definition: BatchGetCommitsResult.h:53
Aws::CodeCommit::Model::BatchGetCommitsResult::BatchGetCommitsResult
BatchGetCommitsResult()
Aws::CodeCommit::Model::BatchGetCommitsResult::AddErrors
BatchGetCommitsResult & AddErrors(const BatchGetCommitsError &value)
Definition: BatchGetCommitsResult.h:126
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CodeCommit::Model::Commit
Definition: Commit.h:34
Aws::CodeCommit::Model::BatchGetCommitsResult::SetErrors
void SetErrors(Aws::Vector< BatchGetCommitsError > &&value)
Definition: BatchGetCommitsResult.h:102
AWSVector.h
Aws::CodeCommit::Model::BatchGetCommitsResult::WithErrors
BatchGetCommitsResult & WithErrors(Aws::Vector< BatchGetCommitsError > &&value)
Definition: BatchGetCommitsResult.h:118
Commit.h
Aws::CodeCommit::Model::BatchGetCommitsResult::WithCommits
BatchGetCommitsResult & WithCommits(Aws::Vector< Commit > &&value)
Definition: BatchGetCommitsResult.h:65
Aws::CodeCommit::Model::BatchGetCommitsError
Definition: BatchGetCommitsError.h:33
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::BatchGetCommitsResult::AddErrors
BatchGetCommitsResult & AddErrors(BatchGetCommitsError &&value)
Definition: BatchGetCommitsResult.h:134
Aws::CodeCommit::Model::BatchGetCommitsResult::WithCommits
BatchGetCommitsResult & WithCommits(const Aws::Vector< Commit > &value)
Definition: BatchGetCommitsResult.h:59
Aws
Definition: AccessManagementClient.h:15
BatchGetCommitsError.h
Aws::CodeCommit::Model::BatchGetCommitsResult::BatchGetCommitsResult
BatchGetCommitsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeCommit::Model::BatchGetCommitsResult::operator=
BatchGetCommitsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeCommit::Model::BatchGetCommitsResult::WithErrors
BatchGetCommitsResult & WithErrors(const Aws::Vector< BatchGetCommitsError > &value)
Definition: BatchGetCommitsResult.h:110
Aws::CodeCommit::Model::BatchGetCommitsResult::AddCommits
BatchGetCommitsResult & AddCommits(Commit &&value)
Definition: BatchGetCommitsResult.h:77
Aws::CodeCommit::Model::BatchGetCommitsResult::GetErrors
const Aws::Vector< BatchGetCommitsError > & GetErrors() const
Definition: BatchGetCommitsResult.h:86