AWS SDK for C++  1.8.152
AWS SDK for C++
DescribeMergeConflictsResult.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24 } // namespace Json
25 } // namespace Utils
26 namespace CodeCommit
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
41  inline const ConflictMetadata& GetConflictMetadata() const{ return m_conflictMetadata; }
42 
46  inline void SetConflictMetadata(const ConflictMetadata& value) { m_conflictMetadata = value; }
47 
51  inline void SetConflictMetadata(ConflictMetadata&& value) { m_conflictMetadata = std::move(value); }
52 
56  inline DescribeMergeConflictsResult& WithConflictMetadata(const ConflictMetadata& value) { SetConflictMetadata(value); return *this;}
57 
61  inline DescribeMergeConflictsResult& WithConflictMetadata(ConflictMetadata&& value) { SetConflictMetadata(std::move(value)); return *this;}
62 
63 
67  inline const Aws::Vector<MergeHunk>& GetMergeHunks() const{ return m_mergeHunks; }
68 
72  inline void SetMergeHunks(const Aws::Vector<MergeHunk>& value) { m_mergeHunks = value; }
73 
77  inline void SetMergeHunks(Aws::Vector<MergeHunk>&& value) { m_mergeHunks = std::move(value); }
78 
82  inline DescribeMergeConflictsResult& WithMergeHunks(const Aws::Vector<MergeHunk>& value) { SetMergeHunks(value); return *this;}
83 
87  inline DescribeMergeConflictsResult& WithMergeHunks(Aws::Vector<MergeHunk>&& value) { SetMergeHunks(std::move(value)); return *this;}
88 
92  inline DescribeMergeConflictsResult& AddMergeHunks(const MergeHunk& value) { m_mergeHunks.push_back(value); return *this; }
93 
97  inline DescribeMergeConflictsResult& AddMergeHunks(MergeHunk&& value) { m_mergeHunks.push_back(std::move(value)); return *this; }
98 
99 
104  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
105 
110  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
111 
116  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
117 
122  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
123 
128  inline DescribeMergeConflictsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
129 
134  inline DescribeMergeConflictsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
135 
140  inline DescribeMergeConflictsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
141 
142 
147  inline const Aws::String& GetDestinationCommitId() const{ return m_destinationCommitId; }
148 
153  inline void SetDestinationCommitId(const Aws::String& value) { m_destinationCommitId = value; }
154 
159  inline void SetDestinationCommitId(Aws::String&& value) { m_destinationCommitId = std::move(value); }
160 
165  inline void SetDestinationCommitId(const char* value) { m_destinationCommitId.assign(value); }
166 
171  inline DescribeMergeConflictsResult& WithDestinationCommitId(const Aws::String& value) { SetDestinationCommitId(value); return *this;}
172 
177  inline DescribeMergeConflictsResult& WithDestinationCommitId(Aws::String&& value) { SetDestinationCommitId(std::move(value)); return *this;}
178 
183  inline DescribeMergeConflictsResult& WithDestinationCommitId(const char* value) { SetDestinationCommitId(value); return *this;}
184 
185 
190  inline const Aws::String& GetSourceCommitId() const{ return m_sourceCommitId; }
191 
196  inline void SetSourceCommitId(const Aws::String& value) { m_sourceCommitId = value; }
197 
202  inline void SetSourceCommitId(Aws::String&& value) { m_sourceCommitId = std::move(value); }
203 
208  inline void SetSourceCommitId(const char* value) { m_sourceCommitId.assign(value); }
209 
214  inline DescribeMergeConflictsResult& WithSourceCommitId(const Aws::String& value) { SetSourceCommitId(value); return *this;}
215 
220  inline DescribeMergeConflictsResult& WithSourceCommitId(Aws::String&& value) { SetSourceCommitId(std::move(value)); return *this;}
221 
226  inline DescribeMergeConflictsResult& WithSourceCommitId(const char* value) { SetSourceCommitId(value); return *this;}
227 
228 
232  inline const Aws::String& GetBaseCommitId() const{ return m_baseCommitId; }
233 
237  inline void SetBaseCommitId(const Aws::String& value) { m_baseCommitId = value; }
238 
242  inline void SetBaseCommitId(Aws::String&& value) { m_baseCommitId = std::move(value); }
243 
247  inline void SetBaseCommitId(const char* value) { m_baseCommitId.assign(value); }
248 
252  inline DescribeMergeConflictsResult& WithBaseCommitId(const Aws::String& value) { SetBaseCommitId(value); return *this;}
253 
257  inline DescribeMergeConflictsResult& WithBaseCommitId(Aws::String&& value) { SetBaseCommitId(std::move(value)); return *this;}
258 
262  inline DescribeMergeConflictsResult& WithBaseCommitId(const char* value) { SetBaseCommitId(value); return *this;}
263 
264  private:
265 
266  ConflictMetadata m_conflictMetadata;
267 
268  Aws::Vector<MergeHunk> m_mergeHunks;
269 
270  Aws::String m_nextToken;
271 
272  Aws::String m_destinationCommitId;
273 
274  Aws::String m_sourceCommitId;
275 
276  Aws::String m_baseCommitId;
277  };
278 
279 } // namespace Model
280 } // namespace CodeCommit
281 } // namespace Aws
Aws::CodeCommit::Model::DescribeMergeConflictsResult
Definition: DescribeMergeConflictsResult.h:31
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::CodeCommit::Model::DescribeMergeConflictsResult::GetBaseCommitId
const Aws::String & GetBaseCommitId() const
Definition: DescribeMergeConflictsResult.h:232
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::DescribeMergeConflictsResult::WithSourceCommitId
DescribeMergeConflictsResult & WithSourceCommitId(const Aws::String &value)
Definition: DescribeMergeConflictsResult.h:214
Aws::CodeCommit::Model::DescribeMergeConflictsResult::SetSourceCommitId
void SetSourceCommitId(const char *value)
Definition: DescribeMergeConflictsResult.h:208
Aws::CodeCommit::Model::DescribeMergeConflictsResult::operator=
DescribeMergeConflictsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ConflictMetadata.h
Aws::CodeCommit::Model::DescribeMergeConflictsResult::SetSourceCommitId
void SetSourceCommitId(const Aws::String &value)
Definition: DescribeMergeConflictsResult.h:196
Aws::CodeCommit::Model::DescribeMergeConflictsResult::WithMergeHunks
DescribeMergeConflictsResult & WithMergeHunks(const Aws::Vector< MergeHunk > &value)
Definition: DescribeMergeConflictsResult.h:82
Aws::CodeCommit::Model::DescribeMergeConflictsResult::WithConflictMetadata
DescribeMergeConflictsResult & WithConflictMetadata(const ConflictMetadata &value)
Definition: DescribeMergeConflictsResult.h:56
Aws::CodeCommit::Model::DescribeMergeConflictsResult::SetDestinationCommitId
void SetDestinationCommitId(const Aws::String &value)
Definition: DescribeMergeConflictsResult.h:153
Aws::CodeCommit::Model::DescribeMergeConflictsResult::WithNextToken
DescribeMergeConflictsResult & WithNextToken(const char *value)
Definition: DescribeMergeConflictsResult.h:140
Aws::CodeCommit::Model::DescribeMergeConflictsResult::WithMergeHunks
DescribeMergeConflictsResult & WithMergeHunks(Aws::Vector< MergeHunk > &&value)
Definition: DescribeMergeConflictsResult.h:87
Aws::CodeCommit::Model::DescribeMergeConflictsResult::SetConflictMetadata
void SetConflictMetadata(const ConflictMetadata &value)
Definition: DescribeMergeConflictsResult.h:46
Aws::CodeCommit::Model::DescribeMergeConflictsResult::GetSourceCommitId
const Aws::String & GetSourceCommitId() const
Definition: DescribeMergeConflictsResult.h:190
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CodeCommit::Model::DescribeMergeConflictsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeMergeConflictsResult.h:104
AWSVector.h
Aws::CodeCommit::Model::DescribeMergeConflictsResult::SetDestinationCommitId
void SetDestinationCommitId(Aws::String &&value)
Definition: DescribeMergeConflictsResult.h:159
Aws::CodeCommit::Model::DescribeMergeConflictsResult::SetBaseCommitId
void SetBaseCommitId(const char *value)
Definition: DescribeMergeConflictsResult.h:247
Aws::CodeCommit::Model::DescribeMergeConflictsResult::GetDestinationCommitId
const Aws::String & GetDestinationCommitId() const
Definition: DescribeMergeConflictsResult.h:147
Aws::CodeCommit::Model::DescribeMergeConflictsResult::WithBaseCommitId
DescribeMergeConflictsResult & WithBaseCommitId(Aws::String &&value)
Definition: DescribeMergeConflictsResult.h:257
Aws::CodeCommit::Model::DescribeMergeConflictsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeMergeConflictsResult.h:110
Aws::CodeCommit::Model::DescribeMergeConflictsResult::SetConflictMetadata
void SetConflictMetadata(ConflictMetadata &&value)
Definition: DescribeMergeConflictsResult.h:51
Aws::CodeCommit::Model::DescribeMergeConflictsResult::WithNextToken
DescribeMergeConflictsResult & WithNextToken(const Aws::String &value)
Definition: DescribeMergeConflictsResult.h:128
Aws::CodeCommit::Model::DescribeMergeConflictsResult::DescribeMergeConflictsResult
DescribeMergeConflictsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::DescribeMergeConflictsResult::WithSourceCommitId
DescribeMergeConflictsResult & WithSourceCommitId(Aws::String &&value)
Definition: DescribeMergeConflictsResult.h:220
Aws::CodeCommit::Model::DescribeMergeConflictsResult::DescribeMergeConflictsResult
DescribeMergeConflictsResult()
Aws::CodeCommit::Model::DescribeMergeConflictsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeMergeConflictsResult.h:116
Aws::CodeCommit::Model::DescribeMergeConflictsResult::AddMergeHunks
DescribeMergeConflictsResult & AddMergeHunks(const MergeHunk &value)
Definition: DescribeMergeConflictsResult.h:92
Aws::CodeCommit::Model::ConflictMetadata
Definition: ConflictMetadata.h:38
Aws::CodeCommit::Model::DescribeMergeConflictsResult::GetMergeHunks
const Aws::Vector< MergeHunk > & GetMergeHunks() const
Definition: DescribeMergeConflictsResult.h:67
Aws::CodeCommit::Model::DescribeMergeConflictsResult::WithBaseCommitId
DescribeMergeConflictsResult & WithBaseCommitId(const Aws::String &value)
Definition: DescribeMergeConflictsResult.h:252
Aws::CodeCommit::Model::DescribeMergeConflictsResult::WithSourceCommitId
DescribeMergeConflictsResult & WithSourceCommitId(const char *value)
Definition: DescribeMergeConflictsResult.h:226
Aws::CodeCommit::Model::MergeHunk
Definition: MergeHunk.h:33
Aws::CodeCommit::Model::DescribeMergeConflictsResult::SetMergeHunks
void SetMergeHunks(const Aws::Vector< MergeHunk > &value)
Definition: DescribeMergeConflictsResult.h:72
Aws::CodeCommit::Model::DescribeMergeConflictsResult::WithConflictMetadata
DescribeMergeConflictsResult & WithConflictMetadata(ConflictMetadata &&value)
Definition: DescribeMergeConflictsResult.h:61
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::DescribeMergeConflictsResult::AddMergeHunks
DescribeMergeConflictsResult & AddMergeHunks(MergeHunk &&value)
Definition: DescribeMergeConflictsResult.h:97
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::DescribeMergeConflictsResult::SetMergeHunks
void SetMergeHunks(Aws::Vector< MergeHunk > &&value)
Definition: DescribeMergeConflictsResult.h:77
Aws::CodeCommit::Model::DescribeMergeConflictsResult::WithDestinationCommitId
DescribeMergeConflictsResult & WithDestinationCommitId(Aws::String &&value)
Definition: DescribeMergeConflictsResult.h:177
MergeHunk.h
Aws::CodeCommit::Model::DescribeMergeConflictsResult::WithDestinationCommitId
DescribeMergeConflictsResult & WithDestinationCommitId(const char *value)
Definition: DescribeMergeConflictsResult.h:183
Aws::CodeCommit::Model::DescribeMergeConflictsResult::SetDestinationCommitId
void SetDestinationCommitId(const char *value)
Definition: DescribeMergeConflictsResult.h:165
Aws::CodeCommit::Model::DescribeMergeConflictsResult::SetBaseCommitId
void SetBaseCommitId(const Aws::String &value)
Definition: DescribeMergeConflictsResult.h:237
Aws::CodeCommit::Model::DescribeMergeConflictsResult::WithNextToken
DescribeMergeConflictsResult & WithNextToken(Aws::String &&value)
Definition: DescribeMergeConflictsResult.h:134
Aws::CodeCommit::Model::DescribeMergeConflictsResult::WithBaseCommitId
DescribeMergeConflictsResult & WithBaseCommitId(const char *value)
Definition: DescribeMergeConflictsResult.h:262
Aws::CodeCommit::Model::DescribeMergeConflictsResult::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeMergeConflictsResult.h:122
Aws::CodeCommit::Model::DescribeMergeConflictsResult::SetBaseCommitId
void SetBaseCommitId(Aws::String &&value)
Definition: DescribeMergeConflictsResult.h:242
Aws::CodeCommit::Model::DescribeMergeConflictsResult::SetSourceCommitId
void SetSourceCommitId(Aws::String &&value)
Definition: DescribeMergeConflictsResult.h:202
Aws::CodeCommit::Model::DescribeMergeConflictsResult::WithDestinationCommitId
DescribeMergeConflictsResult & WithDestinationCommitId(const Aws::String &value)
Definition: DescribeMergeConflictsResult.h:171
Aws::CodeCommit::Model::DescribeMergeConflictsResult::GetConflictMetadata
const ConflictMetadata & GetConflictMetadata() const
Definition: DescribeMergeConflictsResult.h:41