AWS SDK for C++  1.9.40
AWS SDK for C++
ConflictResolution.h
Go to the documentation of this file.
1 
6 #pragma once
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::Vector<ReplaceContentEntry>& GetReplaceContents() const{ return m_replaceContents; }
48 
52  inline bool ReplaceContentsHasBeenSet() const { return m_replaceContentsHasBeenSet; }
53 
57  inline void SetReplaceContents(const Aws::Vector<ReplaceContentEntry>& value) { m_replaceContentsHasBeenSet = true; m_replaceContents = value; }
58 
62  inline void SetReplaceContents(Aws::Vector<ReplaceContentEntry>&& value) { m_replaceContentsHasBeenSet = true; m_replaceContents = std::move(value); }
63 
67  inline ConflictResolution& WithReplaceContents(const Aws::Vector<ReplaceContentEntry>& value) { SetReplaceContents(value); return *this;}
68 
72  inline ConflictResolution& WithReplaceContents(Aws::Vector<ReplaceContentEntry>&& value) { SetReplaceContents(std::move(value)); return *this;}
73 
77  inline ConflictResolution& AddReplaceContents(const ReplaceContentEntry& value) { m_replaceContentsHasBeenSet = true; m_replaceContents.push_back(value); return *this; }
78 
82  inline ConflictResolution& AddReplaceContents(ReplaceContentEntry&& value) { m_replaceContentsHasBeenSet = true; m_replaceContents.push_back(std::move(value)); return *this; }
83 
84 
88  inline const Aws::Vector<DeleteFileEntry>& GetDeleteFiles() const{ return m_deleteFiles; }
89 
93  inline bool DeleteFilesHasBeenSet() const { return m_deleteFilesHasBeenSet; }
94 
98  inline void SetDeleteFiles(const Aws::Vector<DeleteFileEntry>& value) { m_deleteFilesHasBeenSet = true; m_deleteFiles = value; }
99 
103  inline void SetDeleteFiles(Aws::Vector<DeleteFileEntry>&& value) { m_deleteFilesHasBeenSet = true; m_deleteFiles = std::move(value); }
104 
108  inline ConflictResolution& WithDeleteFiles(const Aws::Vector<DeleteFileEntry>& value) { SetDeleteFiles(value); return *this;}
109 
113  inline ConflictResolution& WithDeleteFiles(Aws::Vector<DeleteFileEntry>&& value) { SetDeleteFiles(std::move(value)); return *this;}
114 
118  inline ConflictResolution& AddDeleteFiles(const DeleteFileEntry& value) { m_deleteFilesHasBeenSet = true; m_deleteFiles.push_back(value); return *this; }
119 
123  inline ConflictResolution& AddDeleteFiles(DeleteFileEntry&& value) { m_deleteFilesHasBeenSet = true; m_deleteFiles.push_back(std::move(value)); return *this; }
124 
125 
129  inline const Aws::Vector<SetFileModeEntry>& GetSetFileModes() const{ return m_setFileModes; }
130 
134  inline bool SetFileModesHasBeenSet() const { return m_setFileModesHasBeenSet; }
135 
139  inline void SetSetFileModes(const Aws::Vector<SetFileModeEntry>& value) { m_setFileModesHasBeenSet = true; m_setFileModes = value; }
140 
144  inline void SetSetFileModes(Aws::Vector<SetFileModeEntry>&& value) { m_setFileModesHasBeenSet = true; m_setFileModes = std::move(value); }
145 
149  inline ConflictResolution& WithSetFileModes(const Aws::Vector<SetFileModeEntry>& value) { SetSetFileModes(value); return *this;}
150 
154  inline ConflictResolution& WithSetFileModes(Aws::Vector<SetFileModeEntry>&& value) { SetSetFileModes(std::move(value)); return *this;}
155 
159  inline ConflictResolution& AddSetFileModes(const SetFileModeEntry& value) { m_setFileModesHasBeenSet = true; m_setFileModes.push_back(value); return *this; }
160 
164  inline ConflictResolution& AddSetFileModes(SetFileModeEntry&& value) { m_setFileModesHasBeenSet = true; m_setFileModes.push_back(std::move(value)); return *this; }
165 
166  private:
167 
168  Aws::Vector<ReplaceContentEntry> m_replaceContents;
169  bool m_replaceContentsHasBeenSet;
170 
171  Aws::Vector<DeleteFileEntry> m_deleteFiles;
172  bool m_deleteFilesHasBeenSet;
173 
174  Aws::Vector<SetFileModeEntry> m_setFileModes;
175  bool m_setFileModesHasBeenSet;
176  };
177 
178 } // namespace Model
179 } // namespace CodeCommit
180 } // namespace Aws
DeleteFileEntry.h
Aws::CodeCommit::Model::ConflictResolution::AddReplaceContents
ConflictResolution & AddReplaceContents(ReplaceContentEntry &&value)
Definition: ConflictResolution.h:82
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::ConflictResolution::SetFileModesHasBeenSet
bool SetFileModesHasBeenSet() const
Definition: ConflictResolution.h:134
Aws::CodeCommit::Model::SetFileModeEntry
Definition: SetFileModeEntry.h:33
Aws::CodeCommit::Model::ConflictResolution::SetSetFileModes
void SetSetFileModes(const Aws::Vector< SetFileModeEntry > &value)
Definition: ConflictResolution.h:139
Aws::CodeCommit::Model::ConflictResolution::SetReplaceContents
void SetReplaceContents(const Aws::Vector< ReplaceContentEntry > &value)
Definition: ConflictResolution.h:57
Aws::CodeCommit::Model::ConflictResolution::WithDeleteFiles
ConflictResolution & WithDeleteFiles(const Aws::Vector< DeleteFileEntry > &value)
Definition: ConflictResolution.h:108
Aws::CodeCommit::Model::ConflictResolution::AddSetFileModes
ConflictResolution & AddSetFileModes(SetFileModeEntry &&value)
Definition: ConflictResolution.h:164
Aws::CodeCommit::Model::ConflictResolution::SetDeleteFiles
void SetDeleteFiles(const Aws::Vector< DeleteFileEntry > &value)
Definition: ConflictResolution.h:98
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CodeCommit::Model::ConflictResolution::GetDeleteFiles
const Aws::Vector< DeleteFileEntry > & GetDeleteFiles() const
Definition: ConflictResolution.h:88
AWSVector.h
Aws::CodeCommit::Model::ConflictResolution::SetSetFileModes
void SetSetFileModes(Aws::Vector< SetFileModeEntry > &&value)
Definition: ConflictResolution.h:144
Aws::CodeCommit::Model::ConflictResolution::ConflictResolution
ConflictResolution()
Aws::CodeCommit::Model::ConflictResolution::ConflictResolution
ConflictResolution(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::ConflictResolution::ReplaceContentsHasBeenSet
bool ReplaceContentsHasBeenSet() const
Definition: ConflictResolution.h:52
Aws::CodeCommit::Model::ConflictResolution::WithSetFileModes
ConflictResolution & WithSetFileModes(Aws::Vector< SetFileModeEntry > &&value)
Definition: ConflictResolution.h:154
ReplaceContentEntry.h
Aws::CodeCommit::Model::ConflictResolution::GetReplaceContents
const Aws::Vector< ReplaceContentEntry > & GetReplaceContents() const
Definition: ConflictResolution.h:47
Aws::CodeCommit::Model::ConflictResolution::SetDeleteFiles
void SetDeleteFiles(Aws::Vector< DeleteFileEntry > &&value)
Definition: ConflictResolution.h:103
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::CodeCommit::Model::ConflictResolution::WithReplaceContents
ConflictResolution & WithReplaceContents(Aws::Vector< ReplaceContentEntry > &&value)
Definition: ConflictResolution.h:72
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::CodeCommit::Model::ConflictResolution::AddReplaceContents
ConflictResolution & AddReplaceContents(const ReplaceContentEntry &value)
Definition: ConflictResolution.h:77
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
SetFileModeEntry.h
Aws::CodeCommit::Model::ConflictResolution::WithDeleteFiles
ConflictResolution & WithDeleteFiles(Aws::Vector< DeleteFileEntry > &&value)
Definition: ConflictResolution.h:113
Aws::CodeCommit::Model::ConflictResolution::AddDeleteFiles
ConflictResolution & AddDeleteFiles(const DeleteFileEntry &value)
Definition: ConflictResolution.h:118
Aws::CodeCommit::Model::ConflictResolution::operator=
ConflictResolution & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::ConflictResolution::DeleteFilesHasBeenSet
bool DeleteFilesHasBeenSet() const
Definition: ConflictResolution.h:93
Aws::CodeCommit::Model::ConflictResolution::AddSetFileModes
ConflictResolution & AddSetFileModes(const SetFileModeEntry &value)
Definition: ConflictResolution.h:159
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::DeleteFileEntry
Definition: DeleteFileEntry.h:32
Aws::CodeCommit::Model::ReplaceContentEntry
Definition: ReplaceContentEntry.h:36
Aws::CodeCommit::Model::ConflictResolution
Definition: ConflictResolution.h:36
Aws::CodeCommit::Model::ConflictResolution::WithReplaceContents
ConflictResolution & WithReplaceContents(const Aws::Vector< ReplaceContentEntry > &value)
Definition: ConflictResolution.h:67
Aws::CodeCommit::Model::ConflictResolution::GetSetFileModes
const Aws::Vector< SetFileModeEntry > & GetSetFileModes() const
Definition: ConflictResolution.h:129
Aws::CodeCommit::Model::ConflictResolution::SetReplaceContents
void SetReplaceContents(Aws::Vector< ReplaceContentEntry > &&value)
Definition: ConflictResolution.h:62
Aws::CodeCommit::Model::ConflictResolution::WithSetFileModes
ConflictResolution & WithSetFileModes(const Aws::Vector< SetFileModeEntry > &value)
Definition: ConflictResolution.h:149
Aws::CodeCommit::Model::ConflictResolution::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodeCommit::Model::ConflictResolution::AddDeleteFiles
ConflictResolution & AddDeleteFiles(DeleteFileEntry &&value)
Definition: ConflictResolution.h:123