AWS SDK for C++

AWS SDK for C++ Version 1.11.741

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/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace CodeCommit {
25namespace Model {
27 public:
28 AWS_CODECOMMIT_API BatchDescribeMergeConflictsResult() = default;
31
33
37 inline const Aws::Vector<Conflict>& GetConflicts() const { return m_conflicts; }
38 template <typename ConflictsT = Aws::Vector<Conflict>>
39 void SetConflicts(ConflictsT&& value) {
40 m_conflictsHasBeenSet = true;
41 m_conflicts = std::forward<ConflictsT>(value);
42 }
43 template <typename ConflictsT = Aws::Vector<Conflict>>
45 SetConflicts(std::forward<ConflictsT>(value));
46 return *this;
47 }
48 template <typename ConflictsT = Conflict>
50 m_conflictsHasBeenSet = true;
51 m_conflicts.emplace_back(std::forward<ConflictsT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetNextToken() const { return m_nextToken; }
62 template <typename NextTokenT = Aws::String>
63 void SetNextToken(NextTokenT&& value) {
64 m_nextTokenHasBeenSet = true;
65 m_nextToken = std::forward<NextTokenT>(value);
66 }
67 template <typename NextTokenT = Aws::String>
69 SetNextToken(std::forward<NextTokenT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::Vector<BatchDescribeMergeConflictsError>& GetErrors() const { return m_errors; }
80 template <typename ErrorsT = Aws::Vector<BatchDescribeMergeConflictsError>>
81 void SetErrors(ErrorsT&& value) {
82 m_errorsHasBeenSet = true;
83 m_errors = std::forward<ErrorsT>(value);
84 }
85 template <typename ErrorsT = Aws::Vector<BatchDescribeMergeConflictsError>>
87 SetErrors(std::forward<ErrorsT>(value));
88 return *this;
89 }
90 template <typename ErrorsT = BatchDescribeMergeConflictsError>
92 m_errorsHasBeenSet = true;
93 m_errors.emplace_back(std::forward<ErrorsT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::String& GetDestinationCommitId() const { return m_destinationCommitId; }
104 template <typename DestinationCommitIdT = Aws::String>
105 void SetDestinationCommitId(DestinationCommitIdT&& value) {
106 m_destinationCommitIdHasBeenSet = true;
107 m_destinationCommitId = std::forward<DestinationCommitIdT>(value);
108 }
109 template <typename DestinationCommitIdT = Aws::String>
111 SetDestinationCommitId(std::forward<DestinationCommitIdT>(value));
112 return *this;
113 }
115
117
121 inline const Aws::String& GetSourceCommitId() const { return m_sourceCommitId; }
122 template <typename SourceCommitIdT = Aws::String>
123 void SetSourceCommitId(SourceCommitIdT&& value) {
124 m_sourceCommitIdHasBeenSet = true;
125 m_sourceCommitId = std::forward<SourceCommitIdT>(value);
126 }
127 template <typename SourceCommitIdT = Aws::String>
129 SetSourceCommitId(std::forward<SourceCommitIdT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetBaseCommitId() const { return m_baseCommitId; }
139 template <typename BaseCommitIdT = Aws::String>
140 void SetBaseCommitId(BaseCommitIdT&& value) {
141 m_baseCommitIdHasBeenSet = true;
142 m_baseCommitId = std::forward<BaseCommitIdT>(value);
143 }
144 template <typename BaseCommitIdT = Aws::String>
146 SetBaseCommitId(std::forward<BaseCommitIdT>(value));
147 return *this;
148 }
150
152
153 inline const Aws::String& GetRequestId() const { return m_requestId; }
154 template <typename RequestIdT = Aws::String>
155 void SetRequestId(RequestIdT&& value) {
156 m_requestIdHasBeenSet = true;
157 m_requestId = std::forward<RequestIdT>(value);
158 }
159 template <typename RequestIdT = Aws::String>
161 SetRequestId(std::forward<RequestIdT>(value));
162 return *this;
163 }
165 private:
166 Aws::Vector<Conflict> m_conflicts;
167
168 Aws::String m_nextToken;
169
171
172 Aws::String m_destinationCommitId;
173
174 Aws::String m_sourceCommitId;
175
176 Aws::String m_baseCommitId;
177
178 Aws::String m_requestId;
179 bool m_conflictsHasBeenSet = false;
180 bool m_nextTokenHasBeenSet = false;
181 bool m_errorsHasBeenSet = false;
182 bool m_destinationCommitIdHasBeenSet = false;
183 bool m_sourceCommitIdHasBeenSet = false;
184 bool m_baseCommitIdHasBeenSet = false;
185 bool m_requestIdHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace CodeCommit
190} // 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