AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetMergeConflictsResult.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/codecommit/model/ConflictMetadata.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CodeCommit
26{
27namespace Model
28{
30 {
31 public:
32 AWS_CODECOMMIT_API GetMergeConflictsResult() = default;
35
36
38
42 inline bool GetMergeable() const { return m_mergeable; }
43 inline void SetMergeable(bool value) { m_mergeableHasBeenSet = true; m_mergeable = value; }
44 inline GetMergeConflictsResult& WithMergeable(bool value) { SetMergeable(value); return *this;}
46
48
52 inline const Aws::String& GetDestinationCommitId() const { return m_destinationCommitId; }
53 template<typename DestinationCommitIdT = Aws::String>
54 void SetDestinationCommitId(DestinationCommitIdT&& value) { m_destinationCommitIdHasBeenSet = true; m_destinationCommitId = std::forward<DestinationCommitIdT>(value); }
55 template<typename DestinationCommitIdT = Aws::String>
56 GetMergeConflictsResult& WithDestinationCommitId(DestinationCommitIdT&& value) { SetDestinationCommitId(std::forward<DestinationCommitIdT>(value)); return *this;}
58
60
64 inline const Aws::String& GetSourceCommitId() const { return m_sourceCommitId; }
65 template<typename SourceCommitIdT = Aws::String>
66 void SetSourceCommitId(SourceCommitIdT&& value) { m_sourceCommitIdHasBeenSet = true; m_sourceCommitId = std::forward<SourceCommitIdT>(value); }
67 template<typename SourceCommitIdT = Aws::String>
68 GetMergeConflictsResult& WithSourceCommitId(SourceCommitIdT&& value) { SetSourceCommitId(std::forward<SourceCommitIdT>(value)); return *this;}
70
72
75 inline const Aws::String& GetBaseCommitId() const { return m_baseCommitId; }
76 template<typename BaseCommitIdT = Aws::String>
77 void SetBaseCommitId(BaseCommitIdT&& value) { m_baseCommitIdHasBeenSet = true; m_baseCommitId = std::forward<BaseCommitIdT>(value); }
78 template<typename BaseCommitIdT = Aws::String>
79 GetMergeConflictsResult& WithBaseCommitId(BaseCommitIdT&& value) { SetBaseCommitId(std::forward<BaseCommitIdT>(value)); return *this;}
81
83
87 inline const Aws::Vector<ConflictMetadata>& GetConflictMetadataList() const { return m_conflictMetadataList; }
88 template<typename ConflictMetadataListT = Aws::Vector<ConflictMetadata>>
89 void SetConflictMetadataList(ConflictMetadataListT&& value) { m_conflictMetadataListHasBeenSet = true; m_conflictMetadataList = std::forward<ConflictMetadataListT>(value); }
90 template<typename ConflictMetadataListT = Aws::Vector<ConflictMetadata>>
91 GetMergeConflictsResult& WithConflictMetadataList(ConflictMetadataListT&& value) { SetConflictMetadataList(std::forward<ConflictMetadataListT>(value)); return *this;}
92 template<typename ConflictMetadataListT = ConflictMetadata>
93 GetMergeConflictsResult& AddConflictMetadataList(ConflictMetadataListT&& value) { m_conflictMetadataListHasBeenSet = true; m_conflictMetadataList.emplace_back(std::forward<ConflictMetadataListT>(value)); return *this; }
95
97
101 inline const Aws::String& GetNextToken() const { return m_nextToken; }
102 template<typename NextTokenT = Aws::String>
103 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
104 template<typename NextTokenT = Aws::String>
105 GetMergeConflictsResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
107
109
110 inline const Aws::String& GetRequestId() const { return m_requestId; }
111 template<typename RequestIdT = Aws::String>
112 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
113 template<typename RequestIdT = Aws::String>
114 GetMergeConflictsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
116 private:
117
118 bool m_mergeable{false};
119 bool m_mergeableHasBeenSet = false;
120
121 Aws::String m_destinationCommitId;
122 bool m_destinationCommitIdHasBeenSet = false;
123
124 Aws::String m_sourceCommitId;
125 bool m_sourceCommitIdHasBeenSet = false;
126
127 Aws::String m_baseCommitId;
128 bool m_baseCommitIdHasBeenSet = false;
129
130 Aws::Vector<ConflictMetadata> m_conflictMetadataList;
131 bool m_conflictMetadataListHasBeenSet = false;
132
133 Aws::String m_nextToken;
134 bool m_nextTokenHasBeenSet = false;
135
136 Aws::String m_requestId;
137 bool m_requestIdHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace CodeCommit
142} // 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