AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutFileRequest.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/Array.h>
11#include <aws/codecommit/model/FileModeTypeEnum.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CodeCommit
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CODECOMMIT_API PutFileRequest();
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_CODECOMMIT_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
44 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
45 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
46 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
47 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
48 inline PutFileRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
49 inline PutFileRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
50 inline PutFileRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
52
54
58 inline const Aws::String& GetBranchName() const{ return m_branchName; }
59 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
60 inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; }
61 inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); }
62 inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); }
63 inline PutFileRequest& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;}
64 inline PutFileRequest& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;}
65 inline PutFileRequest& WithBranchName(const char* value) { SetBranchName(value); return *this;}
67
69
72 inline const Aws::Utils::ByteBuffer& GetFileContent() const{ return m_fileContent; }
73 inline bool FileContentHasBeenSet() const { return m_fileContentHasBeenSet; }
74 inline void SetFileContent(const Aws::Utils::ByteBuffer& value) { m_fileContentHasBeenSet = true; m_fileContent = value; }
75 inline void SetFileContent(Aws::Utils::ByteBuffer&& value) { m_fileContentHasBeenSet = true; m_fileContent = std::move(value); }
76 inline PutFileRequest& WithFileContent(const Aws::Utils::ByteBuffer& value) { SetFileContent(value); return *this;}
77 inline PutFileRequest& WithFileContent(Aws::Utils::ByteBuffer&& value) { SetFileContent(std::move(value)); return *this;}
79
81
87 inline const Aws::String& GetFilePath() const{ return m_filePath; }
88 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
89 inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; }
90 inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); }
91 inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); }
92 inline PutFileRequest& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;}
93 inline PutFileRequest& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;}
94 inline PutFileRequest& WithFilePath(const char* value) { SetFilePath(value); return *this;}
96
98
102 inline const FileModeTypeEnum& GetFileMode() const{ return m_fileMode; }
103 inline bool FileModeHasBeenSet() const { return m_fileModeHasBeenSet; }
104 inline void SetFileMode(const FileModeTypeEnum& value) { m_fileModeHasBeenSet = true; m_fileMode = value; }
105 inline void SetFileMode(FileModeTypeEnum&& value) { m_fileModeHasBeenSet = true; m_fileMode = std::move(value); }
106 inline PutFileRequest& WithFileMode(const FileModeTypeEnum& value) { SetFileMode(value); return *this;}
107 inline PutFileRequest& WithFileMode(FileModeTypeEnum&& value) { SetFileMode(std::move(value)); return *this;}
109
111
118 inline const Aws::String& GetParentCommitId() const{ return m_parentCommitId; }
119 inline bool ParentCommitIdHasBeenSet() const { return m_parentCommitIdHasBeenSet; }
120 inline void SetParentCommitId(const Aws::String& value) { m_parentCommitIdHasBeenSet = true; m_parentCommitId = value; }
121 inline void SetParentCommitId(Aws::String&& value) { m_parentCommitIdHasBeenSet = true; m_parentCommitId = std::move(value); }
122 inline void SetParentCommitId(const char* value) { m_parentCommitIdHasBeenSet = true; m_parentCommitId.assign(value); }
123 inline PutFileRequest& WithParentCommitId(const Aws::String& value) { SetParentCommitId(value); return *this;}
124 inline PutFileRequest& WithParentCommitId(Aws::String&& value) { SetParentCommitId(std::move(value)); return *this;}
125 inline PutFileRequest& WithParentCommitId(const char* value) { SetParentCommitId(value); return *this;}
127
129
133 inline const Aws::String& GetCommitMessage() const{ return m_commitMessage; }
134 inline bool CommitMessageHasBeenSet() const { return m_commitMessageHasBeenSet; }
135 inline void SetCommitMessage(const Aws::String& value) { m_commitMessageHasBeenSet = true; m_commitMessage = value; }
136 inline void SetCommitMessage(Aws::String&& value) { m_commitMessageHasBeenSet = true; m_commitMessage = std::move(value); }
137 inline void SetCommitMessage(const char* value) { m_commitMessageHasBeenSet = true; m_commitMessage.assign(value); }
138 inline PutFileRequest& WithCommitMessage(const Aws::String& value) { SetCommitMessage(value); return *this;}
139 inline PutFileRequest& WithCommitMessage(Aws::String&& value) { SetCommitMessage(std::move(value)); return *this;}
140 inline PutFileRequest& WithCommitMessage(const char* value) { SetCommitMessage(value); return *this;}
142
144
148 inline const Aws::String& GetName() const{ return m_name; }
149 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
150 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
151 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
152 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
153 inline PutFileRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
154 inline PutFileRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
155 inline PutFileRequest& WithName(const char* value) { SetName(value); return *this;}
157
159
162 inline const Aws::String& GetEmail() const{ return m_email; }
163 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
164 inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
165 inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
166 inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
167 inline PutFileRequest& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
168 inline PutFileRequest& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
169 inline PutFileRequest& WithEmail(const char* value) { SetEmail(value); return *this;}
171 private:
172
173 Aws::String m_repositoryName;
174 bool m_repositoryNameHasBeenSet = false;
175
176 Aws::String m_branchName;
177 bool m_branchNameHasBeenSet = false;
178
179 Aws::Utils::ByteBuffer m_fileContent;
180 bool m_fileContentHasBeenSet = false;
181
182 Aws::String m_filePath;
183 bool m_filePathHasBeenSet = false;
184
185 FileModeTypeEnum m_fileMode;
186 bool m_fileModeHasBeenSet = false;
187
188 Aws::String m_parentCommitId;
189 bool m_parentCommitIdHasBeenSet = false;
190
191 Aws::String m_commitMessage;
192 bool m_commitMessageHasBeenSet = false;
193
194 Aws::String m_name;
195 bool m_nameHasBeenSet = false;
196
197 Aws::String m_email;
198 bool m_emailHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace CodeCommit
203} // namespace Aws
void SetFileContent(const Aws::Utils::ByteBuffer &value)
PutFileRequest & WithFileMode(const FileModeTypeEnum &value)
void SetFileContent(Aws::Utils::ByteBuffer &&value)
void SetFilePath(Aws::String &&value)
PutFileRequest & WithEmail(Aws::String &&value)
PutFileRequest & WithCommitMessage(const Aws::String &value)
PutFileRequest & WithName(Aws::String &&value)
PutFileRequest & WithBranchName(const Aws::String &value)
void SetFileMode(const FileModeTypeEnum &value)
virtual const char * GetServiceRequestName() const override
PutFileRequest & WithCommitMessage(const char *value)
PutFileRequest & WithEmail(const Aws::String &value)
PutFileRequest & WithEmail(const char *value)
const Aws::String & GetName() const
const Aws::Utils::ByteBuffer & GetFileContent() const
PutFileRequest & WithCommitMessage(Aws::String &&value)
void SetBranchName(const char *value)
void SetFileMode(FileModeTypeEnum &&value)
PutFileRequest & WithName(const Aws::String &value)
void SetCommitMessage(const char *value)
PutFileRequest & WithRepositoryName(Aws::String &&value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutFileRequest & WithRepositoryName(const char *value)
void SetEmail(const Aws::String &value)
const Aws::String & GetParentCommitId() const
void SetParentCommitId(const char *value)
void SetParentCommitId(const Aws::String &value)
const Aws::String & GetCommitMessage() const
PutFileRequest & WithFilePath(Aws::String &&value)
void SetBranchName(Aws::String &&value)
PutFileRequest & WithFileContent(Aws::Utils::ByteBuffer &&value)
PutFileRequest & WithName(const char *value)
const Aws::String & GetBranchName() const
PutFileRequest & WithRepositoryName(const Aws::String &value)
PutFileRequest & WithBranchName(Aws::String &&value)
void SetCommitMessage(const Aws::String &value)
PutFileRequest & WithFileMode(FileModeTypeEnum &&value)
void SetBranchName(const Aws::String &value)
PutFileRequest & WithFileContent(const Aws::Utils::ByteBuffer &value)
PutFileRequest & WithBranchName(const char *value)
PutFileRequest & WithParentCommitId(const Aws::String &value)
PutFileRequest & WithParentCommitId(const char *value)
void SetParentCommitId(Aws::String &&value)
void SetCommitMessage(Aws::String &&value)
const Aws::String & GetFilePath() const
void SetRepositoryName(const Aws::String &value)
void SetFilePath(const Aws::String &value)
void SetName(const Aws::String &value)
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
void SetRepositoryName(Aws::String &&value)
const Aws::String & GetRepositoryName() const
const Aws::String & GetEmail() const
const FileModeTypeEnum & GetFileMode() const
PutFileRequest & WithFilePath(const char *value)
void SetRepositoryName(const char *value)
PutFileRequest & WithFilePath(const Aws::String &value)
PutFileRequest & WithParentCommitId(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String