AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; }
51 inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); }
52 inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); }
53 inline ReplaceContentEntry& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;}
54 inline ReplaceContentEntry& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;}
55 inline ReplaceContentEntry& WithFilePath(const char* value) { SetFilePath(value); return *this;}
57
59
62 inline const ReplacementTypeEnum& GetReplacementType() const{ return m_replacementType; }
63 inline bool ReplacementTypeHasBeenSet() const { return m_replacementTypeHasBeenSet; }
64 inline void SetReplacementType(const ReplacementTypeEnum& value) { m_replacementTypeHasBeenSet = true; m_replacementType = value; }
65 inline void SetReplacementType(ReplacementTypeEnum&& value) { m_replacementTypeHasBeenSet = true; m_replacementType = std::move(value); }
67 inline ReplaceContentEntry& WithReplacementType(ReplacementTypeEnum&& value) { SetReplacementType(std::move(value)); return *this;}
69
71
75 inline const Aws::Utils::ByteBuffer& GetContent() const{ return m_content; }
76 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
77 inline void SetContent(const Aws::Utils::ByteBuffer& value) { m_contentHasBeenSet = true; m_content = value; }
78 inline void SetContent(Aws::Utils::ByteBuffer&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
79 inline ReplaceContentEntry& WithContent(const Aws::Utils::ByteBuffer& value) { SetContent(value); return *this;}
80 inline ReplaceContentEntry& WithContent(Aws::Utils::ByteBuffer&& value) { SetContent(std::move(value)); return *this;}
82
84
87 inline const FileModeTypeEnum& GetFileMode() const{ return m_fileMode; }
88 inline bool FileModeHasBeenSet() const { return m_fileModeHasBeenSet; }
89 inline void SetFileMode(const FileModeTypeEnum& value) { m_fileModeHasBeenSet = true; m_fileMode = value; }
90 inline void SetFileMode(FileModeTypeEnum&& value) { m_fileModeHasBeenSet = true; m_fileMode = std::move(value); }
91 inline ReplaceContentEntry& WithFileMode(const FileModeTypeEnum& value) { SetFileMode(value); return *this;}
92 inline ReplaceContentEntry& WithFileMode(FileModeTypeEnum&& value) { SetFileMode(std::move(value)); return *this;}
94 private:
95
96 Aws::String m_filePath;
97 bool m_filePathHasBeenSet = false;
98
99 ReplacementTypeEnum m_replacementType;
100 bool m_replacementTypeHasBeenSet = false;
101
102 Aws::Utils::ByteBuffer m_content;
103 bool m_contentHasBeenSet = false;
104
105 FileModeTypeEnum m_fileMode;
106 bool m_fileModeHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace CodeCommit
111} // namespace Aws
bool FileModeHasBeenSet() const
void SetReplacementType(const ReplacementTypeEnum &value)
ReplaceContentEntry & WithFilePath(const char *value)
const ReplacementTypeEnum & GetReplacementType() const
ReplaceContentEntry & WithContent(Aws::Utils::ByteBuffer &&value)
ReplaceContentEntry & WithContent(const Aws::Utils::ByteBuffer &value)
bool ReplacementTypeHasBeenSet() const
ReplaceContentEntry & WithFileMode(const FileModeTypeEnum &value)
ReplaceContentEntry & WithReplacementType(ReplacementTypeEnum &&value)
bool FilePathHasBeenSet() const
void SetFilePath(const char *value)
void SetFileMode(const FileModeTypeEnum &value)
ReplaceContentEntry & WithFileMode(FileModeTypeEnum &&value)
void SetContent(const Aws::Utils::ByteBuffer &value)
ReplaceContentEntry & WithFilePath(Aws::String &&value)
const Aws::String & GetFilePath() const
void SetReplacementType(ReplacementTypeEnum &&value)
AWS_CODECOMMIT_API ReplaceContentEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
const FileModeTypeEnum & GetFileMode() const
void SetFilePath(Aws::String &&value)
AWS_CODECOMMIT_API ReplaceContentEntry()
void SetContent(Aws::Utils::ByteBuffer &&value)
bool ContentHasBeenSet() const
ReplaceContentEntry & WithReplacementType(const ReplacementTypeEnum &value)
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::ByteBuffer & GetContent() const
ReplaceContentEntry & WithFilePath(const Aws::String &value)
void SetFilePath(const Aws::String &value)
AWS_CODECOMMIT_API ReplaceContentEntry(Aws::Utils::Json::JsonView jsonValue)
void SetFileMode(FileModeTypeEnum &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue