AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
BatchDescribeMergeConflictsRequest.h
1
6#pragma once
7#include <aws/codecommit/CodeCommitRequest.h>
8#include <aws/codecommit/CodeCommit_EXPORTS.h>
9#include <aws/codecommit/model/ConflictDetailLevelTypeEnum.h>
10#include <aws/codecommit/model/ConflictResolutionStrategyTypeEnum.h>
11#include <aws/codecommit/model/MergeOptionTypeEnum.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace CodeCommit {
19namespace Model {
20
24 public:
25 AWS_CODECOMMIT_API BatchDescribeMergeConflictsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "BatchDescribeMergeConflicts"; }
32
33 AWS_CODECOMMIT_API Aws::String SerializePayload() const override;
34
36
38
42 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
43 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
44 template <typename RepositoryNameT = Aws::String>
45 void SetRepositoryName(RepositoryNameT&& value) {
46 m_repositoryNameHasBeenSet = true;
47 m_repositoryName = std::forward<RepositoryNameT>(value);
48 }
49 template <typename RepositoryNameT = Aws::String>
51 SetRepositoryName(std::forward<RepositoryNameT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetDestinationCommitSpecifier() const { return m_destinationCommitSpecifier; }
62 inline bool DestinationCommitSpecifierHasBeenSet() const { return m_destinationCommitSpecifierHasBeenSet; }
63 template <typename DestinationCommitSpecifierT = Aws::String>
64 void SetDestinationCommitSpecifier(DestinationCommitSpecifierT&& value) {
65 m_destinationCommitSpecifierHasBeenSet = true;
66 m_destinationCommitSpecifier = std::forward<DestinationCommitSpecifierT>(value);
67 }
68 template <typename DestinationCommitSpecifierT = Aws::String>
70 SetDestinationCommitSpecifier(std::forward<DestinationCommitSpecifierT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetSourceCommitSpecifier() const { return m_sourceCommitSpecifier; }
81 inline bool SourceCommitSpecifierHasBeenSet() const { return m_sourceCommitSpecifierHasBeenSet; }
82 template <typename SourceCommitSpecifierT = Aws::String>
83 void SetSourceCommitSpecifier(SourceCommitSpecifierT&& value) {
84 m_sourceCommitSpecifierHasBeenSet = true;
85 m_sourceCommitSpecifier = std::forward<SourceCommitSpecifierT>(value);
86 }
87 template <typename SourceCommitSpecifierT = Aws::String>
89 SetSourceCommitSpecifier(std::forward<SourceCommitSpecifierT>(value));
90 return *this;
91 }
93
95
98 inline MergeOptionTypeEnum GetMergeOption() const { return m_mergeOption; }
99 inline bool MergeOptionHasBeenSet() const { return m_mergeOptionHasBeenSet; }
101 m_mergeOptionHasBeenSet = true;
102 m_mergeOption = value;
103 }
105 SetMergeOption(value);
106 return *this;
107 }
109
111
114 inline int GetMaxMergeHunks() const { return m_maxMergeHunks; }
115 inline bool MaxMergeHunksHasBeenSet() const { return m_maxMergeHunksHasBeenSet; }
116 inline void SetMaxMergeHunks(int value) {
117 m_maxMergeHunksHasBeenSet = true;
118 m_maxMergeHunks = value;
119 }
121 SetMaxMergeHunks(value);
122 return *this;
123 }
125
127
130 inline int GetMaxConflictFiles() const { return m_maxConflictFiles; }
131 inline bool MaxConflictFilesHasBeenSet() const { return m_maxConflictFilesHasBeenSet; }
132 inline void SetMaxConflictFiles(int value) {
133 m_maxConflictFilesHasBeenSet = true;
134 m_maxConflictFiles = value;
135 }
137 SetMaxConflictFiles(value);
138 return *this;
139 }
141
143
147 inline const Aws::Vector<Aws::String>& GetFilePaths() const { return m_filePaths; }
148 inline bool FilePathsHasBeenSet() const { return m_filePathsHasBeenSet; }
149 template <typename FilePathsT = Aws::Vector<Aws::String>>
150 void SetFilePaths(FilePathsT&& value) {
151 m_filePathsHasBeenSet = true;
152 m_filePaths = std::forward<FilePathsT>(value);
153 }
154 template <typename FilePathsT = Aws::Vector<Aws::String>>
156 SetFilePaths(std::forward<FilePathsT>(value));
157 return *this;
158 }
159 template <typename FilePathsT = Aws::String>
161 m_filePathsHasBeenSet = true;
162 m_filePaths.emplace_back(std::forward<FilePathsT>(value));
163 return *this;
164 }
166
168
175 inline ConflictDetailLevelTypeEnum GetConflictDetailLevel() const { return m_conflictDetailLevel; }
176 inline bool ConflictDetailLevelHasBeenSet() const { return m_conflictDetailLevelHasBeenSet; }
178 m_conflictDetailLevelHasBeenSet = true;
179 m_conflictDetailLevel = value;
180 }
183 return *this;
184 }
186
188
194 inline ConflictResolutionStrategyTypeEnum GetConflictResolutionStrategy() const { return m_conflictResolutionStrategy; }
195 inline bool ConflictResolutionStrategyHasBeenSet() const { return m_conflictResolutionStrategyHasBeenSet; }
197 m_conflictResolutionStrategyHasBeenSet = true;
198 m_conflictResolutionStrategy = value;
199 }
202 return *this;
203 }
205
207
211 inline const Aws::String& GetNextToken() const { return m_nextToken; }
212 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
213 template <typename NextTokenT = Aws::String>
214 void SetNextToken(NextTokenT&& value) {
215 m_nextTokenHasBeenSet = true;
216 m_nextToken = std::forward<NextTokenT>(value);
217 }
218 template <typename NextTokenT = Aws::String>
220 SetNextToken(std::forward<NextTokenT>(value));
221 return *this;
222 }
224 private:
225 Aws::String m_repositoryName;
226
227 Aws::String m_destinationCommitSpecifier;
228
229 Aws::String m_sourceCommitSpecifier;
230
232
233 int m_maxMergeHunks{0};
234
235 int m_maxConflictFiles{0};
236
237 Aws::Vector<Aws::String> m_filePaths;
238
240
242
243 Aws::String m_nextToken;
244 bool m_repositoryNameHasBeenSet = false;
245 bool m_destinationCommitSpecifierHasBeenSet = false;
246 bool m_sourceCommitSpecifierHasBeenSet = false;
247 bool m_mergeOptionHasBeenSet = false;
248 bool m_maxMergeHunksHasBeenSet = false;
249 bool m_maxConflictFilesHasBeenSet = false;
250 bool m_filePathsHasBeenSet = false;
251 bool m_conflictDetailLevelHasBeenSet = false;
252 bool m_conflictResolutionStrategyHasBeenSet = false;
253 bool m_nextTokenHasBeenSet = false;
254};
255
256} // namespace Model
257} // namespace CodeCommit
258} // namespace Aws
BatchDescribeMergeConflictsRequest & WithNextToken(NextTokenT &&value)
BatchDescribeMergeConflictsRequest & AddFilePaths(FilePathsT &&value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CODECOMMIT_API BatchDescribeMergeConflictsRequest()=default
BatchDescribeMergeConflictsRequest & WithFilePaths(FilePathsT &&value)
BatchDescribeMergeConflictsRequest & WithRepositoryName(RepositoryNameT &&value)
BatchDescribeMergeConflictsRequest & WithConflictDetailLevel(ConflictDetailLevelTypeEnum value)
BatchDescribeMergeConflictsRequest & WithMergeOption(MergeOptionTypeEnum value)
BatchDescribeMergeConflictsRequest & WithDestinationCommitSpecifier(DestinationCommitSpecifierT &&value)
BatchDescribeMergeConflictsRequest & WithConflictResolutionStrategy(ConflictResolutionStrategyTypeEnum value)
void SetConflictResolutionStrategy(ConflictResolutionStrategyTypeEnum value)
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
BatchDescribeMergeConflictsRequest & WithSourceCommitSpecifier(SourceCommitSpecifierT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector