AWS SDK for C++  1.8.152
AWS SDK for C++
BatchGetRepositoriesResult.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 {
36  {
37  public:
41 
42 
46  inline const Aws::Vector<RepositoryMetadata>& GetRepositories() const{ return m_repositories; }
47 
51  inline void SetRepositories(const Aws::Vector<RepositoryMetadata>& value) { m_repositories = value; }
52 
56  inline void SetRepositories(Aws::Vector<RepositoryMetadata>&& value) { m_repositories = std::move(value); }
57 
61  inline BatchGetRepositoriesResult& WithRepositories(const Aws::Vector<RepositoryMetadata>& value) { SetRepositories(value); return *this;}
62 
66  inline BatchGetRepositoriesResult& WithRepositories(Aws::Vector<RepositoryMetadata>&& value) { SetRepositories(std::move(value)); return *this;}
67 
71  inline BatchGetRepositoriesResult& AddRepositories(const RepositoryMetadata& value) { m_repositories.push_back(value); return *this; }
72 
76  inline BatchGetRepositoriesResult& AddRepositories(RepositoryMetadata&& value) { m_repositories.push_back(std::move(value)); return *this; }
77 
78 
83  inline const Aws::Vector<Aws::String>& GetRepositoriesNotFound() const{ return m_repositoriesNotFound; }
84 
89  inline void SetRepositoriesNotFound(const Aws::Vector<Aws::String>& value) { m_repositoriesNotFound = value; }
90 
95  inline void SetRepositoriesNotFound(Aws::Vector<Aws::String>&& value) { m_repositoriesNotFound = std::move(value); }
96 
101  inline BatchGetRepositoriesResult& WithRepositoriesNotFound(const Aws::Vector<Aws::String>& value) { SetRepositoriesNotFound(value); return *this;}
102 
107  inline BatchGetRepositoriesResult& WithRepositoriesNotFound(Aws::Vector<Aws::String>&& value) { SetRepositoriesNotFound(std::move(value)); return *this;}
108 
113  inline BatchGetRepositoriesResult& AddRepositoriesNotFound(const Aws::String& value) { m_repositoriesNotFound.push_back(value); return *this; }
114 
119  inline BatchGetRepositoriesResult& AddRepositoriesNotFound(Aws::String&& value) { m_repositoriesNotFound.push_back(std::move(value)); return *this; }
120 
125  inline BatchGetRepositoriesResult& AddRepositoriesNotFound(const char* value) { m_repositoriesNotFound.push_back(value); return *this; }
126 
127  private:
128 
129  Aws::Vector<RepositoryMetadata> m_repositories;
130 
131  Aws::Vector<Aws::String> m_repositoriesNotFound;
132  };
133 
134 } // namespace Model
135 } // namespace CodeCommit
136 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::BatchGetRepositoriesResult::operator=
BatchGetRepositoriesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeCommit::Model::BatchGetRepositoriesResult::AddRepositoriesNotFound
BatchGetRepositoriesResult & AddRepositoriesNotFound(const Aws::String &value)
Definition: BatchGetRepositoriesResult.h:113
Aws::CodeCommit::Model::BatchGetRepositoriesResult::AddRepositories
BatchGetRepositoriesResult & AddRepositories(RepositoryMetadata &&value)
Definition: BatchGetRepositoriesResult.h:76
RepositoryMetadata.h
Aws::CodeCommit::Model::BatchGetRepositoriesResult::AddRepositories
BatchGetRepositoriesResult & AddRepositories(const RepositoryMetadata &value)
Definition: BatchGetRepositoriesResult.h:71
Aws::CodeCommit::Model::BatchGetRepositoriesResult::SetRepositoriesNotFound
void SetRepositoriesNotFound(Aws::Vector< Aws::String > &&value)
Definition: BatchGetRepositoriesResult.h:95
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CodeCommit::Model::BatchGetRepositoriesResult::BatchGetRepositoriesResult
BatchGetRepositoriesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSVector.h
Aws::CodeCommit::Model::BatchGetRepositoriesResult::SetRepositoriesNotFound
void SetRepositoriesNotFound(const Aws::Vector< Aws::String > &value)
Definition: BatchGetRepositoriesResult.h:89
Aws::CodeCommit::Model::BatchGetRepositoriesResult::WithRepositoriesNotFound
BatchGetRepositoriesResult & WithRepositoriesNotFound(const Aws::Vector< Aws::String > &value)
Definition: BatchGetRepositoriesResult.h:101
Aws::CodeCommit::Model::RepositoryMetadata
Definition: RepositoryMetadata.h:33
Aws::CodeCommit::Model::BatchGetRepositoriesResult::AddRepositoriesNotFound
BatchGetRepositoriesResult & AddRepositoriesNotFound(const char *value)
Definition: BatchGetRepositoriesResult.h:125
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::BatchGetRepositoriesResult::SetRepositories
void SetRepositories(Aws::Vector< RepositoryMetadata > &&value)
Definition: BatchGetRepositoriesResult.h:56
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::BatchGetRepositoriesResult::WithRepositoriesNotFound
BatchGetRepositoriesResult & WithRepositoriesNotFound(Aws::Vector< Aws::String > &&value)
Definition: BatchGetRepositoriesResult.h:107
Aws::CodeCommit::Model::BatchGetRepositoriesResult::WithRepositories
BatchGetRepositoriesResult & WithRepositories(const Aws::Vector< RepositoryMetadata > &value)
Definition: BatchGetRepositoriesResult.h:61
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::BatchGetRepositoriesResult::WithRepositories
BatchGetRepositoriesResult & WithRepositories(Aws::Vector< RepositoryMetadata > &&value)
Definition: BatchGetRepositoriesResult.h:66
Aws::CodeCommit::Model::BatchGetRepositoriesResult::AddRepositoriesNotFound
BatchGetRepositoriesResult & AddRepositoriesNotFound(Aws::String &&value)
Definition: BatchGetRepositoriesResult.h:119
Aws::CodeCommit::Model::BatchGetRepositoriesResult::SetRepositories
void SetRepositories(const Aws::Vector< RepositoryMetadata > &value)
Definition: BatchGetRepositoriesResult.h:51
Aws::CodeCommit::Model::BatchGetRepositoriesResult::GetRepositories
const Aws::Vector< RepositoryMetadata > & GetRepositories() const
Definition: BatchGetRepositoriesResult.h:46
Aws::CodeCommit::Model::BatchGetRepositoriesResult
Definition: BatchGetRepositoriesResult.h:36
Aws::CodeCommit::Model::BatchGetRepositoriesResult::GetRepositoriesNotFound
const Aws::Vector< Aws::String > & GetRepositoriesNotFound() const
Definition: BatchGetRepositoriesResult.h:83
Aws::CodeCommit::Model::BatchGetRepositoriesResult::BatchGetRepositoriesResult
BatchGetRepositoriesResult()