AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ReplaceContentEntry.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/ReplacementTypeEnum.h>
10#include <aws/core/utils/Array.h>
11#include <aws/codecommit/model/FileModeTypeEnum.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 ReplaceContentEntry() = default;
39 AWS_CODECOMMIT_API ReplaceContentEntry(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetFilePath() const { return m_filePath; }
49 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
50 template<typename FilePathT = Aws::String>
51 void SetFilePath(FilePathT&& value) { m_filePathHasBeenSet = true; m_filePath = std::forward<FilePathT>(value); }
52 template<typename FilePathT = Aws::String>
53 ReplaceContentEntry& WithFilePath(FilePathT&& value) { SetFilePath(std::forward<FilePathT>(value)); return *this;}
55
57
60 inline ReplacementTypeEnum GetReplacementType() const { return m_replacementType; }
61 inline bool ReplacementTypeHasBeenSet() const { return m_replacementTypeHasBeenSet; }
62 inline void SetReplacementType(ReplacementTypeEnum value) { m_replacementTypeHasBeenSet = true; m_replacementType = value; }
65
67
71 inline const Aws::Utils::ByteBuffer& GetContent() const { return m_content; }
72 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
73 template<typename ContentT = Aws::Utils::ByteBuffer>
74 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
75 template<typename ContentT = Aws::Utils::ByteBuffer>
76 ReplaceContentEntry& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
78
80
83 inline FileModeTypeEnum GetFileMode() const { return m_fileMode; }
84 inline bool FileModeHasBeenSet() const { return m_fileModeHasBeenSet; }
85 inline void SetFileMode(FileModeTypeEnum value) { m_fileModeHasBeenSet = true; m_fileMode = value; }
86 inline ReplaceContentEntry& WithFileMode(FileModeTypeEnum value) { SetFileMode(value); return *this;}
88 private:
89
90 Aws::String m_filePath;
91 bool m_filePathHasBeenSet = false;
92
94 bool m_replacementTypeHasBeenSet = false;
95
96 Aws::Utils::ByteBuffer m_content{};
97 bool m_contentHasBeenSet = false;
98
100 bool m_fileModeHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace CodeCommit
105} // 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