AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PutFileEntry.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codecommit/model/FileModeTypeEnum.h>
10#include <aws/core/utils/Array.h>
11#include <aws/codecommit/model/SourceFileSpecifier.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodeCommit
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_CODECOMMIT_API PutFileEntry() = default;
39 AWS_CODECOMMIT_API PutFileEntry(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODECOMMIT_API PutFileEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetFilePath() const { return m_filePath; }
50 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
51 template<typename FilePathT = Aws::String>
52 void SetFilePath(FilePathT&& value) { m_filePathHasBeenSet = true; m_filePath = std::forward<FilePathT>(value); }
53 template<typename FilePathT = Aws::String>
54 PutFileEntry& WithFilePath(FilePathT&& value) { SetFilePath(std::forward<FilePathT>(value)); return *this;}
56
58
62 inline FileModeTypeEnum GetFileMode() const { return m_fileMode; }
63 inline bool FileModeHasBeenSet() const { return m_fileModeHasBeenSet; }
64 inline void SetFileMode(FileModeTypeEnum value) { m_fileModeHasBeenSet = true; m_fileMode = value; }
65 inline PutFileEntry& WithFileMode(FileModeTypeEnum value) { SetFileMode(value); return *this;}
67
69
72 inline const Aws::Utils::ByteBuffer& GetFileContent() const { return m_fileContent; }
73 inline bool FileContentHasBeenSet() const { return m_fileContentHasBeenSet; }
74 template<typename FileContentT = Aws::Utils::ByteBuffer>
75 void SetFileContent(FileContentT&& value) { m_fileContentHasBeenSet = true; m_fileContent = std::forward<FileContentT>(value); }
76 template<typename FileContentT = Aws::Utils::ByteBuffer>
77 PutFileEntry& WithFileContent(FileContentT&& value) { SetFileContent(std::forward<FileContentT>(value)); return *this;}
79
81
85 inline const SourceFileSpecifier& GetSourceFile() const { return m_sourceFile; }
86 inline bool SourceFileHasBeenSet() const { return m_sourceFileHasBeenSet; }
87 template<typename SourceFileT = SourceFileSpecifier>
88 void SetSourceFile(SourceFileT&& value) { m_sourceFileHasBeenSet = true; m_sourceFile = std::forward<SourceFileT>(value); }
89 template<typename SourceFileT = SourceFileSpecifier>
90 PutFileEntry& WithSourceFile(SourceFileT&& value) { SetSourceFile(std::forward<SourceFileT>(value)); return *this;}
92 private:
93
94 Aws::String m_filePath;
95 bool m_filePathHasBeenSet = false;
96
98 bool m_fileModeHasBeenSet = false;
99
100 Aws::Utils::ByteBuffer m_fileContent{};
101 bool m_fileContentHasBeenSet = false;
102
103 SourceFileSpecifier m_sourceFile;
104 bool m_sourceFileHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace CodeCommit
109} // 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