AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchGetRepositoriesResult.h
1
6#pragma once
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/RepositoryMetadata.h>
11#include <aws/codecommit/model/BatchGetRepositoriesError.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CodeCommit
27{
28namespace Model
29{
37 {
38 public:
39 AWS_CODECOMMIT_API BatchGetRepositoriesResult();
42
43
45
48 inline const Aws::Vector<RepositoryMetadata>& GetRepositories() const{ return m_repositories; }
49 inline void SetRepositories(const Aws::Vector<RepositoryMetadata>& value) { m_repositories = value; }
50 inline void SetRepositories(Aws::Vector<RepositoryMetadata>&& value) { m_repositories = std::move(value); }
53 inline BatchGetRepositoriesResult& AddRepositories(const RepositoryMetadata& value) { m_repositories.push_back(value); return *this; }
54 inline BatchGetRepositoriesResult& AddRepositories(RepositoryMetadata&& value) { m_repositories.push_back(std::move(value)); return *this; }
56
58
62 inline const Aws::Vector<Aws::String>& GetRepositoriesNotFound() const{ return m_repositoriesNotFound; }
63 inline void SetRepositoriesNotFound(const Aws::Vector<Aws::String>& value) { m_repositoriesNotFound = value; }
64 inline void SetRepositoriesNotFound(Aws::Vector<Aws::String>&& value) { m_repositoriesNotFound = std::move(value); }
67 inline BatchGetRepositoriesResult& AddRepositoriesNotFound(const Aws::String& value) { m_repositoriesNotFound.push_back(value); return *this; }
68 inline BatchGetRepositoriesResult& AddRepositoriesNotFound(Aws::String&& value) { m_repositoriesNotFound.push_back(std::move(value)); return *this; }
69 inline BatchGetRepositoriesResult& AddRepositoriesNotFound(const char* value) { m_repositoriesNotFound.push_back(value); return *this; }
71
73
77 inline const Aws::Vector<BatchGetRepositoriesError>& GetErrors() const{ return m_errors; }
78 inline void SetErrors(const Aws::Vector<BatchGetRepositoriesError>& value) { m_errors = value; }
79 inline void SetErrors(Aws::Vector<BatchGetRepositoriesError>&& value) { m_errors = std::move(value); }
82 inline BatchGetRepositoriesResult& AddErrors(const BatchGetRepositoriesError& value) { m_errors.push_back(value); return *this; }
83 inline BatchGetRepositoriesResult& AddErrors(BatchGetRepositoriesError&& value) { m_errors.push_back(std::move(value)); return *this; }
85
87
88 inline const Aws::String& GetRequestId() const{ return m_requestId; }
89 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
90 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
91 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
92 inline BatchGetRepositoriesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
93 inline BatchGetRepositoriesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
94 inline BatchGetRepositoriesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
96 private:
97
99
100 Aws::Vector<Aws::String> m_repositoriesNotFound;
101
103
104 Aws::String m_requestId;
105 };
106
107} // namespace Model
108} // namespace CodeCommit
109} // namespace Aws
void SetRepositoriesNotFound(Aws::Vector< Aws::String > &&value)
BatchGetRepositoriesResult & AddRepositories(RepositoryMetadata &&value)
void SetRepositories(const Aws::Vector< RepositoryMetadata > &value)
BatchGetRepositoriesResult & WithRepositoriesNotFound(Aws::Vector< Aws::String > &&value)
BatchGetRepositoriesResult & WithErrors(const Aws::Vector< BatchGetRepositoriesError > &value)
BatchGetRepositoriesResult & AddRepositoriesNotFound(const char *value)
const Aws::Vector< BatchGetRepositoriesError > & GetErrors() const
BatchGetRepositoriesResult & WithRequestId(const char *value)
BatchGetRepositoriesResult & AddRepositoriesNotFound(Aws::String &&value)
void SetRepositoriesNotFound(const Aws::Vector< Aws::String > &value)
BatchGetRepositoriesResult & AddErrors(BatchGetRepositoriesError &&value)
BatchGetRepositoriesResult & WithRepositories(Aws::Vector< RepositoryMetadata > &&value)
AWS_CODECOMMIT_API BatchGetRepositoriesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Aws::String > & GetRepositoriesNotFound() const
void SetErrors(Aws::Vector< BatchGetRepositoriesError > &&value)
BatchGetRepositoriesResult & WithRequestId(Aws::String &&value)
BatchGetRepositoriesResult & AddRepositoriesNotFound(const Aws::String &value)
BatchGetRepositoriesResult & AddRepositories(const RepositoryMetadata &value)
BatchGetRepositoriesResult & AddErrors(const BatchGetRepositoriesError &value)
BatchGetRepositoriesResult & WithRequestId(const Aws::String &value)
const Aws::Vector< RepositoryMetadata > & GetRepositories() const
void SetRepositories(Aws::Vector< RepositoryMetadata > &&value)
BatchGetRepositoriesResult & WithErrors(Aws::Vector< BatchGetRepositoriesError > &&value)
BatchGetRepositoriesResult & WithRepositories(const Aws::Vector< RepositoryMetadata > &value)
BatchGetRepositoriesResult & WithRepositoriesNotFound(const Aws::Vector< Aws::String > &value)
void SetErrors(const Aws::Vector< BatchGetRepositoriesError > &value)
AWS_CODECOMMIT_API BatchGetRepositoriesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue