AWS SDK for C++  1.8.129
AWS SDK for C++
BatchGetCommitsRequest.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 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "BatchGetCommits"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
43  inline const Aws::Vector<Aws::String>& GetCommitIds() const{ return m_commitIds; }
44 
50  inline bool CommitIdsHasBeenSet() const { return m_commitIdsHasBeenSet; }
51 
57  inline void SetCommitIds(const Aws::Vector<Aws::String>& value) { m_commitIdsHasBeenSet = true; m_commitIds = value; }
58 
64  inline void SetCommitIds(Aws::Vector<Aws::String>&& value) { m_commitIdsHasBeenSet = true; m_commitIds = std::move(value); }
65 
71  inline BatchGetCommitsRequest& WithCommitIds(const Aws::Vector<Aws::String>& value) { SetCommitIds(value); return *this;}
72 
78  inline BatchGetCommitsRequest& WithCommitIds(Aws::Vector<Aws::String>&& value) { SetCommitIds(std::move(value)); return *this;}
79 
85  inline BatchGetCommitsRequest& AddCommitIds(const Aws::String& value) { m_commitIdsHasBeenSet = true; m_commitIds.push_back(value); return *this; }
86 
92  inline BatchGetCommitsRequest& AddCommitIds(Aws::String&& value) { m_commitIdsHasBeenSet = true; m_commitIds.push_back(std::move(value)); return *this; }
93 
99  inline BatchGetCommitsRequest& AddCommitIds(const char* value) { m_commitIdsHasBeenSet = true; m_commitIds.push_back(value); return *this; }
100 
101 
105  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
106 
110  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
111 
115  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
116 
120  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
121 
125  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
126 
130  inline BatchGetCommitsRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
131 
135  inline BatchGetCommitsRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
136 
140  inline BatchGetCommitsRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
141 
142  private:
143 
144  Aws::Vector<Aws::String> m_commitIds;
145  bool m_commitIdsHasBeenSet;
146 
147  Aws::String m_repositoryName;
148  bool m_repositoryNameHasBeenSet;
149  };
150 
151 } // namespace Model
152 } // namespace CodeCommit
153 } // namespace Aws
Aws::CodeCommit::Model::BatchGetCommitsRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: BatchGetCommitsRequest.h:120
CodeCommit_EXPORTS.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::Model::BatchGetCommitsRequest::GetCommitIds
const Aws::Vector< Aws::String > & GetCommitIds() const
Definition: BatchGetCommitsRequest.h:43
Aws::CodeCommit::Model::BatchGetCommitsRequest::WithCommitIds
BatchGetCommitsRequest & WithCommitIds(const Aws::Vector< Aws::String > &value)
Definition: BatchGetCommitsRequest.h:71
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CodeCommit::Model::BatchGetCommitsRequest::CommitIdsHasBeenSet
bool CommitIdsHasBeenSet() const
Definition: BatchGetCommitsRequest.h:50
CodeCommitRequest.h
AWSVector.h
Aws::CodeCommit::Model::BatchGetCommitsRequest::WithRepositoryName
BatchGetCommitsRequest & WithRepositoryName(const char *value)
Definition: BatchGetCommitsRequest.h:140
Aws::CodeCommit::Model::BatchGetCommitsRequest::BatchGetCommitsRequest
BatchGetCommitsRequest()
Aws::CodeCommit::Model::BatchGetCommitsRequest::WithRepositoryName
BatchGetCommitsRequest & WithRepositoryName(const Aws::String &value)
Definition: BatchGetCommitsRequest.h:130
Aws::CodeCommit::Model::BatchGetCommitsRequest::WithCommitIds
BatchGetCommitsRequest & WithCommitIds(Aws::Vector< Aws::String > &&value)
Definition: BatchGetCommitsRequest.h:78
Aws::CodeCommit::Model::BatchGetCommitsRequest::SetCommitIds
void SetCommitIds(Aws::Vector< Aws::String > &&value)
Definition: BatchGetCommitsRequest.h:64
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::BatchGetCommitsRequest::AddCommitIds
BatchGetCommitsRequest & AddCommitIds(Aws::String &&value)
Definition: BatchGetCommitsRequest.h:92
Aws::CodeCommit::Model::BatchGetCommitsRequest::AddCommitIds
BatchGetCommitsRequest & AddCommitIds(const Aws::String &value)
Definition: BatchGetCommitsRequest.h:85
Aws::CodeCommit::Model::BatchGetCommitsRequest::WithRepositoryName
BatchGetCommitsRequest & WithRepositoryName(Aws::String &&value)
Definition: BatchGetCommitsRequest.h:135
Aws::CodeCommit::Model::BatchGetCommitsRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: BatchGetCommitsRequest.h:110
Aws::CodeCommit::Model::BatchGetCommitsRequest::AddCommitIds
BatchGetCommitsRequest & AddCommitIds(const char *value)
Definition: BatchGetCommitsRequest.h:99
Aws::CodeCommit::Model::BatchGetCommitsRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: BatchGetCommitsRequest.h:125
Aws::CodeCommit::Model::BatchGetCommitsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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::BatchGetCommitsRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: BatchGetCommitsRequest.h:105
Aws::CodeCommit::Model::BatchGetCommitsRequest::SetCommitIds
void SetCommitIds(const Aws::Vector< Aws::String > &value)
Definition: BatchGetCommitsRequest.h:57
Aws::CodeCommit::Model::BatchGetCommitsRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: BatchGetCommitsRequest.h:115
Aws::CodeCommit::Model::BatchGetCommitsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeCommit::Model::BatchGetCommitsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: BatchGetCommitsRequest.h:31
Aws::CodeCommit::Model::BatchGetCommitsRequest
Definition: BatchGetCommitsRequest.h:23