AWS SDK for C++  1.9.129
AWS SDK for C++
BatchGetRepositoriesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace CodeCommit
16 {
17 namespace Model
18 {
19 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "BatchGetRepositories"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
47  inline const Aws::Vector<Aws::String>& GetRepositoryNames() const{ return m_repositoryNames; }
48 
54  inline bool RepositoryNamesHasBeenSet() const { return m_repositoryNamesHasBeenSet; }
55 
61  inline void SetRepositoryNames(const Aws::Vector<Aws::String>& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames = value; }
62 
68  inline void SetRepositoryNames(Aws::Vector<Aws::String>&& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames = std::move(value); }
69 
75  inline BatchGetRepositoriesRequest& WithRepositoryNames(const Aws::Vector<Aws::String>& value) { SetRepositoryNames(value); return *this;}
76 
82  inline BatchGetRepositoriesRequest& WithRepositoryNames(Aws::Vector<Aws::String>&& value) { SetRepositoryNames(std::move(value)); return *this;}
83 
89  inline BatchGetRepositoriesRequest& AddRepositoryNames(const Aws::String& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(value); return *this; }
90 
96  inline BatchGetRepositoriesRequest& AddRepositoryNames(Aws::String&& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(std::move(value)); return *this; }
97 
103  inline BatchGetRepositoriesRequest& AddRepositoryNames(const char* value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(value); return *this; }
104 
105  private:
106 
107  Aws::Vector<Aws::String> m_repositoryNames;
108  bool m_repositoryNamesHasBeenSet;
109  };
110 
111 } // namespace Model
112 } // namespace CodeCommit
113 } // namespace Aws
CodeCommit_EXPORTS.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::Model::BatchGetRepositoriesRequest::AddRepositoryNames
BatchGetRepositoriesRequest & AddRepositoryNames(Aws::String &&value)
Definition: BatchGetRepositoriesRequest.h:96
Aws::CodeCommit::Model::BatchGetRepositoriesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CodeCommit::Model::BatchGetRepositoriesRequest::GetRepositoryNames
const Aws::Vector< Aws::String > & GetRepositoryNames() const
Definition: BatchGetRepositoriesRequest.h:47
Aws::CodeCommit::Model::BatchGetRepositoriesRequest::RepositoryNamesHasBeenSet
bool RepositoryNamesHasBeenSet() const
Definition: BatchGetRepositoriesRequest.h:54
Aws::CodeCommit::Model::BatchGetRepositoriesRequest::WithRepositoryNames
BatchGetRepositoriesRequest & WithRepositoryNames(const Aws::Vector< Aws::String > &value)
Definition: BatchGetRepositoriesRequest.h:75
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
Aws::CodeCommit::Model::BatchGetRepositoriesRequest::AddRepositoryNames
BatchGetRepositoriesRequest & AddRepositoryNames(const char *value)
Definition: BatchGetRepositoriesRequest.h:103
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
CodeCommitRequest.h
AWSVector.h
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::BatchGetRepositoriesRequest::SetRepositoryNames
void SetRepositoryNames(const Aws::Vector< Aws::String > &value)
Definition: BatchGetRepositoriesRequest.h:61
Aws::CodeCommit::Model::BatchGetRepositoriesRequest::WithRepositoryNames
BatchGetRepositoriesRequest & WithRepositoryNames(Aws::Vector< Aws::String > &&value)
Definition: BatchGetRepositoriesRequest.h:82
Aws::CodeCommit::Model::BatchGetRepositoriesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeCommit::Model::BatchGetRepositoriesRequest::AddRepositoryNames
BatchGetRepositoriesRequest & AddRepositoryNames(const Aws::String &value)
Definition: BatchGetRepositoriesRequest.h:89
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::BatchGetRepositoriesRequest::BatchGetRepositoriesRequest
BatchGetRepositoriesRequest()
Aws::CodeCommit::Model::BatchGetRepositoriesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: BatchGetRepositoriesRequest.h:35
Aws::CodeCommit::Model::BatchGetRepositoriesRequest
Definition: BatchGetRepositoriesRequest.h:27
Aws::CodeCommit::Model::BatchGetRepositoriesRequest::SetRepositoryNames
void SetRepositoryNames(Aws::Vector< Aws::String > &&value)
Definition: BatchGetRepositoriesRequest.h:68