AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
PutFileRequest.h
1
6#pragma once
7#include <aws/codecommit/CodeCommitRequest.h>
8#include <aws/codecommit/CodeCommit_EXPORTS.h>
9#include <aws/codecommit/model/FileModeTypeEnum.h>
10#include <aws/core/utils/Array.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CodeCommit {
17namespace Model {
18
22 public:
23 AWS_CODECOMMIT_API PutFileRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "PutFile"; }
30
31 AWS_CODECOMMIT_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
40 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
41 template <typename RepositoryNameT = Aws::String>
42 void SetRepositoryName(RepositoryNameT&& value) {
43 m_repositoryNameHasBeenSet = true;
44 m_repositoryName = std::forward<RepositoryNameT>(value);
45 }
46 template <typename RepositoryNameT = Aws::String>
47 PutFileRequest& WithRepositoryName(RepositoryNameT&& value) {
48 SetRepositoryName(std::forward<RepositoryNameT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetBranchName() const { return m_branchName; }
59 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
60 template <typename BranchNameT = Aws::String>
61 void SetBranchName(BranchNameT&& value) {
62 m_branchNameHasBeenSet = true;
63 m_branchName = std::forward<BranchNameT>(value);
64 }
65 template <typename BranchNameT = Aws::String>
66 PutFileRequest& WithBranchName(BranchNameT&& value) {
67 SetBranchName(std::forward<BranchNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::ByteBuffer& GetFileContent() const { return m_fileContent; }
77 inline bool FileContentHasBeenSet() const { return m_fileContentHasBeenSet; }
78 template <typename FileContentT = Aws::Utils::ByteBuffer>
79 void SetFileContent(FileContentT&& value) {
80 m_fileContentHasBeenSet = true;
81 m_fileContent = std::forward<FileContentT>(value);
82 }
83 template <typename FileContentT = Aws::Utils::ByteBuffer>
84 PutFileRequest& WithFileContent(FileContentT&& value) {
85 SetFileContent(std::forward<FileContentT>(value));
86 return *this;
87 }
89
91
97 inline const Aws::String& GetFilePath() const { return m_filePath; }
98 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
99 template <typename FilePathT = Aws::String>
100 void SetFilePath(FilePathT&& value) {
101 m_filePathHasBeenSet = true;
102 m_filePath = std::forward<FilePathT>(value);
103 }
104 template <typename FilePathT = Aws::String>
105 PutFileRequest& WithFilePath(FilePathT&& value) {
106 SetFilePath(std::forward<FilePathT>(value));
107 return *this;
108 }
110
112
116 inline FileModeTypeEnum GetFileMode() const { return m_fileMode; }
117 inline bool FileModeHasBeenSet() const { return m_fileModeHasBeenSet; }
118 inline void SetFileMode(FileModeTypeEnum value) {
119 m_fileModeHasBeenSet = true;
120 m_fileMode = value;
121 }
123 SetFileMode(value);
124 return *this;
125 }
127
129
136 inline const Aws::String& GetParentCommitId() const { return m_parentCommitId; }
137 inline bool ParentCommitIdHasBeenSet() const { return m_parentCommitIdHasBeenSet; }
138 template <typename ParentCommitIdT = Aws::String>
139 void SetParentCommitId(ParentCommitIdT&& value) {
140 m_parentCommitIdHasBeenSet = true;
141 m_parentCommitId = std::forward<ParentCommitIdT>(value);
142 }
143 template <typename ParentCommitIdT = Aws::String>
144 PutFileRequest& WithParentCommitId(ParentCommitIdT&& value) {
145 SetParentCommitId(std::forward<ParentCommitIdT>(value));
146 return *this;
147 }
149
151
155 inline const Aws::String& GetCommitMessage() const { return m_commitMessage; }
156 inline bool CommitMessageHasBeenSet() const { return m_commitMessageHasBeenSet; }
157 template <typename CommitMessageT = Aws::String>
158 void SetCommitMessage(CommitMessageT&& value) {
159 m_commitMessageHasBeenSet = true;
160 m_commitMessage = std::forward<CommitMessageT>(value);
161 }
162 template <typename CommitMessageT = Aws::String>
163 PutFileRequest& WithCommitMessage(CommitMessageT&& value) {
164 SetCommitMessage(std::forward<CommitMessageT>(value));
165 return *this;
166 }
168
170
174 inline const Aws::String& GetName() const { return m_name; }
175 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
176 template <typename NameT = Aws::String>
177 void SetName(NameT&& value) {
178 m_nameHasBeenSet = true;
179 m_name = std::forward<NameT>(value);
180 }
181 template <typename NameT = Aws::String>
182 PutFileRequest& WithName(NameT&& value) {
183 SetName(std::forward<NameT>(value));
184 return *this;
185 }
187
189
192 inline const Aws::String& GetEmail() const { return m_email; }
193 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
194 template <typename EmailT = Aws::String>
195 void SetEmail(EmailT&& value) {
196 m_emailHasBeenSet = true;
197 m_email = std::forward<EmailT>(value);
198 }
199 template <typename EmailT = Aws::String>
200 PutFileRequest& WithEmail(EmailT&& value) {
201 SetEmail(std::forward<EmailT>(value));
202 return *this;
203 }
205 private:
206 Aws::String m_repositoryName;
207
208 Aws::String m_branchName;
209
210 Aws::Utils::ByteBuffer m_fileContent{};
211
212 Aws::String m_filePath;
213
215
216 Aws::String m_parentCommitId;
217
218 Aws::String m_commitMessage;
219
220 Aws::String m_name;
221
222 Aws::String m_email;
223 bool m_repositoryNameHasBeenSet = false;
224 bool m_branchNameHasBeenSet = false;
225 bool m_fileContentHasBeenSet = false;
226 bool m_filePathHasBeenSet = false;
227 bool m_fileModeHasBeenSet = false;
228 bool m_parentCommitIdHasBeenSet = false;
229 bool m_commitMessageHasBeenSet = false;
230 bool m_nameHasBeenSet = false;
231 bool m_emailHasBeenSet = false;
232};
233
234} // namespace Model
235} // namespace CodeCommit
236} // namespace Aws
void SetCommitMessage(CommitMessageT &&value)
virtual const char * GetServiceRequestName() const override
PutFileRequest & WithParentCommitId(ParentCommitIdT &&value)
const Aws::String & GetName() const
const Aws::Utils::ByteBuffer & GetFileContent() const
PutFileRequest & WithName(NameT &&value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetParentCommitId() const
PutFileRequest & WithEmail(EmailT &&value)
const Aws::String & GetCommitMessage() const
const Aws::String & GetBranchName() const
void SetFileContent(FileContentT &&value)
PutFileRequest & WithFileContent(FileContentT &&value)
AWS_CODECOMMIT_API PutFileRequest()=default
const Aws::String & GetFilePath() const
void SetFileMode(FileModeTypeEnum value)
void SetBranchName(BranchNameT &&value)
PutFileRequest & WithFileMode(FileModeTypeEnum value)
PutFileRequest & WithFilePath(FilePathT &&value)
PutFileRequest & WithRepositoryName(RepositoryNameT &&value)
void SetParentCommitId(ParentCommitIdT &&value)
void SetRepositoryName(RepositoryNameT &&value)
PutFileRequest & WithCommitMessage(CommitMessageT &&value)
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
PutFileRequest & WithBranchName(BranchNameT &&value)
const Aws::String & GetRepositoryName() const
const Aws::String & GetEmail() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String