AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeleteFileRequest.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 <utility>
11
12namespace Aws
13{
14namespace CodeCommit
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_CODECOMMIT_API DeleteFileRequest();
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "DeleteFile"; }
31
32 AWS_CODECOMMIT_API Aws::String SerializePayload() const override;
33
35
36
38
41 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
42 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
43 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
44 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
45 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
46 inline DeleteFileRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
47 inline DeleteFileRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
48 inline DeleteFileRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
50
52
55 inline const Aws::String& GetBranchName() const{ return m_branchName; }
56 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
57 inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; }
58 inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); }
59 inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); }
60 inline DeleteFileRequest& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;}
61 inline DeleteFileRequest& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;}
62 inline DeleteFileRequest& WithBranchName(const char* value) { SetBranchName(value); return *this;}
64
66
71 inline const Aws::String& GetFilePath() const{ return m_filePath; }
72 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
73 inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; }
74 inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); }
75 inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); }
76 inline DeleteFileRequest& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;}
77 inline DeleteFileRequest& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;}
78 inline DeleteFileRequest& WithFilePath(const char* value) { SetFilePath(value); return *this;}
80
82
87 inline const Aws::String& GetParentCommitId() const{ return m_parentCommitId; }
88 inline bool ParentCommitIdHasBeenSet() const { return m_parentCommitIdHasBeenSet; }
89 inline void SetParentCommitId(const Aws::String& value) { m_parentCommitIdHasBeenSet = true; m_parentCommitId = value; }
90 inline void SetParentCommitId(Aws::String&& value) { m_parentCommitIdHasBeenSet = true; m_parentCommitId = std::move(value); }
91 inline void SetParentCommitId(const char* value) { m_parentCommitIdHasBeenSet = true; m_parentCommitId.assign(value); }
92 inline DeleteFileRequest& WithParentCommitId(const Aws::String& value) { SetParentCommitId(value); return *this;}
93 inline DeleteFileRequest& WithParentCommitId(Aws::String&& value) { SetParentCommitId(std::move(value)); return *this;}
94 inline DeleteFileRequest& WithParentCommitId(const char* value) { SetParentCommitId(value); return *this;}
96
98
106 inline bool GetKeepEmptyFolders() const{ return m_keepEmptyFolders; }
107 inline bool KeepEmptyFoldersHasBeenSet() const { return m_keepEmptyFoldersHasBeenSet; }
108 inline void SetKeepEmptyFolders(bool value) { m_keepEmptyFoldersHasBeenSet = true; m_keepEmptyFolders = value; }
109 inline DeleteFileRequest& WithKeepEmptyFolders(bool value) { SetKeepEmptyFolders(value); return *this;}
111
113
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 DeleteFileRequest& WithCommitMessage(const Aws::String& value) { SetCommitMessage(value); return *this;}
124 inline DeleteFileRequest& WithCommitMessage(Aws::String&& value) { SetCommitMessage(std::move(value)); return *this;}
125 inline DeleteFileRequest& WithCommitMessage(const char* value) { SetCommitMessage(value); return *this;}
127
129
133 inline const Aws::String& GetName() const{ return m_name; }
134 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
135 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
136 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
137 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
138 inline DeleteFileRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
139 inline DeleteFileRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
140 inline DeleteFileRequest& WithName(const char* value) { SetName(value); return *this;}
142
144
148 inline const Aws::String& GetEmail() const{ return m_email; }
149 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
150 inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
151 inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
152 inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
153 inline DeleteFileRequest& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
154 inline DeleteFileRequest& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
155 inline DeleteFileRequest& WithEmail(const char* value) { SetEmail(value); return *this;}
157 private:
158
159 Aws::String m_repositoryName;
160 bool m_repositoryNameHasBeenSet = false;
161
162 Aws::String m_branchName;
163 bool m_branchNameHasBeenSet = false;
164
165 Aws::String m_filePath;
166 bool m_filePathHasBeenSet = false;
167
168 Aws::String m_parentCommitId;
169 bool m_parentCommitIdHasBeenSet = false;
170
171 bool m_keepEmptyFolders;
172 bool m_keepEmptyFoldersHasBeenSet = false;
173
174 Aws::String m_commitMessage;
175 bool m_commitMessageHasBeenSet = false;
176
177 Aws::String m_name;
178 bool m_nameHasBeenSet = false;
179
180 Aws::String m_email;
181 bool m_emailHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace CodeCommit
186} // namespace Aws
const Aws::String & GetCommitMessage() const
DeleteFileRequest & WithFilePath(const char *value)
DeleteFileRequest & WithRepositoryName(const Aws::String &value)
DeleteFileRequest & WithEmail(const Aws::String &value)
DeleteFileRequest & WithRepositoryName(const char *value)
DeleteFileRequest & WithName(const Aws::String &value)
void SetEmail(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetBranchName(const Aws::String &value)
DeleteFileRequest & WithBranchName(Aws::String &&value)
void SetFilePath(const Aws::String &value)
void SetCommitMessage(const Aws::String &value)
DeleteFileRequest & WithCommitMessage(Aws::String &&value)
void SetRepositoryName(const Aws::String &value)
const Aws::String & GetRepositoryName() const
DeleteFileRequest & WithFilePath(Aws::String &&value)
DeleteFileRequest & WithCommitMessage(const char *value)
DeleteFileRequest & WithName(Aws::String &&value)
const Aws::String & GetParentCommitId() const
DeleteFileRequest & WithBranchName(const Aws::String &value)
DeleteFileRequest & WithEmail(const char *value)
DeleteFileRequest & WithEmail(Aws::String &&value)
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
DeleteFileRequest & WithFilePath(const Aws::String &value)
DeleteFileRequest & WithBranchName(const char *value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetName(const Aws::String &value)
DeleteFileRequest & WithParentCommitId(Aws::String &&value)
DeleteFileRequest & WithParentCommitId(const Aws::String &value)
DeleteFileRequest & WithParentCommitId(const char *value)
void SetParentCommitId(const Aws::String &value)
DeleteFileRequest & WithName(const char *value)
DeleteFileRequest & WithRepositoryName(Aws::String &&value)
DeleteFileRequest & WithKeepEmptyFolders(bool value)
DeleteFileRequest & WithCommitMessage(const Aws::String &value)
const Aws::String & GetBranchName() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String