AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
DeleteFileRequest.h
1
6#pragma once
7#include <aws/codecommit/CodeCommitRequest.h>
8#include <aws/codecommit/CodeCommit_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CodeCommit {
15namespace Model {
16
20 public:
21 AWS_CODECOMMIT_API DeleteFileRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "DeleteFile"; }
28
29 AWS_CODECOMMIT_API Aws::String SerializePayload() const override;
30
32
34
37 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
38 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
39 template <typename RepositoryNameT = Aws::String>
40 void SetRepositoryName(RepositoryNameT&& value) {
41 m_repositoryNameHasBeenSet = true;
42 m_repositoryName = std::forward<RepositoryNameT>(value);
43 }
44 template <typename RepositoryNameT = Aws::String>
45 DeleteFileRequest& WithRepositoryName(RepositoryNameT&& value) {
46 SetRepositoryName(std::forward<RepositoryNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetBranchName() const { return m_branchName; }
56 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
57 template <typename BranchNameT = Aws::String>
58 void SetBranchName(BranchNameT&& value) {
59 m_branchNameHasBeenSet = true;
60 m_branchName = std::forward<BranchNameT>(value);
61 }
62 template <typename BranchNameT = Aws::String>
63 DeleteFileRequest& WithBranchName(BranchNameT&& value) {
64 SetBranchName(std::forward<BranchNameT>(value));
65 return *this;
66 }
68
70
75 inline const Aws::String& GetFilePath() const { return m_filePath; }
76 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
77 template <typename FilePathT = Aws::String>
78 void SetFilePath(FilePathT&& value) {
79 m_filePathHasBeenSet = true;
80 m_filePath = std::forward<FilePathT>(value);
81 }
82 template <typename FilePathT = Aws::String>
83 DeleteFileRequest& WithFilePath(FilePathT&& value) {
84 SetFilePath(std::forward<FilePathT>(value));
85 return *this;
86 }
88
90
95 inline const Aws::String& GetParentCommitId() const { return m_parentCommitId; }
96 inline bool ParentCommitIdHasBeenSet() const { return m_parentCommitIdHasBeenSet; }
97 template <typename ParentCommitIdT = Aws::String>
98 void SetParentCommitId(ParentCommitIdT&& value) {
99 m_parentCommitIdHasBeenSet = true;
100 m_parentCommitId = std::forward<ParentCommitIdT>(value);
101 }
102 template <typename ParentCommitIdT = Aws::String>
103 DeleteFileRequest& WithParentCommitId(ParentCommitIdT&& value) {
104 SetParentCommitId(std::forward<ParentCommitIdT>(value));
105 return *this;
106 }
108
110
118 inline bool GetKeepEmptyFolders() const { return m_keepEmptyFolders; }
119 inline bool KeepEmptyFoldersHasBeenSet() const { return m_keepEmptyFoldersHasBeenSet; }
120 inline void SetKeepEmptyFolders(bool value) {
121 m_keepEmptyFoldersHasBeenSet = true;
122 m_keepEmptyFolders = value;
123 }
125 SetKeepEmptyFolders(value);
126 return *this;
127 }
129
131
136 inline const Aws::String& GetCommitMessage() const { return m_commitMessage; }
137 inline bool CommitMessageHasBeenSet() const { return m_commitMessageHasBeenSet; }
138 template <typename CommitMessageT = Aws::String>
139 void SetCommitMessage(CommitMessageT&& value) {
140 m_commitMessageHasBeenSet = true;
141 m_commitMessage = std::forward<CommitMessageT>(value);
142 }
143 template <typename CommitMessageT = Aws::String>
144 DeleteFileRequest& WithCommitMessage(CommitMessageT&& value) {
145 SetCommitMessage(std::forward<CommitMessageT>(value));
146 return *this;
147 }
149
151
155 inline const Aws::String& GetName() const { return m_name; }
156 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
157 template <typename NameT = Aws::String>
158 void SetName(NameT&& value) {
159 m_nameHasBeenSet = true;
160 m_name = std::forward<NameT>(value);
161 }
162 template <typename NameT = Aws::String>
163 DeleteFileRequest& WithName(NameT&& value) {
164 SetName(std::forward<NameT>(value));
165 return *this;
166 }
168
170
174 inline const Aws::String& GetEmail() const { return m_email; }
175 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
176 template <typename EmailT = Aws::String>
177 void SetEmail(EmailT&& value) {
178 m_emailHasBeenSet = true;
179 m_email = std::forward<EmailT>(value);
180 }
181 template <typename EmailT = Aws::String>
182 DeleteFileRequest& WithEmail(EmailT&& value) {
183 SetEmail(std::forward<EmailT>(value));
184 return *this;
185 }
187 private:
188 Aws::String m_repositoryName;
189
190 Aws::String m_branchName;
191
192 Aws::String m_filePath;
193
194 Aws::String m_parentCommitId;
195
196 bool m_keepEmptyFolders{false};
197
198 Aws::String m_commitMessage;
199
200 Aws::String m_name;
201
202 Aws::String m_email;
203 bool m_repositoryNameHasBeenSet = false;
204 bool m_branchNameHasBeenSet = false;
205 bool m_filePathHasBeenSet = false;
206 bool m_parentCommitIdHasBeenSet = false;
207 bool m_keepEmptyFoldersHasBeenSet = false;
208 bool m_commitMessageHasBeenSet = false;
209 bool m_nameHasBeenSet = false;
210 bool m_emailHasBeenSet = false;
211};
212
213} // namespace Model
214} // namespace CodeCommit
215} // namespace Aws
const Aws::String & GetCommitMessage() const
void SetRepositoryName(RepositoryNameT &&value)
DeleteFileRequest & WithBranchName(BranchNameT &&value)
DeleteFileRequest & WithCommitMessage(CommitMessageT &&value)
void SetCommitMessage(CommitMessageT &&value)
DeleteFileRequest & WithParentCommitId(ParentCommitIdT &&value)
virtual const char * GetServiceRequestName() const override
DeleteFileRequest & WithFilePath(FilePathT &&value)
const Aws::String & GetRepositoryName() const
void SetParentCommitId(ParentCommitIdT &&value)
const Aws::String & GetParentCommitId() const
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
DeleteFileRequest & WithRepositoryName(RepositoryNameT &&value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DeleteFileRequest & WithEmail(EmailT &&value)
DeleteFileRequest & WithKeepEmptyFolders(bool value)
DeleteFileRequest & WithName(NameT &&value)
AWS_CODECOMMIT_API DeleteFileRequest()=default
const Aws::String & GetBranchName() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String