AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; }
52 inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); }
53 inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); }
54 inline PutFileEntry& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;}
55 inline PutFileEntry& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;}
56 inline PutFileEntry& WithFilePath(const char* value) { SetFilePath(value); return *this;}
58
60
64 inline const FileModeTypeEnum& GetFileMode() const{ return m_fileMode; }
65 inline bool FileModeHasBeenSet() const { return m_fileModeHasBeenSet; }
66 inline void SetFileMode(const FileModeTypeEnum& value) { m_fileModeHasBeenSet = true; m_fileMode = value; }
67 inline void SetFileMode(FileModeTypeEnum&& value) { m_fileModeHasBeenSet = true; m_fileMode = std::move(value); }
68 inline PutFileEntry& WithFileMode(const FileModeTypeEnum& value) { SetFileMode(value); return *this;}
69 inline PutFileEntry& WithFileMode(FileModeTypeEnum&& value) { SetFileMode(std::move(value)); return *this;}
71
73
76 inline const Aws::Utils::ByteBuffer& GetFileContent() const{ return m_fileContent; }
77 inline bool FileContentHasBeenSet() const { return m_fileContentHasBeenSet; }
78 inline void SetFileContent(const Aws::Utils::ByteBuffer& value) { m_fileContentHasBeenSet = true; m_fileContent = value; }
79 inline void SetFileContent(Aws::Utils::ByteBuffer&& value) { m_fileContentHasBeenSet = true; m_fileContent = std::move(value); }
80 inline PutFileEntry& WithFileContent(const Aws::Utils::ByteBuffer& value) { SetFileContent(value); return *this;}
81 inline PutFileEntry& WithFileContent(Aws::Utils::ByteBuffer&& value) { SetFileContent(std::move(value)); return *this;}
83
85
89 inline const SourceFileSpecifier& GetSourceFile() const{ return m_sourceFile; }
90 inline bool SourceFileHasBeenSet() const { return m_sourceFileHasBeenSet; }
91 inline void SetSourceFile(const SourceFileSpecifier& value) { m_sourceFileHasBeenSet = true; m_sourceFile = value; }
92 inline void SetSourceFile(SourceFileSpecifier&& value) { m_sourceFileHasBeenSet = true; m_sourceFile = std::move(value); }
93 inline PutFileEntry& WithSourceFile(const SourceFileSpecifier& value) { SetSourceFile(value); return *this;}
94 inline PutFileEntry& WithSourceFile(SourceFileSpecifier&& value) { SetSourceFile(std::move(value)); return *this;}
96 private:
97
98 Aws::String m_filePath;
99 bool m_filePathHasBeenSet = false;
100
101 FileModeTypeEnum m_fileMode;
102 bool m_fileModeHasBeenSet = false;
103
104 Aws::Utils::ByteBuffer m_fileContent;
105 bool m_fileContentHasBeenSet = false;
106
107 SourceFileSpecifier m_sourceFile;
108 bool m_sourceFileHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace CodeCommit
113} // namespace Aws
void SetFileContent(Aws::Utils::ByteBuffer &&value)
PutFileEntry & WithSourceFile(const SourceFileSpecifier &value)
AWS_CODECOMMIT_API PutFileEntry()
PutFileEntry & WithFileContent(const Aws::Utils::ByteBuffer &value)
void SetFilePath(const char *value)
void SetSourceFile(const SourceFileSpecifier &value)
const SourceFileSpecifier & GetSourceFile() const
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFileMode(const FileModeTypeEnum &value)
bool FilePathHasBeenSet() const
void SetSourceFile(SourceFileSpecifier &&value)
bool SourceFileHasBeenSet() const
bool FileModeHasBeenSet() const
const FileModeTypeEnum & GetFileMode() const
bool FileContentHasBeenSet() const
AWS_CODECOMMIT_API PutFileEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
PutFileEntry & WithFileContent(Aws::Utils::ByteBuffer &&value)
PutFileEntry & WithFilePath(const Aws::String &value)
PutFileEntry & WithFileMode(const FileModeTypeEnum &value)
void SetFileMode(FileModeTypeEnum &&value)
PutFileEntry & WithFilePath(const char *value)
void SetFilePath(const Aws::String &value)
void SetFilePath(Aws::String &&value)
PutFileEntry & WithSourceFile(SourceFileSpecifier &&value)
const Aws::Utils::ByteBuffer & GetFileContent() const
void SetFileContent(const Aws::Utils::ByteBuffer &value)
PutFileEntry & WithFileMode(FileModeTypeEnum &&value)
PutFileEntry & WithFilePath(Aws::String &&value)
AWS_CODECOMMIT_API PutFileEntry(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFilePath() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue