AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateCommitRequest.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/CodeCommitRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codecommit/model/PutFileEntry.h>
12#include <aws/codecommit/model/DeleteFileEntry.h>
13#include <aws/codecommit/model/SetFileModeEntry.h>
14#include <utility>
15
16namespace Aws
17{
18namespace CodeCommit
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CODECOMMIT_API CreateCommitRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateCommit"; }
35
36 AWS_CODECOMMIT_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
46 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
47 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
48 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
49 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
50 inline CreateCommitRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
51 inline CreateCommitRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
52 inline CreateCommitRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
54
56
59 inline const Aws::String& GetBranchName() const{ return m_branchName; }
60 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
61 inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; }
62 inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); }
63 inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); }
64 inline CreateCommitRequest& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;}
65 inline CreateCommitRequest& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;}
66 inline CreateCommitRequest& WithBranchName(const char* value) { SetBranchName(value); return *this;}
68
70
74 inline const Aws::String& GetParentCommitId() const{ return m_parentCommitId; }
75 inline bool ParentCommitIdHasBeenSet() const { return m_parentCommitIdHasBeenSet; }
76 inline void SetParentCommitId(const Aws::String& value) { m_parentCommitIdHasBeenSet = true; m_parentCommitId = value; }
77 inline void SetParentCommitId(Aws::String&& value) { m_parentCommitIdHasBeenSet = true; m_parentCommitId = std::move(value); }
78 inline void SetParentCommitId(const char* value) { m_parentCommitIdHasBeenSet = true; m_parentCommitId.assign(value); }
79 inline CreateCommitRequest& WithParentCommitId(const Aws::String& value) { SetParentCommitId(value); return *this;}
80 inline CreateCommitRequest& WithParentCommitId(Aws::String&& value) { SetParentCommitId(std::move(value)); return *this;}
81 inline CreateCommitRequest& WithParentCommitId(const char* value) { SetParentCommitId(value); return *this;}
83
85
89 inline const Aws::String& GetAuthorName() const{ return m_authorName; }
90 inline bool AuthorNameHasBeenSet() const { return m_authorNameHasBeenSet; }
91 inline void SetAuthorName(const Aws::String& value) { m_authorNameHasBeenSet = true; m_authorName = value; }
92 inline void SetAuthorName(Aws::String&& value) { m_authorNameHasBeenSet = true; m_authorName = std::move(value); }
93 inline void SetAuthorName(const char* value) { m_authorNameHasBeenSet = true; m_authorName.assign(value); }
94 inline CreateCommitRequest& WithAuthorName(const Aws::String& value) { SetAuthorName(value); return *this;}
95 inline CreateCommitRequest& WithAuthorName(Aws::String&& value) { SetAuthorName(std::move(value)); return *this;}
96 inline CreateCommitRequest& WithAuthorName(const char* value) { SetAuthorName(value); return *this;}
98
100
103 inline const Aws::String& GetEmail() const{ return m_email; }
104 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
105 inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
106 inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
107 inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
108 inline CreateCommitRequest& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
109 inline CreateCommitRequest& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
110 inline CreateCommitRequest& WithEmail(const char* value) { SetEmail(value); return *this;}
112
114
118 inline const Aws::String& GetCommitMessage() const{ return m_commitMessage; }
119 inline bool CommitMessageHasBeenSet() const { return m_commitMessageHasBeenSet; }
120 inline void SetCommitMessage(const Aws::String& value) { m_commitMessageHasBeenSet = true; m_commitMessage = value; }
121 inline void SetCommitMessage(Aws::String&& value) { m_commitMessageHasBeenSet = true; m_commitMessage = std::move(value); }
122 inline void SetCommitMessage(const char* value) { m_commitMessageHasBeenSet = true; m_commitMessage.assign(value); }
123 inline CreateCommitRequest& WithCommitMessage(const Aws::String& value) { SetCommitMessage(value); return *this;}
124 inline CreateCommitRequest& WithCommitMessage(Aws::String&& value) { SetCommitMessage(std::move(value)); return *this;}
125 inline CreateCommitRequest& WithCommitMessage(const char* value) { SetCommitMessage(value); return *this;}
127
129
134 inline bool GetKeepEmptyFolders() const{ return m_keepEmptyFolders; }
135 inline bool KeepEmptyFoldersHasBeenSet() const { return m_keepEmptyFoldersHasBeenSet; }
136 inline void SetKeepEmptyFolders(bool value) { m_keepEmptyFoldersHasBeenSet = true; m_keepEmptyFolders = value; }
137 inline CreateCommitRequest& WithKeepEmptyFolders(bool value) { SetKeepEmptyFolders(value); return *this;}
139
141
144 inline const Aws::Vector<PutFileEntry>& GetPutFiles() const{ return m_putFiles; }
145 inline bool PutFilesHasBeenSet() const { return m_putFilesHasBeenSet; }
146 inline void SetPutFiles(const Aws::Vector<PutFileEntry>& value) { m_putFilesHasBeenSet = true; m_putFiles = value; }
147 inline void SetPutFiles(Aws::Vector<PutFileEntry>&& value) { m_putFilesHasBeenSet = true; m_putFiles = std::move(value); }
148 inline CreateCommitRequest& WithPutFiles(const Aws::Vector<PutFileEntry>& value) { SetPutFiles(value); return *this;}
149 inline CreateCommitRequest& WithPutFiles(Aws::Vector<PutFileEntry>&& value) { SetPutFiles(std::move(value)); return *this;}
150 inline CreateCommitRequest& AddPutFiles(const PutFileEntry& value) { m_putFilesHasBeenSet = true; m_putFiles.push_back(value); return *this; }
151 inline CreateCommitRequest& AddPutFiles(PutFileEntry&& value) { m_putFilesHasBeenSet = true; m_putFiles.push_back(std::move(value)); return *this; }
153
155
159 inline const Aws::Vector<DeleteFileEntry>& GetDeleteFiles() const{ return m_deleteFiles; }
160 inline bool DeleteFilesHasBeenSet() const { return m_deleteFilesHasBeenSet; }
161 inline void SetDeleteFiles(const Aws::Vector<DeleteFileEntry>& value) { m_deleteFilesHasBeenSet = true; m_deleteFiles = value; }
162 inline void SetDeleteFiles(Aws::Vector<DeleteFileEntry>&& value) { m_deleteFilesHasBeenSet = true; m_deleteFiles = std::move(value); }
164 inline CreateCommitRequest& WithDeleteFiles(Aws::Vector<DeleteFileEntry>&& value) { SetDeleteFiles(std::move(value)); return *this;}
165 inline CreateCommitRequest& AddDeleteFiles(const DeleteFileEntry& value) { m_deleteFilesHasBeenSet = true; m_deleteFiles.push_back(value); return *this; }
166 inline CreateCommitRequest& AddDeleteFiles(DeleteFileEntry&& value) { m_deleteFilesHasBeenSet = true; m_deleteFiles.push_back(std::move(value)); return *this; }
168
170
173 inline const Aws::Vector<SetFileModeEntry>& GetSetFileModes() const{ return m_setFileModes; }
174 inline bool SetFileModesHasBeenSet() const { return m_setFileModesHasBeenSet; }
175 inline void SetSetFileModes(const Aws::Vector<SetFileModeEntry>& value) { m_setFileModesHasBeenSet = true; m_setFileModes = value; }
176 inline void SetSetFileModes(Aws::Vector<SetFileModeEntry>&& value) { m_setFileModesHasBeenSet = true; m_setFileModes = std::move(value); }
178 inline CreateCommitRequest& WithSetFileModes(Aws::Vector<SetFileModeEntry>&& value) { SetSetFileModes(std::move(value)); return *this;}
179 inline CreateCommitRequest& AddSetFileModes(const SetFileModeEntry& value) { m_setFileModesHasBeenSet = true; m_setFileModes.push_back(value); return *this; }
180 inline CreateCommitRequest& AddSetFileModes(SetFileModeEntry&& value) { m_setFileModesHasBeenSet = true; m_setFileModes.push_back(std::move(value)); return *this; }
182 private:
183
184 Aws::String m_repositoryName;
185 bool m_repositoryNameHasBeenSet = false;
186
187 Aws::String m_branchName;
188 bool m_branchNameHasBeenSet = false;
189
190 Aws::String m_parentCommitId;
191 bool m_parentCommitIdHasBeenSet = false;
192
193 Aws::String m_authorName;
194 bool m_authorNameHasBeenSet = false;
195
196 Aws::String m_email;
197 bool m_emailHasBeenSet = false;
198
199 Aws::String m_commitMessage;
200 bool m_commitMessageHasBeenSet = false;
201
202 bool m_keepEmptyFolders;
203 bool m_keepEmptyFoldersHasBeenSet = false;
204
205 Aws::Vector<PutFileEntry> m_putFiles;
206 bool m_putFilesHasBeenSet = false;
207
208 Aws::Vector<DeleteFileEntry> m_deleteFiles;
209 bool m_deleteFilesHasBeenSet = false;
210
211 Aws::Vector<SetFileModeEntry> m_setFileModes;
212 bool m_setFileModesHasBeenSet = false;
213 };
214
215} // namespace Model
216} // namespace CodeCommit
217} // namespace Aws
const Aws::Vector< DeleteFileEntry > & GetDeleteFiles() const
CreateCommitRequest & WithPutFiles(const Aws::Vector< PutFileEntry > &value)
CreateCommitRequest & AddSetFileModes(SetFileModeEntry &&value)
CreateCommitRequest & WithRepositoryName(const Aws::String &value)
void SetPutFiles(const Aws::Vector< PutFileEntry > &value)
void SetCommitMessage(const Aws::String &value)
CreateCommitRequest & WithPutFiles(Aws::Vector< PutFileEntry > &&value)
void SetSetFileModes(Aws::Vector< SetFileModeEntry > &&value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetBranchName(const Aws::String &value)
void SetDeleteFiles(Aws::Vector< DeleteFileEntry > &&value)
CreateCommitRequest & WithAuthorName(const char *value)
void SetParentCommitId(const Aws::String &value)
CreateCommitRequest & WithDeleteFiles(Aws::Vector< DeleteFileEntry > &&value)
CreateCommitRequest & WithDeleteFiles(const Aws::Vector< DeleteFileEntry > &value)
CreateCommitRequest & WithAuthorName(Aws::String &&value)
CreateCommitRequest & WithEmail(const Aws::String &value)
void SetSetFileModes(const Aws::Vector< SetFileModeEntry > &value)
CreateCommitRequest & AddPutFiles(PutFileEntry &&value)
CreateCommitRequest & WithParentCommitId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateCommitRequest & WithCommitMessage(const Aws::String &value)
CreateCommitRequest & WithBranchName(const char *value)
void SetDeleteFiles(const Aws::Vector< DeleteFileEntry > &value)
CreateCommitRequest & WithParentCommitId(const Aws::String &value)
CreateCommitRequest & WithCommitMessage(Aws::String &&value)
CreateCommitRequest & AddSetFileModes(const SetFileModeEntry &value)
CreateCommitRequest & WithRepositoryName(Aws::String &&value)
const Aws::Vector< PutFileEntry > & GetPutFiles() const
CreateCommitRequest & WithEmail(const char *value)
CreateCommitRequest & WithSetFileModes(const Aws::Vector< SetFileModeEntry > &value)
CreateCommitRequest & WithAuthorName(const Aws::String &value)
CreateCommitRequest & WithRepositoryName(const char *value)
CreateCommitRequest & AddPutFiles(const PutFileEntry &value)
CreateCommitRequest & WithParentCommitId(const char *value)
CreateCommitRequest & WithKeepEmptyFolders(bool value)
CreateCommitRequest & WithEmail(Aws::String &&value)
void SetPutFiles(Aws::Vector< PutFileEntry > &&value)
CreateCommitRequest & AddDeleteFiles(DeleteFileEntry &&value)
CreateCommitRequest & WithCommitMessage(const char *value)
void SetRepositoryName(const Aws::String &value)
CreateCommitRequest & WithSetFileModes(Aws::Vector< SetFileModeEntry > &&value)
CreateCommitRequest & AddDeleteFiles(const DeleteFileEntry &value)
const Aws::Vector< SetFileModeEntry > & GetSetFileModes() const
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
CreateCommitRequest & WithBranchName(const Aws::String &value)
CreateCommitRequest & WithBranchName(Aws::String &&value)
void SetAuthorName(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector