AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
BatchDescribeMergeConflictsResult.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/model/BatchDescribeMergeConflictsError.h>
9#include <aws/codecommit/model/Conflict.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CodeCommit {
26namespace Model {
28 public:
29 AWS_CODECOMMIT_API BatchDescribeMergeConflictsResult() = default;
32
34
38 inline const Aws::Vector<Conflict>& GetConflicts() const { return m_conflicts; }
39 template <typename ConflictsT = Aws::Vector<Conflict>>
40 void SetConflicts(ConflictsT&& value) {
41 m_conflictsHasBeenSet = true;
42 m_conflicts = std::forward<ConflictsT>(value);
43 }
44 template <typename ConflictsT = Aws::Vector<Conflict>>
46 SetConflicts(std::forward<ConflictsT>(value));
47 return *this;
48 }
49 template <typename ConflictsT = Conflict>
51 m_conflictsHasBeenSet = true;
52 m_conflicts.emplace_back(std::forward<ConflictsT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetNextToken() const { return m_nextToken; }
63 template <typename NextTokenT = Aws::String>
64 void SetNextToken(NextTokenT&& value) {
65 m_nextTokenHasBeenSet = true;
66 m_nextToken = std::forward<NextTokenT>(value);
67 }
68 template <typename NextTokenT = Aws::String>
70 SetNextToken(std::forward<NextTokenT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::Vector<BatchDescribeMergeConflictsError>& GetErrors() const { return m_errors; }
81 template <typename ErrorsT = Aws::Vector<BatchDescribeMergeConflictsError>>
82 void SetErrors(ErrorsT&& value) {
83 m_errorsHasBeenSet = true;
84 m_errors = std::forward<ErrorsT>(value);
85 }
86 template <typename ErrorsT = Aws::Vector<BatchDescribeMergeConflictsError>>
88 SetErrors(std::forward<ErrorsT>(value));
89 return *this;
90 }
91 template <typename ErrorsT = BatchDescribeMergeConflictsError>
93 m_errorsHasBeenSet = true;
94 m_errors.emplace_back(std::forward<ErrorsT>(value));
95 return *this;
96 }
98
100
104 inline const Aws::String& GetDestinationCommitId() const { return m_destinationCommitId; }
105 template <typename DestinationCommitIdT = Aws::String>
106 void SetDestinationCommitId(DestinationCommitIdT&& value) {
107 m_destinationCommitIdHasBeenSet = true;
108 m_destinationCommitId = std::forward<DestinationCommitIdT>(value);
109 }
110 template <typename DestinationCommitIdT = Aws::String>
112 SetDestinationCommitId(std::forward<DestinationCommitIdT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::String& GetSourceCommitId() const { return m_sourceCommitId; }
123 template <typename SourceCommitIdT = Aws::String>
124 void SetSourceCommitId(SourceCommitIdT&& value) {
125 m_sourceCommitIdHasBeenSet = true;
126 m_sourceCommitId = std::forward<SourceCommitIdT>(value);
127 }
128 template <typename SourceCommitIdT = Aws::String>
130 SetSourceCommitId(std::forward<SourceCommitIdT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetBaseCommitId() const { return m_baseCommitId; }
140 template <typename BaseCommitIdT = Aws::String>
141 void SetBaseCommitId(BaseCommitIdT&& value) {
142 m_baseCommitIdHasBeenSet = true;
143 m_baseCommitId = std::forward<BaseCommitIdT>(value);
144 }
145 template <typename BaseCommitIdT = Aws::String>
147 SetBaseCommitId(std::forward<BaseCommitIdT>(value));
148 return *this;
149 }
151
153
154 inline const Aws::String& GetRequestId() const { return m_requestId; }
155 template <typename RequestIdT = Aws::String>
156 void SetRequestId(RequestIdT&& value) {
157 m_requestIdHasBeenSet = true;
158 m_requestId = std::forward<RequestIdT>(value);
159 }
160 template <typename RequestIdT = Aws::String>
162 SetRequestId(std::forward<RequestIdT>(value));
163 return *this;
164 }
166 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
167
168 private:
169 Aws::Vector<Conflict> m_conflicts;
170
171 Aws::String m_nextToken;
172
174
175 Aws::String m_destinationCommitId;
176
177 Aws::String m_sourceCommitId;
178
179 Aws::String m_baseCommitId;
180
181 Aws::String m_requestId;
182 Aws::Http::HttpResponseCode m_HttpResponseCode;
183 bool m_conflictsHasBeenSet = false;
184 bool m_nextTokenHasBeenSet = false;
185 bool m_errorsHasBeenSet = false;
186 bool m_destinationCommitIdHasBeenSet = false;
187 bool m_sourceCommitIdHasBeenSet = false;
188 bool m_baseCommitIdHasBeenSet = false;
189 bool m_requestIdHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace CodeCommit
194} // namespace Aws
BatchDescribeMergeConflictsResult & WithDestinationCommitId(DestinationCommitIdT &&value)
BatchDescribeMergeConflictsResult & AddErrors(ErrorsT &&value)
AWS_CODECOMMIT_API BatchDescribeMergeConflictsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchDescribeMergeConflictsResult & WithRequestId(RequestIdT &&value)
BatchDescribeMergeConflictsResult & WithBaseCommitId(BaseCommitIdT &&value)
BatchDescribeMergeConflictsResult & WithConflicts(ConflictsT &&value)
const Aws::Vector< BatchDescribeMergeConflictsError > & GetErrors() const
BatchDescribeMergeConflictsResult & WithErrors(ErrorsT &&value)
AWS_CODECOMMIT_API BatchDescribeMergeConflictsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CODECOMMIT_API BatchDescribeMergeConflictsResult()=default
BatchDescribeMergeConflictsResult & WithNextToken(NextTokenT &&value)
BatchDescribeMergeConflictsResult & AddConflicts(ConflictsT &&value)
BatchDescribeMergeConflictsResult & WithSourceCommitId(SourceCommitIdT &&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