AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
GetMergeConflictsResult.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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace CodeCommit {
24namespace Model {
26 public:
27 AWS_CODECOMMIT_API GetMergeConflictsResult() = default;
30
32
36 inline bool GetMergeable() const { return m_mergeable; }
37 inline void SetMergeable(bool value) {
38 m_mergeableHasBeenSet = true;
39 m_mergeable = value;
40 }
42 SetMergeable(value);
43 return *this;
44 }
46
48
52 inline const Aws::String& GetDestinationCommitId() const { return m_destinationCommitId; }
53 template <typename DestinationCommitIdT = Aws::String>
54 void SetDestinationCommitId(DestinationCommitIdT&& value) {
55 m_destinationCommitIdHasBeenSet = true;
56 m_destinationCommitId = std::forward<DestinationCommitIdT>(value);
57 }
58 template <typename DestinationCommitIdT = Aws::String>
59 GetMergeConflictsResult& WithDestinationCommitId(DestinationCommitIdT&& value) {
60 SetDestinationCommitId(std::forward<DestinationCommitIdT>(value));
61 return *this;
62 }
64
66
70 inline const Aws::String& GetSourceCommitId() const { return m_sourceCommitId; }
71 template <typename SourceCommitIdT = Aws::String>
72 void SetSourceCommitId(SourceCommitIdT&& value) {
73 m_sourceCommitIdHasBeenSet = true;
74 m_sourceCommitId = std::forward<SourceCommitIdT>(value);
75 }
76 template <typename SourceCommitIdT = Aws::String>
77 GetMergeConflictsResult& WithSourceCommitId(SourceCommitIdT&& value) {
78 SetSourceCommitId(std::forward<SourceCommitIdT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetBaseCommitId() const { return m_baseCommitId; }
88 template <typename BaseCommitIdT = Aws::String>
89 void SetBaseCommitId(BaseCommitIdT&& value) {
90 m_baseCommitIdHasBeenSet = true;
91 m_baseCommitId = std::forward<BaseCommitIdT>(value);
92 }
93 template <typename BaseCommitIdT = Aws::String>
94 GetMergeConflictsResult& WithBaseCommitId(BaseCommitIdT&& value) {
95 SetBaseCommitId(std::forward<BaseCommitIdT>(value));
96 return *this;
97 }
99
101
105 inline const Aws::Vector<ConflictMetadata>& GetConflictMetadataList() const { return m_conflictMetadataList; }
106 template <typename ConflictMetadataListT = Aws::Vector<ConflictMetadata>>
107 void SetConflictMetadataList(ConflictMetadataListT&& value) {
108 m_conflictMetadataListHasBeenSet = true;
109 m_conflictMetadataList = std::forward<ConflictMetadataListT>(value);
110 }
111 template <typename ConflictMetadataListT = Aws::Vector<ConflictMetadata>>
112 GetMergeConflictsResult& WithConflictMetadataList(ConflictMetadataListT&& value) {
113 SetConflictMetadataList(std::forward<ConflictMetadataListT>(value));
114 return *this;
115 }
116 template <typename ConflictMetadataListT = ConflictMetadata>
117 GetMergeConflictsResult& AddConflictMetadataList(ConflictMetadataListT&& value) {
118 m_conflictMetadataListHasBeenSet = true;
119 m_conflictMetadataList.emplace_back(std::forward<ConflictMetadataListT>(value));
120 return *this;
121 }
123
125
129 inline const Aws::String& GetNextToken() const { return m_nextToken; }
130 template <typename NextTokenT = Aws::String>
131 void SetNextToken(NextTokenT&& value) {
132 m_nextTokenHasBeenSet = true;
133 m_nextToken = std::forward<NextTokenT>(value);
134 }
135 template <typename NextTokenT = Aws::String>
137 SetNextToken(std::forward<NextTokenT>(value));
138 return *this;
139 }
141
143
144 inline const Aws::String& GetRequestId() const { return m_requestId; }
145 template <typename RequestIdT = Aws::String>
146 void SetRequestId(RequestIdT&& value) {
147 m_requestIdHasBeenSet = true;
148 m_requestId = std::forward<RequestIdT>(value);
149 }
150 template <typename RequestIdT = Aws::String>
152 SetRequestId(std::forward<RequestIdT>(value));
153 return *this;
154 }
156 private:
157 bool m_mergeable{false};
158
159 Aws::String m_destinationCommitId;
160
161 Aws::String m_sourceCommitId;
162
163 Aws::String m_baseCommitId;
164
165 Aws::Vector<ConflictMetadata> m_conflictMetadataList;
166
167 Aws::String m_nextToken;
168
169 Aws::String m_requestId;
170 bool m_mergeableHasBeenSet = false;
171 bool m_destinationCommitIdHasBeenSet = false;
172 bool m_sourceCommitIdHasBeenSet = false;
173 bool m_baseCommitIdHasBeenSet = false;
174 bool m_conflictMetadataListHasBeenSet = false;
175 bool m_nextTokenHasBeenSet = false;
176 bool m_requestIdHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace CodeCommit
181} // namespace Aws
GetMergeConflictsResult & WithConflictMetadataList(ConflictMetadataListT &&value)
AWS_CODECOMMIT_API GetMergeConflictsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMergeConflictsResult & WithSourceCommitId(SourceCommitIdT &&value)
GetMergeConflictsResult & WithDestinationCommitId(DestinationCommitIdT &&value)
AWS_CODECOMMIT_API GetMergeConflictsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMergeConflictsResult & WithBaseCommitId(BaseCommitIdT &&value)
GetMergeConflictsResult & WithMergeable(bool value)
GetMergeConflictsResult & WithNextToken(NextTokenT &&value)
void SetDestinationCommitId(DestinationCommitIdT &&value)
void SetConflictMetadataList(ConflictMetadataListT &&value)
AWS_CODECOMMIT_API GetMergeConflictsResult()=default
const Aws::Vector< ConflictMetadata > & GetConflictMetadataList() const
GetMergeConflictsResult & WithRequestId(RequestIdT &&value)
GetMergeConflictsResult & AddConflictMetadataList(ConflictMetadataListT &&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