AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename RepositoryNameT = Aws::String>
46 void SetRepositoryName(RepositoryNameT&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
47 template<typename RepositoryNameT = Aws::String>
48 PutFileRequest& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
50
52
56 inline const Aws::String& GetBranchName() const { return m_branchName; }
57 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
58 template<typename BranchNameT = Aws::String>
59 void SetBranchName(BranchNameT&& value) { m_branchNameHasBeenSet = true; m_branchName = std::forward<BranchNameT>(value); }
60 template<typename BranchNameT = Aws::String>
61 PutFileRequest& WithBranchName(BranchNameT&& value) { SetBranchName(std::forward<BranchNameT>(value)); return *this;}
63
65
68 inline const Aws::Utils::ByteBuffer& GetFileContent() const { return m_fileContent; }
69 inline bool FileContentHasBeenSet() const { return m_fileContentHasBeenSet; }
70 template<typename FileContentT = Aws::Utils::ByteBuffer>
71 void SetFileContent(FileContentT&& value) { m_fileContentHasBeenSet = true; m_fileContent = std::forward<FileContentT>(value); }
72 template<typename FileContentT = Aws::Utils::ByteBuffer>
73 PutFileRequest& WithFileContent(FileContentT&& value) { SetFileContent(std::forward<FileContentT>(value)); return *this;}
75
77
83 inline const Aws::String& GetFilePath() const { return m_filePath; }
84 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
85 template<typename FilePathT = Aws::String>
86 void SetFilePath(FilePathT&& value) { m_filePathHasBeenSet = true; m_filePath = std::forward<FilePathT>(value); }
87 template<typename FilePathT = Aws::String>
88 PutFileRequest& WithFilePath(FilePathT&& value) { SetFilePath(std::forward<FilePathT>(value)); return *this;}
90
92
96 inline FileModeTypeEnum GetFileMode() const { return m_fileMode; }
97 inline bool FileModeHasBeenSet() const { return m_fileModeHasBeenSet; }
98 inline void SetFileMode(FileModeTypeEnum value) { m_fileModeHasBeenSet = true; m_fileMode = value; }
99 inline PutFileRequest& WithFileMode(FileModeTypeEnum value) { SetFileMode(value); return *this;}
101
103
110 inline const Aws::String& GetParentCommitId() const { return m_parentCommitId; }
111 inline bool ParentCommitIdHasBeenSet() const { return m_parentCommitIdHasBeenSet; }
112 template<typename ParentCommitIdT = Aws::String>
113 void SetParentCommitId(ParentCommitIdT&& value) { m_parentCommitIdHasBeenSet = true; m_parentCommitId = std::forward<ParentCommitIdT>(value); }
114 template<typename ParentCommitIdT = Aws::String>
115 PutFileRequest& WithParentCommitId(ParentCommitIdT&& value) { SetParentCommitId(std::forward<ParentCommitIdT>(value)); return *this;}
117
119
123 inline const Aws::String& GetCommitMessage() const { return m_commitMessage; }
124 inline bool CommitMessageHasBeenSet() const { return m_commitMessageHasBeenSet; }
125 template<typename CommitMessageT = Aws::String>
126 void SetCommitMessage(CommitMessageT&& value) { m_commitMessageHasBeenSet = true; m_commitMessage = std::forward<CommitMessageT>(value); }
127 template<typename CommitMessageT = Aws::String>
128 PutFileRequest& WithCommitMessage(CommitMessageT&& value) { SetCommitMessage(std::forward<CommitMessageT>(value)); return *this;}
130
132
136 inline const Aws::String& GetName() const { return m_name; }
137 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
138 template<typename NameT = Aws::String>
139 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
140 template<typename NameT = Aws::String>
141 PutFileRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
143
145
148 inline const Aws::String& GetEmail() const { return m_email; }
149 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
150 template<typename EmailT = Aws::String>
151 void SetEmail(EmailT&& value) { m_emailHasBeenSet = true; m_email = std::forward<EmailT>(value); }
152 template<typename EmailT = Aws::String>
153 PutFileRequest& WithEmail(EmailT&& value) { SetEmail(std::forward<EmailT>(value)); return *this;}
155 private:
156
157 Aws::String m_repositoryName;
158 bool m_repositoryNameHasBeenSet = false;
159
160 Aws::String m_branchName;
161 bool m_branchNameHasBeenSet = false;
162
163 Aws::Utils::ByteBuffer m_fileContent{};
164 bool m_fileContentHasBeenSet = false;
165
166 Aws::String m_filePath;
167 bool m_filePathHasBeenSet = false;
168
170 bool m_fileModeHasBeenSet = false;
171
172 Aws::String m_parentCommitId;
173 bool m_parentCommitIdHasBeenSet = false;
174
175 Aws::String m_commitMessage;
176 bool m_commitMessageHasBeenSet = false;
177
178 Aws::String m_name;
179 bool m_nameHasBeenSet = false;
180
181 Aws::String m_email;
182 bool m_emailHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace CodeCommit
187} // 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
FileModeTypeEnum GetFileMode() 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