AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeMergeConflictsResult.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/model/ConflictMetadata.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/codecommit/model/MergeHunk.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CodeCommit
27{
28namespace Model
29{
31 {
32 public:
33 AWS_CODECOMMIT_API DescribeMergeConflictsResult();
36
37
39
42 inline const ConflictMetadata& GetConflictMetadata() const{ return m_conflictMetadata; }
43 inline void SetConflictMetadata(const ConflictMetadata& value) { m_conflictMetadata = value; }
44 inline void SetConflictMetadata(ConflictMetadata&& value) { m_conflictMetadata = std::move(value); }
48
50
53 inline const Aws::Vector<MergeHunk>& GetMergeHunks() const{ return m_mergeHunks; }
54 inline void SetMergeHunks(const Aws::Vector<MergeHunk>& value) { m_mergeHunks = value; }
55 inline void SetMergeHunks(Aws::Vector<MergeHunk>&& value) { m_mergeHunks = std::move(value); }
57 inline DescribeMergeConflictsResult& WithMergeHunks(Aws::Vector<MergeHunk>&& value) { SetMergeHunks(std::move(value)); return *this;}
58 inline DescribeMergeConflictsResult& AddMergeHunks(const MergeHunk& value) { m_mergeHunks.push_back(value); return *this; }
59 inline DescribeMergeConflictsResult& AddMergeHunks(MergeHunk&& value) { m_mergeHunks.push_back(std::move(value)); return *this; }
61
63
67 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
68 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
69 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
70 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
71 inline DescribeMergeConflictsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
72 inline DescribeMergeConflictsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
73 inline DescribeMergeConflictsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
75
77
81 inline const Aws::String& GetDestinationCommitId() const{ return m_destinationCommitId; }
82 inline void SetDestinationCommitId(const Aws::String& value) { m_destinationCommitId = value; }
83 inline void SetDestinationCommitId(Aws::String&& value) { m_destinationCommitId = std::move(value); }
84 inline void SetDestinationCommitId(const char* value) { m_destinationCommitId.assign(value); }
87 inline DescribeMergeConflictsResult& WithDestinationCommitId(const char* value) { SetDestinationCommitId(value); return *this;}
89
91
95 inline const Aws::String& GetSourceCommitId() const{ return m_sourceCommitId; }
96 inline void SetSourceCommitId(const Aws::String& value) { m_sourceCommitId = value; }
97 inline void SetSourceCommitId(Aws::String&& value) { m_sourceCommitId = std::move(value); }
98 inline void SetSourceCommitId(const char* value) { m_sourceCommitId.assign(value); }
100 inline DescribeMergeConflictsResult& WithSourceCommitId(Aws::String&& value) { SetSourceCommitId(std::move(value)); return *this;}
101 inline DescribeMergeConflictsResult& WithSourceCommitId(const char* value) { SetSourceCommitId(value); return *this;}
103
105
108 inline const Aws::String& GetBaseCommitId() const{ return m_baseCommitId; }
109 inline void SetBaseCommitId(const Aws::String& value) { m_baseCommitId = value; }
110 inline void SetBaseCommitId(Aws::String&& value) { m_baseCommitId = std::move(value); }
111 inline void SetBaseCommitId(const char* value) { m_baseCommitId.assign(value); }
112 inline DescribeMergeConflictsResult& WithBaseCommitId(const Aws::String& value) { SetBaseCommitId(value); return *this;}
113 inline DescribeMergeConflictsResult& WithBaseCommitId(Aws::String&& value) { SetBaseCommitId(std::move(value)); return *this;}
114 inline DescribeMergeConflictsResult& WithBaseCommitId(const char* value) { SetBaseCommitId(value); return *this;}
116
118
119 inline const Aws::String& GetRequestId() const{ return m_requestId; }
120 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
121 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
122 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
123 inline DescribeMergeConflictsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
124 inline DescribeMergeConflictsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
125 inline DescribeMergeConflictsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
127 private:
128
129 ConflictMetadata m_conflictMetadata;
130
131 Aws::Vector<MergeHunk> m_mergeHunks;
132
133 Aws::String m_nextToken;
134
135 Aws::String m_destinationCommitId;
136
137 Aws::String m_sourceCommitId;
138
139 Aws::String m_baseCommitId;
140
141 Aws::String m_requestId;
142 };
143
144} // namespace Model
145} // namespace CodeCommit
146} // namespace Aws
AWS_CODECOMMIT_API DescribeMergeConflictsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeMergeConflictsResult & WithSourceCommitId(const char *value)
DescribeMergeConflictsResult & WithDestinationCommitId(Aws::String &&value)
DescribeMergeConflictsResult & WithConflictMetadata(const ConflictMetadata &value)
DescribeMergeConflictsResult & WithMergeHunks(const Aws::Vector< MergeHunk > &value)
DescribeMergeConflictsResult & WithNextToken(const char *value)
DescribeMergeConflictsResult & WithDestinationCommitId(const Aws::String &value)
DescribeMergeConflictsResult & WithBaseCommitId(Aws::String &&value)
DescribeMergeConflictsResult & WithRequestId(const Aws::String &value)
DescribeMergeConflictsResult & WithRequestId(const char *value)
DescribeMergeConflictsResult & AddMergeHunks(const MergeHunk &value)
DescribeMergeConflictsResult & WithNextToken(Aws::String &&value)
DescribeMergeConflictsResult & WithBaseCommitId(const char *value)
DescribeMergeConflictsResult & WithNextToken(const Aws::String &value)
DescribeMergeConflictsResult & WithDestinationCommitId(const char *value)
DescribeMergeConflictsResult & WithConflictMetadata(ConflictMetadata &&value)
DescribeMergeConflictsResult & WithSourceCommitId(Aws::String &&value)
DescribeMergeConflictsResult & WithBaseCommitId(const Aws::String &value)
DescribeMergeConflictsResult & WithRequestId(Aws::String &&value)
AWS_CODECOMMIT_API DescribeMergeConflictsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeMergeConflictsResult & AddMergeHunks(MergeHunk &&value)
void SetMergeHunks(const Aws::Vector< MergeHunk > &value)
DescribeMergeConflictsResult & WithSourceCommitId(const Aws::String &value)
DescribeMergeConflictsResult & WithMergeHunks(Aws::Vector< MergeHunk > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue