AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ReplaceContentEntry.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/model/FileModeTypeEnum.h>
9#include <aws/codecommit/model/ReplacementTypeEnum.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 ReplaceContentEntry() = default;
34 AWS_CODECOMMIT_API ReplaceContentEntry(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetFilePath() const { return m_filePath; }
43 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
44 template <typename FilePathT = Aws::String>
45 void SetFilePath(FilePathT&& value) {
46 m_filePathHasBeenSet = true;
47 m_filePath = std::forward<FilePathT>(value);
48 }
49 template <typename FilePathT = Aws::String>
50 ReplaceContentEntry& WithFilePath(FilePathT&& value) {
51 SetFilePath(std::forward<FilePathT>(value));
52 return *this;
53 }
55
57
60 inline ReplacementTypeEnum GetReplacementType() const { return m_replacementType; }
61 inline bool ReplacementTypeHasBeenSet() const { return m_replacementTypeHasBeenSet; }
63 m_replacementTypeHasBeenSet = true;
64 m_replacementType = value;
65 }
67 SetReplacementType(value);
68 return *this;
69 }
71
73
77 inline const Aws::Utils::ByteBuffer& GetContent() const { return m_content; }
78 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
79 template <typename ContentT = Aws::Utils::ByteBuffer>
80 void SetContent(ContentT&& value) {
81 m_contentHasBeenSet = true;
82 m_content = std::forward<ContentT>(value);
83 }
84 template <typename ContentT = Aws::Utils::ByteBuffer>
85 ReplaceContentEntry& WithContent(ContentT&& value) {
86 SetContent(std::forward<ContentT>(value));
87 return *this;
88 }
90
92
95 inline FileModeTypeEnum GetFileMode() const { return m_fileMode; }
96 inline bool FileModeHasBeenSet() const { return m_fileModeHasBeenSet; }
97 inline void SetFileMode(FileModeTypeEnum value) {
98 m_fileModeHasBeenSet = true;
99 m_fileMode = value;
100 }
102 SetFileMode(value);
103 return *this;
104 }
106 private:
107 Aws::String m_filePath;
108
110
111 Aws::Utils::ByteBuffer m_content{};
112
114 bool m_filePathHasBeenSet = false;
115 bool m_replacementTypeHasBeenSet = false;
116 bool m_contentHasBeenSet = false;
117 bool m_fileModeHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace CodeCommit
122} // namespace Aws
bool FileModeHasBeenSet() const
ReplaceContentEntry & WithFilePath(FilePathT &&value)
void SetContent(ContentT &&value)
FileModeTypeEnum GetFileMode() const
ReplaceContentEntry & WithReplacementType(ReplacementTypeEnum value)
bool ReplacementTypeHasBeenSet() const
bool FilePathHasBeenSet() const
ReplaceContentEntry & WithContent(ContentT &&value)
ReplacementTypeEnum GetReplacementType() const
const Aws::String & GetFilePath() const
AWS_CODECOMMIT_API ReplaceContentEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFileMode(FileModeTypeEnum value)
bool ContentHasBeenSet() const
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::ByteBuffer & GetContent() const
void SetReplacementType(ReplacementTypeEnum value)
void SetFilePath(FilePathT &&value)
AWS_CODECOMMIT_API ReplaceContentEntry(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECOMMIT_API ReplaceContentEntry()=default
ReplaceContentEntry & WithFileMode(FileModeTypeEnum value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue