AWS SDK for C++  1.8.152
AWS SDK for C++
ReplaceContentEntry.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/core/utils/Array.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace CodeCommit
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetFilePath() const{ return m_filePath; }
48 
52  inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
53 
57  inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; }
58 
62  inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); }
63 
67  inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); }
68 
72  inline ReplaceContentEntry& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;}
73 
77  inline ReplaceContentEntry& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;}
78 
82  inline ReplaceContentEntry& WithFilePath(const char* value) { SetFilePath(value); return *this;}
83 
84 
88  inline const ReplacementTypeEnum& GetReplacementType() const{ return m_replacementType; }
89 
93  inline bool ReplacementTypeHasBeenSet() const { return m_replacementTypeHasBeenSet; }
94 
98  inline void SetReplacementType(const ReplacementTypeEnum& value) { m_replacementTypeHasBeenSet = true; m_replacementType = value; }
99 
103  inline void SetReplacementType(ReplacementTypeEnum&& value) { m_replacementTypeHasBeenSet = true; m_replacementType = std::move(value); }
104 
108  inline ReplaceContentEntry& WithReplacementType(const ReplacementTypeEnum& value) { SetReplacementType(value); return *this;}
109 
113  inline ReplaceContentEntry& WithReplacementType(ReplacementTypeEnum&& value) { SetReplacementType(std::move(value)); return *this;}
114 
115 
120  inline const Aws::Utils::ByteBuffer& GetContent() const{ return m_content; }
121 
126  inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
127 
132  inline void SetContent(const Aws::Utils::ByteBuffer& value) { m_contentHasBeenSet = true; m_content = value; }
133 
138  inline void SetContent(Aws::Utils::ByteBuffer&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
139 
144  inline ReplaceContentEntry& WithContent(const Aws::Utils::ByteBuffer& value) { SetContent(value); return *this;}
145 
150  inline ReplaceContentEntry& WithContent(Aws::Utils::ByteBuffer&& value) { SetContent(std::move(value)); return *this;}
151 
152 
156  inline const FileModeTypeEnum& GetFileMode() const{ return m_fileMode; }
157 
161  inline bool FileModeHasBeenSet() const { return m_fileModeHasBeenSet; }
162 
166  inline void SetFileMode(const FileModeTypeEnum& value) { m_fileModeHasBeenSet = true; m_fileMode = value; }
167 
171  inline void SetFileMode(FileModeTypeEnum&& value) { m_fileModeHasBeenSet = true; m_fileMode = std::move(value); }
172 
176  inline ReplaceContentEntry& WithFileMode(const FileModeTypeEnum& value) { SetFileMode(value); return *this;}
177 
181  inline ReplaceContentEntry& WithFileMode(FileModeTypeEnum&& value) { SetFileMode(std::move(value)); return *this;}
182 
183  private:
184 
185  Aws::String m_filePath;
186  bool m_filePathHasBeenSet;
187 
188  ReplacementTypeEnum m_replacementType;
189  bool m_replacementTypeHasBeenSet;
190 
191  Aws::Utils::ByteBuffer m_content;
192  bool m_contentHasBeenSet;
193 
194  FileModeTypeEnum m_fileMode;
195  bool m_fileModeHasBeenSet;
196  };
197 
198 } // namespace Model
199 } // namespace CodeCommit
200 } // namespace Aws
Aws::CodeCommit::Model::ReplaceContentEntry::ReplaceContentEntry
ReplaceContentEntry()
Aws::CodeCommit::Model::ReplaceContentEntry::SetReplacementType
void SetReplacementType(const ReplacementTypeEnum &value)
Definition: ReplaceContentEntry.h:98
Aws::CodeCommit::Model::ReplaceContentEntry::ContentHasBeenSet
bool ContentHasBeenSet() const
Definition: ReplaceContentEntry.h:126
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::ReplaceContentEntry::WithFilePath
ReplaceContentEntry & WithFilePath(const Aws::String &value)
Definition: ReplaceContentEntry.h:72
Aws::CodeCommit::Model::ReplaceContentEntry::GetContent
const Aws::Utils::ByteBuffer & GetContent() const
Definition: ReplaceContentEntry.h:120
Aws::CodeCommit::Model::ReplaceContentEntry::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodeCommit::Model::ReplaceContentEntry::WithReplacementType
ReplaceContentEntry & WithReplacementType(ReplacementTypeEnum &&value)
Definition: ReplaceContentEntry.h:113
Aws::CodeCommit::Model::ReplaceContentEntry::GetFileMode
const FileModeTypeEnum & GetFileMode() const
Definition: ReplaceContentEntry.h:156
Aws::CodeCommit::Model::ReplaceContentEntry::ReplaceContentEntry
ReplaceContentEntry(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::ReplaceContentEntry::SetFilePath
void SetFilePath(Aws::String &&value)
Definition: ReplaceContentEntry.h:62
ReplacementTypeEnum.h
FileModeTypeEnum.h
Aws::CodeCommit::Model::ReplaceContentEntry::WithFileMode
ReplaceContentEntry & WithFileMode(FileModeTypeEnum &&value)
Definition: ReplaceContentEntry.h:181
Aws::CodeCommit::Model::ReplaceContentEntry::WithFilePath
ReplaceContentEntry & WithFilePath(Aws::String &&value)
Definition: ReplaceContentEntry.h:77
Aws::CodeCommit::Model::ReplaceContentEntry::GetFilePath
const Aws::String & GetFilePath() const
Definition: ReplaceContentEntry.h:47
Aws::CodeCommit::Model::ReplaceContentEntry::WithFileMode
ReplaceContentEntry & WithFileMode(const FileModeTypeEnum &value)
Definition: ReplaceContentEntry.h:176
Aws::CodeCommit::Model::ReplaceContentEntry::operator=
ReplaceContentEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::ReplaceContentEntry::SetFilePath
void SetFilePath(const char *value)
Definition: ReplaceContentEntry.h:67
Aws::CodeCommit::Model::ReplaceContentEntry::GetReplacementType
const ReplacementTypeEnum & GetReplacementType() const
Definition: ReplaceContentEntry.h:88
Aws::CodeCommit::Model::ReplaceContentEntry::ReplacementTypeHasBeenSet
bool ReplacementTypeHasBeenSet() const
Definition: ReplaceContentEntry.h:93
Aws::CodeCommit::Model::ReplaceContentEntry::SetFilePath
void SetFilePath(const Aws::String &value)
Definition: ReplaceContentEntry.h:57
Aws::CodeCommit::Model::ReplaceContentEntry::SetFileMode
void SetFileMode(FileModeTypeEnum &&value)
Definition: ReplaceContentEntry.h:171
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Array< unsigned char >
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::CodeCommit::Model::ReplaceContentEntry::FileModeHasBeenSet
bool FileModeHasBeenSet() const
Definition: ReplaceContentEntry.h:161
Aws::CodeCommit::Model::FileModeTypeEnum
FileModeTypeEnum
Definition: FileModeTypeEnum.h:17
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::ReplaceContentEntry::WithFilePath
ReplaceContentEntry & WithFilePath(const char *value)
Definition: ReplaceContentEntry.h:82
Aws::CodeCommit::Model::ReplaceContentEntry::SetReplacementType
void SetReplacementType(ReplacementTypeEnum &&value)
Definition: ReplaceContentEntry.h:103
Aws::CodeCommit::Model::ReplacementTypeEnum
ReplacementTypeEnum
Definition: ReplacementTypeEnum.h:17
Aws
Definition: AccessManagementClient.h:15
Array.h
Aws::CodeCommit::Model::ReplaceContentEntry
Definition: ReplaceContentEntry.h:36
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::ReplaceContentEntry::WithReplacementType
ReplaceContentEntry & WithReplacementType(const ReplacementTypeEnum &value)
Definition: ReplaceContentEntry.h:108
Aws::CodeCommit::Model::ReplaceContentEntry::WithContent
ReplaceContentEntry & WithContent(Aws::Utils::ByteBuffer &&value)
Definition: ReplaceContentEntry.h:150
Aws::CodeCommit::Model::ReplaceContentEntry::SetContent
void SetContent(Aws::Utils::ByteBuffer &&value)
Definition: ReplaceContentEntry.h:138
Aws::CodeCommit::Model::ReplaceContentEntry::SetContent
void SetContent(const Aws::Utils::ByteBuffer &value)
Definition: ReplaceContentEntry.h:132
Aws::CodeCommit::Model::ReplaceContentEntry::FilePathHasBeenSet
bool FilePathHasBeenSet() const
Definition: ReplaceContentEntry.h:52
Aws::CodeCommit::Model::ReplaceContentEntry::SetFileMode
void SetFileMode(const FileModeTypeEnum &value)
Definition: ReplaceContentEntry.h:166
Aws::CodeCommit::Model::ReplaceContentEntry::WithContent
ReplaceContentEntry & WithContent(const Aws::Utils::ByteBuffer &value)
Definition: ReplaceContentEntry.h:144