AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
PutFileEntry.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/model/FileModeTypeEnum.h>
9#include <aws/codecommit/model/SourceFileSpecifier.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 Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeCommit {
23namespace Model {
24
32 public:
33 AWS_CODECOMMIT_API PutFileEntry() = default;
34 AWS_CODECOMMIT_API PutFileEntry(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CODECOMMIT_API PutFileEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetFilePath() const { return m_filePath; }
44 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
45 template <typename FilePathT = Aws::String>
46 void SetFilePath(FilePathT&& value) {
47 m_filePathHasBeenSet = true;
48 m_filePath = std::forward<FilePathT>(value);
49 }
50 template <typename FilePathT = Aws::String>
51 PutFileEntry& WithFilePath(FilePathT&& value) {
52 SetFilePath(std::forward<FilePathT>(value));
53 return *this;
54 }
56
58
62 inline FileModeTypeEnum GetFileMode() const { return m_fileMode; }
63 inline bool FileModeHasBeenSet() const { return m_fileModeHasBeenSet; }
64 inline void SetFileMode(FileModeTypeEnum value) {
65 m_fileModeHasBeenSet = true;
66 m_fileMode = value;
67 }
69 SetFileMode(value);
70 return *this;
71 }
73
75
78 inline const Aws::Utils::ByteBuffer& GetFileContent() const { return m_fileContent; }
79 inline bool FileContentHasBeenSet() const { return m_fileContentHasBeenSet; }
80 template <typename FileContentT = Aws::Utils::ByteBuffer>
81 void SetFileContent(FileContentT&& value) {
82 m_fileContentHasBeenSet = true;
83 m_fileContent = std::forward<FileContentT>(value);
84 }
85 template <typename FileContentT = Aws::Utils::ByteBuffer>
86 PutFileEntry& WithFileContent(FileContentT&& value) {
87 SetFileContent(std::forward<FileContentT>(value));
88 return *this;
89 }
91
93
97 inline const SourceFileSpecifier& GetSourceFile() const { return m_sourceFile; }
98 inline bool SourceFileHasBeenSet() const { return m_sourceFileHasBeenSet; }
99 template <typename SourceFileT = SourceFileSpecifier>
100 void SetSourceFile(SourceFileT&& value) {
101 m_sourceFileHasBeenSet = true;
102 m_sourceFile = std::forward<SourceFileT>(value);
103 }
104 template <typename SourceFileT = SourceFileSpecifier>
105 PutFileEntry& WithSourceFile(SourceFileT&& value) {
106 SetSourceFile(std::forward<SourceFileT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_filePath;
112
114
115 Aws::Utils::ByteBuffer m_fileContent{};
116
117 SourceFileSpecifier m_sourceFile;
118 bool m_filePathHasBeenSet = false;
119 bool m_fileModeHasBeenSet = false;
120 bool m_fileContentHasBeenSet = false;
121 bool m_sourceFileHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace CodeCommit
126} // namespace Aws
PutFileEntry & WithFileMode(FileModeTypeEnum value)
const SourceFileSpecifier & GetSourceFile() const
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODECOMMIT_API PutFileEntry()=default
PutFileEntry & WithFileContent(FileContentT &&value)
bool FilePathHasBeenSet() const
bool SourceFileHasBeenSet() const
bool FileModeHasBeenSet() const
bool FileContentHasBeenSet() const
PutFileEntry & WithSourceFile(SourceFileT &&value)
void SetFileMode(FileModeTypeEnum value)
AWS_CODECOMMIT_API PutFileEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSourceFile(SourceFileT &&value)
void SetFilePath(FilePathT &&value)
const Aws::Utils::ByteBuffer & GetFileContent() const
FileModeTypeEnum GetFileMode() const
PutFileEntry & WithFilePath(FilePathT &&value)
AWS_CODECOMMIT_API PutFileEntry(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFilePath() const
void SetFileContent(FileContentT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue