AWS SDK for C++  1.9.40
AWS SDK for C++
PutFileRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/core/utils/Array.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace CodeCommit
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "PutFile"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
43 
47  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
48 
52  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
53 
57  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
58 
62  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
63 
67  inline PutFileRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
68 
72  inline PutFileRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
73 
77  inline PutFileRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
78 
79 
84  inline const Aws::String& GetBranchName() const{ return m_branchName; }
85 
90  inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
91 
96  inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; }
97 
102  inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); }
103 
108  inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); }
109 
114  inline PutFileRequest& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;}
115 
120  inline PutFileRequest& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;}
121 
126  inline PutFileRequest& WithBranchName(const char* value) { SetBranchName(value); return *this;}
127 
128 
132  inline const Aws::Utils::ByteBuffer& GetFileContent() const{ return m_fileContent; }
133 
137  inline bool FileContentHasBeenSet() const { return m_fileContentHasBeenSet; }
138 
142  inline void SetFileContent(const Aws::Utils::ByteBuffer& value) { m_fileContentHasBeenSet = true; m_fileContent = value; }
143 
147  inline void SetFileContent(Aws::Utils::ByteBuffer&& value) { m_fileContentHasBeenSet = true; m_fileContent = std::move(value); }
148 
152  inline PutFileRequest& WithFileContent(const Aws::Utils::ByteBuffer& value) { SetFileContent(value); return *this;}
153 
157  inline PutFileRequest& WithFileContent(Aws::Utils::ByteBuffer&& value) { SetFileContent(std::move(value)); return *this;}
158 
159 
166  inline const Aws::String& GetFilePath() const{ return m_filePath; }
167 
174  inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
175 
182  inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; }
183 
190  inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); }
191 
198  inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); }
199 
206  inline PutFileRequest& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;}
207 
214  inline PutFileRequest& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;}
215 
222  inline PutFileRequest& WithFilePath(const char* value) { SetFilePath(value); return *this;}
223 
224 
229  inline const FileModeTypeEnum& GetFileMode() const{ return m_fileMode; }
230 
235  inline bool FileModeHasBeenSet() const { return m_fileModeHasBeenSet; }
236 
241  inline void SetFileMode(const FileModeTypeEnum& value) { m_fileModeHasBeenSet = true; m_fileMode = value; }
242 
247  inline void SetFileMode(FileModeTypeEnum&& value) { m_fileModeHasBeenSet = true; m_fileMode = std::move(value); }
248 
253  inline PutFileRequest& WithFileMode(const FileModeTypeEnum& value) { SetFileMode(value); return *this;}
254 
259  inline PutFileRequest& WithFileMode(FileModeTypeEnum&& value) { SetFileMode(std::move(value)); return *this;}
260 
261 
269  inline const Aws::String& GetParentCommitId() const{ return m_parentCommitId; }
270 
278  inline bool ParentCommitIdHasBeenSet() const { return m_parentCommitIdHasBeenSet; }
279 
287  inline void SetParentCommitId(const Aws::String& value) { m_parentCommitIdHasBeenSet = true; m_parentCommitId = value; }
288 
296  inline void SetParentCommitId(Aws::String&& value) { m_parentCommitIdHasBeenSet = true; m_parentCommitId = std::move(value); }
297 
305  inline void SetParentCommitId(const char* value) { m_parentCommitIdHasBeenSet = true; m_parentCommitId.assign(value); }
306 
314  inline PutFileRequest& WithParentCommitId(const Aws::String& value) { SetParentCommitId(value); return *this;}
315 
323  inline PutFileRequest& WithParentCommitId(Aws::String&& value) { SetParentCommitId(std::move(value)); return *this;}
324 
332  inline PutFileRequest& WithParentCommitId(const char* value) { SetParentCommitId(value); return *this;}
333 
334 
339  inline const Aws::String& GetCommitMessage() const{ return m_commitMessage; }
340 
345  inline bool CommitMessageHasBeenSet() const { return m_commitMessageHasBeenSet; }
346 
351  inline void SetCommitMessage(const Aws::String& value) { m_commitMessageHasBeenSet = true; m_commitMessage = value; }
352 
357  inline void SetCommitMessage(Aws::String&& value) { m_commitMessageHasBeenSet = true; m_commitMessage = std::move(value); }
358 
363  inline void SetCommitMessage(const char* value) { m_commitMessageHasBeenSet = true; m_commitMessage.assign(value); }
364 
369  inline PutFileRequest& WithCommitMessage(const Aws::String& value) { SetCommitMessage(value); return *this;}
370 
375  inline PutFileRequest& WithCommitMessage(Aws::String&& value) { SetCommitMessage(std::move(value)); return *this;}
376 
381  inline PutFileRequest& WithCommitMessage(const char* value) { SetCommitMessage(value); return *this;}
382 
383 
388  inline const Aws::String& GetName() const{ return m_name; }
389 
394  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
395 
400  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
401 
406  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
407 
412  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
413 
418  inline PutFileRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
419 
424  inline PutFileRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
425 
430  inline PutFileRequest& WithName(const char* value) { SetName(value); return *this;}
431 
432 
436  inline const Aws::String& GetEmail() const{ return m_email; }
437 
441  inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
442 
446  inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
447 
451  inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
452 
456  inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
457 
461  inline PutFileRequest& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
462 
466  inline PutFileRequest& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
467 
471  inline PutFileRequest& WithEmail(const char* value) { SetEmail(value); return *this;}
472 
473  private:
474 
475  Aws::String m_repositoryName;
476  bool m_repositoryNameHasBeenSet;
477 
478  Aws::String m_branchName;
479  bool m_branchNameHasBeenSet;
480 
481  Aws::Utils::ByteBuffer m_fileContent;
482  bool m_fileContentHasBeenSet;
483 
484  Aws::String m_filePath;
485  bool m_filePathHasBeenSet;
486 
487  FileModeTypeEnum m_fileMode;
488  bool m_fileModeHasBeenSet;
489 
490  Aws::String m_parentCommitId;
491  bool m_parentCommitIdHasBeenSet;
492 
493  Aws::String m_commitMessage;
494  bool m_commitMessageHasBeenSet;
495 
496  Aws::String m_name;
497  bool m_nameHasBeenSet;
498 
499  Aws::String m_email;
500  bool m_emailHasBeenSet;
501  };
502 
503 } // namespace Model
504 } // namespace CodeCommit
505 } // namespace Aws
Aws::CodeCommit::Model::PutFileRequest::SetFilePath
void SetFilePath(Aws::String &&value)
Definition: PutFileRequest.h:190
Aws::CodeCommit::Model::PutFileRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: PutFileRequest.h:52
Aws::CodeCommit::Model::PutFileRequest::SetEmail
void SetEmail(Aws::String &&value)
Definition: PutFileRequest.h:451
Aws::CodeCommit::Model::PutFileRequest::SetFilePath
void SetFilePath(const char *value)
Definition: PutFileRequest.h:198
Aws::CodeCommit::Model::PutFileRequest::WithParentCommitId
PutFileRequest & WithParentCommitId(const Aws::String &value)
Definition: PutFileRequest.h:314
Aws::CodeCommit::Model::PutFileRequest::PutFileRequest
PutFileRequest()
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::PutFileRequest::WithFilePath
PutFileRequest & WithFilePath(const char *value)
Definition: PutFileRequest.h:222
Aws::CodeCommit::Model::PutFileRequest::SetFileMode
void SetFileMode(FileModeTypeEnum &&value)
Definition: PutFileRequest.h:247
Aws::CodeCommit::Model::PutFileRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: PutFileRequest.h:57
Aws::CodeCommit::Model::PutFileRequest::WithBranchName
PutFileRequest & WithBranchName(const Aws::String &value)
Definition: PutFileRequest.h:114
Aws::CodeCommit::Model::PutFileRequest::GetCommitMessage
const Aws::String & GetCommitMessage() const
Definition: PutFileRequest.h:339
Aws::CodeCommit::Model::PutFileRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: PutFileRequest.h:394
Aws::CodeCommit::Model::PutFileRequest::SetName
void SetName(const Aws::String &value)
Definition: PutFileRequest.h:400
Aws::CodeCommit::Model::PutFileRequest::GetFileContent
const Aws::Utils::ByteBuffer & GetFileContent() const
Definition: PutFileRequest.h:132
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::Model::PutFileRequest::SetFileContent
void SetFileContent(Aws::Utils::ByteBuffer &&value)
Definition: PutFileRequest.h:147
Aws::CodeCommit::Model::PutFileRequest::SetBranchName
void SetBranchName(const char *value)
Definition: PutFileRequest.h:108
Aws::CodeCommit::Model::PutFileRequest::SetFilePath
void SetFilePath(const Aws::String &value)
Definition: PutFileRequest.h:182
Aws::CodeCommit::Model::PutFileRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: PutFileRequest.h:62
Aws::CodeCommit::Model::PutFileRequest::WithCommitMessage
PutFileRequest & WithCommitMessage(const char *value)
Definition: PutFileRequest.h:381
Aws::CodeCommit::Model::PutFileRequest::SetParentCommitId
void SetParentCommitId(Aws::String &&value)
Definition: PutFileRequest.h:296
Aws::CodeCommit::Model::PutFileRequest::WithFileContent
PutFileRequest & WithFileContent(Aws::Utils::ByteBuffer &&value)
Definition: PutFileRequest.h:157
Aws::CodeCommit::Model::PutFileRequest::WithName
PutFileRequest & WithName(Aws::String &&value)
Definition: PutFileRequest.h:424
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
Aws::CodeCommit::Model::PutFileRequest::SetName
void SetName(const char *value)
Definition: PutFileRequest.h:412
Aws::CodeCommit::Model::PutFileRequest::GetParentCommitId
const Aws::String & GetParentCommitId() const
Definition: PutFileRequest.h:269
FileModeTypeEnum.h
Aws::CodeCommit::Model::PutFileRequest::WithEmail
PutFileRequest & WithEmail(Aws::String &&value)
Definition: PutFileRequest.h:466
Aws::CodeCommit::Model::PutFileRequest::BranchNameHasBeenSet
bool BranchNameHasBeenSet() const
Definition: PutFileRequest.h:90
Aws::CodeCommit::Model::PutFileRequest::WithName
PutFileRequest & WithName(const char *value)
Definition: PutFileRequest.h:430
CodeCommitRequest.h
Aws::CodeCommit::Model::PutFileRequest::WithRepositoryName
PutFileRequest & WithRepositoryName(const Aws::String &value)
Definition: PutFileRequest.h:67
Aws::CodeCommit::Model::PutFileRequest::WithBranchName
PutFileRequest & WithBranchName(const char *value)
Definition: PutFileRequest.h:126
Aws::CodeCommit::Model::PutFileRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: PutFileRequest.h:42
Aws::CodeCommit::Model::PutFileRequest::GetFilePath
const Aws::String & GetFilePath() const
Definition: PutFileRequest.h:166
Aws::CodeCommit::Model::PutFileRequest::SetParentCommitId
void SetParentCommitId(const char *value)
Definition: PutFileRequest.h:305
Aws::CodeCommit::Model::PutFileRequest::SetBranchName
void SetBranchName(Aws::String &&value)
Definition: PutFileRequest.h:102
Aws::CodeCommit::Model::PutFileRequest
Definition: PutFileRequest.h:24
Aws::CodeCommit::Model::PutFileRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeCommit::Model::PutFileRequest::SetParentCommitId
void SetParentCommitId(const Aws::String &value)
Definition: PutFileRequest.h:287
Aws::CodeCommit::Model::PutFileRequest::SetFileMode
void SetFileMode(const FileModeTypeEnum &value)
Definition: PutFileRequest.h:241
Aws::CodeCommit::Model::PutFileRequest::WithCommitMessage
PutFileRequest & WithCommitMessage(Aws::String &&value)
Definition: PutFileRequest.h:375
Aws::CodeCommit::Model::PutFileRequest::SetEmail
void SetEmail(const char *value)
Definition: PutFileRequest.h:456
Aws::CodeCommit::Model::PutFileRequest::WithFilePath
PutFileRequest & WithFilePath(const Aws::String &value)
Definition: PutFileRequest.h:206
Aws::CodeCommit::Model::PutFileRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CodeCommit::Model::PutFileRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutFileRequest.h:32
Aws::CodeCommit::Model::PutFileRequest::WithName
PutFileRequest & WithName(const Aws::String &value)
Definition: PutFileRequest.h:418
Aws::Utils::Array< unsigned char >
AWSString.h
Aws::CodeCommit::Model::PutFileRequest::ParentCommitIdHasBeenSet
bool ParentCommitIdHasBeenSet() const
Definition: PutFileRequest.h:278
Aws::CodeCommit::Model::PutFileRequest::SetCommitMessage
void SetCommitMessage(Aws::String &&value)
Definition: PutFileRequest.h:357
Aws::CodeCommit::Model::FileModeTypeEnum
FileModeTypeEnum
Definition: FileModeTypeEnum.h:17
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::PutFileRequest::SetFileContent
void SetFileContent(const Aws::Utils::ByteBuffer &value)
Definition: PutFileRequest.h:142
Aws::CodeCommit::Model::PutFileRequest::WithRepositoryName
PutFileRequest & WithRepositoryName(Aws::String &&value)
Definition: PutFileRequest.h:72
Aws::CodeCommit::Model::PutFileRequest::WithRepositoryName
PutFileRequest & WithRepositoryName(const char *value)
Definition: PutFileRequest.h:77
Aws::CodeCommit::Model::PutFileRequest::GetFileMode
const FileModeTypeEnum & GetFileMode() const
Definition: PutFileRequest.h:229
Aws::CodeCommit::Model::PutFileRequest::SetBranchName
void SetBranchName(const Aws::String &value)
Definition: PutFileRequest.h:96
Aws::CodeCommit::Model::PutFileRequest::SetName
void SetName(Aws::String &&value)
Definition: PutFileRequest.h:406
Aws::CodeCommit::Model::PutFileRequest::FileContentHasBeenSet
bool FileContentHasBeenSet() const
Definition: PutFileRequest.h:137
Aws::CodeCommit::Model::PutFileRequest::SetCommitMessage
void SetCommitMessage(const Aws::String &value)
Definition: PutFileRequest.h:351
Aws::CodeCommit::Model::PutFileRequest::FilePathHasBeenSet
bool FilePathHasBeenSet() const
Definition: PutFileRequest.h:174
Aws::CodeCommit::Model::PutFileRequest::WithCommitMessage
PutFileRequest & WithCommitMessage(const Aws::String &value)
Definition: PutFileRequest.h:369
Aws::CodeCommit::Model::PutFileRequest::SetCommitMessage
void SetCommitMessage(const char *value)
Definition: PutFileRequest.h:363
Aws::CodeCommit::Model::PutFileRequest::WithBranchName
PutFileRequest & WithBranchName(Aws::String &&value)
Definition: PutFileRequest.h:120
Aws::CodeCommit::Model::PutFileRequest::EmailHasBeenSet
bool EmailHasBeenSet() const
Definition: PutFileRequest.h:441
Aws
Definition: AccessManagementClient.h:15
Array.h
Aws::CodeCommit::Model::PutFileRequest::WithParentCommitId
PutFileRequest & WithParentCommitId(const char *value)
Definition: PutFileRequest.h:332
Aws::CodeCommit::Model::PutFileRequest::WithFileContent
PutFileRequest & WithFileContent(const Aws::Utils::ByteBuffer &value)
Definition: PutFileRequest.h:152
Aws::CodeCommit::Model::PutFileRequest::WithParentCommitId
PutFileRequest & WithParentCommitId(Aws::String &&value)
Definition: PutFileRequest.h:323
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::PutFileRequest::WithEmail
PutFileRequest & WithEmail(const Aws::String &value)
Definition: PutFileRequest.h:461
Aws::CodeCommit::Model::PutFileRequest::CommitMessageHasBeenSet
bool CommitMessageHasBeenSet() const
Definition: PutFileRequest.h:345
Aws::CodeCommit::Model::PutFileRequest::GetBranchName
const Aws::String & GetBranchName() const
Definition: PutFileRequest.h:84
Aws::CodeCommit::Model::PutFileRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: PutFileRequest.h:47
Aws::CodeCommit::Model::PutFileRequest::WithFilePath
PutFileRequest & WithFilePath(Aws::String &&value)
Definition: PutFileRequest.h:214
Aws::CodeCommit::Model::PutFileRequest::WithFileMode
PutFileRequest & WithFileMode(const FileModeTypeEnum &value)
Definition: PutFileRequest.h:253
Aws::CodeCommit::Model::PutFileRequest::WithEmail
PutFileRequest & WithEmail(const char *value)
Definition: PutFileRequest.h:471
Aws::CodeCommit::Model::PutFileRequest::WithFileMode
PutFileRequest & WithFileMode(FileModeTypeEnum &&value)
Definition: PutFileRequest.h:259
Aws::CodeCommit::Model::PutFileRequest::GetEmail
const Aws::String & GetEmail() const
Definition: PutFileRequest.h:436
Aws::CodeCommit::Model::PutFileRequest::SetEmail
void SetEmail(const Aws::String &value)
Definition: PutFileRequest.h:446
Aws::CodeCommit::Model::PutFileRequest::FileModeHasBeenSet
bool FileModeHasBeenSet() const
Definition: PutFileRequest.h:235
Aws::CodeCommit::Model::PutFileRequest::GetName
const Aws::String & GetName() const
Definition: PutFileRequest.h:388