AWS SDK for C++  1.8.152
AWS SDK for C++
PutFileEntry.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/core/utils/Array.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace CodeCommit
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
48  inline const Aws::String& GetFilePath() const{ return m_filePath; }
49 
54  inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
55 
60  inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; }
61 
66  inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); }
67 
72  inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); }
73 
78  inline PutFileEntry& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;}
79 
84  inline PutFileEntry& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;}
85 
90  inline PutFileEntry& WithFilePath(const char* value) { SetFilePath(value); return *this;}
91 
92 
97  inline const FileModeTypeEnum& GetFileMode() const{ return m_fileMode; }
98 
103  inline bool FileModeHasBeenSet() const { return m_fileModeHasBeenSet; }
104 
109  inline void SetFileMode(const FileModeTypeEnum& value) { m_fileModeHasBeenSet = true; m_fileMode = value; }
110 
115  inline void SetFileMode(FileModeTypeEnum&& value) { m_fileModeHasBeenSet = true; m_fileMode = std::move(value); }
116 
121  inline PutFileEntry& WithFileMode(const FileModeTypeEnum& value) { SetFileMode(value); return *this;}
122 
127  inline PutFileEntry& WithFileMode(FileModeTypeEnum&& value) { SetFileMode(std::move(value)); return *this;}
128 
129 
133  inline const Aws::Utils::ByteBuffer& GetFileContent() const{ return m_fileContent; }
134 
138  inline bool FileContentHasBeenSet() const { return m_fileContentHasBeenSet; }
139 
143  inline void SetFileContent(const Aws::Utils::ByteBuffer& value) { m_fileContentHasBeenSet = true; m_fileContent = value; }
144 
148  inline void SetFileContent(Aws::Utils::ByteBuffer&& value) { m_fileContentHasBeenSet = true; m_fileContent = std::move(value); }
149 
153  inline PutFileEntry& WithFileContent(const Aws::Utils::ByteBuffer& value) { SetFileContent(value); return *this;}
154 
158  inline PutFileEntry& WithFileContent(Aws::Utils::ByteBuffer&& value) { SetFileContent(std::move(value)); return *this;}
159 
160 
165  inline const SourceFileSpecifier& GetSourceFile() const{ return m_sourceFile; }
166 
171  inline bool SourceFileHasBeenSet() const { return m_sourceFileHasBeenSet; }
172 
177  inline void SetSourceFile(const SourceFileSpecifier& value) { m_sourceFileHasBeenSet = true; m_sourceFile = value; }
178 
183  inline void SetSourceFile(SourceFileSpecifier&& value) { m_sourceFileHasBeenSet = true; m_sourceFile = std::move(value); }
184 
189  inline PutFileEntry& WithSourceFile(const SourceFileSpecifier& value) { SetSourceFile(value); return *this;}
190 
195  inline PutFileEntry& WithSourceFile(SourceFileSpecifier&& value) { SetSourceFile(std::move(value)); return *this;}
196 
197  private:
198 
199  Aws::String m_filePath;
200  bool m_filePathHasBeenSet;
201 
202  FileModeTypeEnum m_fileMode;
203  bool m_fileModeHasBeenSet;
204 
205  Aws::Utils::ByteBuffer m_fileContent;
206  bool m_fileContentHasBeenSet;
207 
208  SourceFileSpecifier m_sourceFile;
209  bool m_sourceFileHasBeenSet;
210  };
211 
212 } // namespace Model
213 } // namespace CodeCommit
214 } // namespace Aws
Aws::CodeCommit::Model::PutFileEntry
Definition: PutFileEntry.h:36
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::PutFileEntry::FileContentHasBeenSet
bool FileContentHasBeenSet() const
Definition: PutFileEntry.h:138
Aws::CodeCommit::Model::PutFileEntry::WithFilePath
PutFileEntry & WithFilePath(const char *value)
Definition: PutFileEntry.h:90
Aws::CodeCommit::Model::PutFileEntry::PutFileEntry
PutFileEntry(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::PutFileEntry::GetFilePath
const Aws::String & GetFilePath() const
Definition: PutFileEntry.h:48
Aws::CodeCommit::Model::PutFileEntry::WithFileMode
PutFileEntry & WithFileMode(const FileModeTypeEnum &value)
Definition: PutFileEntry.h:121
Aws::CodeCommit::Model::PutFileEntry::SetFileMode
void SetFileMode(FileModeTypeEnum &&value)
Definition: PutFileEntry.h:115
Aws::CodeCommit::Model::PutFileEntry::WithFileMode
PutFileEntry & WithFileMode(FileModeTypeEnum &&value)
Definition: PutFileEntry.h:127
FileModeTypeEnum.h
Aws::CodeCommit::Model::PutFileEntry::SetSourceFile
void SetSourceFile(SourceFileSpecifier &&value)
Definition: PutFileEntry.h:183
Aws::CodeCommit::Model::PutFileEntry::WithSourceFile
PutFileEntry & WithSourceFile(const SourceFileSpecifier &value)
Definition: PutFileEntry.h:189
SourceFileSpecifier.h
Aws::CodeCommit::Model::PutFileEntry::WithFileContent
PutFileEntry & WithFileContent(Aws::Utils::ByteBuffer &&value)
Definition: PutFileEntry.h:158
Aws::CodeCommit::Model::PutFileEntry::PutFileEntry
PutFileEntry()
Aws::CodeCommit::Model::PutFileEntry::SetFileContent
void SetFileContent(const Aws::Utils::ByteBuffer &value)
Definition: PutFileEntry.h:143
Aws::CodeCommit::Model::PutFileEntry::WithSourceFile
PutFileEntry & WithSourceFile(SourceFileSpecifier &&value)
Definition: PutFileEntry.h:195
Aws::CodeCommit::Model::PutFileEntry::SetFilePath
void SetFilePath(const Aws::String &value)
Definition: PutFileEntry.h:60
Aws::CodeCommit::Model::PutFileEntry::GetFileMode
const FileModeTypeEnum & GetFileMode() const
Definition: PutFileEntry.h:97
Aws::CodeCommit::Model::PutFileEntry::SetFilePath
void SetFilePath(const char *value)
Definition: PutFileEntry.h:72
Aws::CodeCommit::Model::PutFileEntry::SetFileMode
void SetFileMode(const FileModeTypeEnum &value)
Definition: PutFileEntry.h:109
Aws::CodeCommit::Model::PutFileEntry::SourceFileHasBeenSet
bool SourceFileHasBeenSet() const
Definition: PutFileEntry.h:171
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Array< unsigned char >
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::CodeCommit::Model::FileModeTypeEnum
FileModeTypeEnum
Definition: FileModeTypeEnum.h:17
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::PutFileEntry::SetFileContent
void SetFileContent(Aws::Utils::ByteBuffer &&value)
Definition: PutFileEntry.h:148
Aws::CodeCommit::Model::PutFileEntry::SetSourceFile
void SetSourceFile(const SourceFileSpecifier &value)
Definition: PutFileEntry.h:177
Aws::CodeCommit::Model::PutFileEntry::GetFileContent
const Aws::Utils::ByteBuffer & GetFileContent() const
Definition: PutFileEntry.h:133
Aws::CodeCommit::Model::PutFileEntry::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodeCommit::Model::PutFileEntry::WithFilePath
PutFileEntry & WithFilePath(const Aws::String &value)
Definition: PutFileEntry.h:78
Aws
Definition: AccessManagementClient.h:15
Array.h
Aws::CodeCommit::Model::PutFileEntry::FilePathHasBeenSet
bool FilePathHasBeenSet() const
Definition: PutFileEntry.h:54
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::PutFileEntry::WithFilePath
PutFileEntry & WithFilePath(Aws::String &&value)
Definition: PutFileEntry.h:84
Aws::CodeCommit::Model::PutFileEntry::GetSourceFile
const SourceFileSpecifier & GetSourceFile() const
Definition: PutFileEntry.h:165
Aws::CodeCommit::Model::PutFileEntry::FileModeHasBeenSet
bool FileModeHasBeenSet() const
Definition: PutFileEntry.h:103
Aws::CodeCommit::Model::SourceFileSpecifier
Definition: SourceFileSpecifier.h:33
Aws::CodeCommit::Model::PutFileEntry::WithFileContent
PutFileEntry & WithFileContent(const Aws::Utils::ByteBuffer &value)
Definition: PutFileEntry.h:153
Aws::CodeCommit::Model::PutFileEntry::operator=
PutFileEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::PutFileEntry::SetFilePath
void SetFilePath(Aws::String &&value)
Definition: PutFileEntry.h:66