AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
35
36
38
42 inline bool GetMergeable() const{ return m_mergeable; }
43 inline void SetMergeable(bool value) { 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 inline void SetDestinationCommitId(const Aws::String& value) { m_destinationCommitId = value; }
54 inline void SetDestinationCommitId(Aws::String&& value) { m_destinationCommitId = std::move(value); }
55 inline void SetDestinationCommitId(const char* value) { m_destinationCommitId.assign(value); }
57 inline GetMergeConflictsResult& WithDestinationCommitId(Aws::String&& value) { SetDestinationCommitId(std::move(value)); return *this;}
58 inline GetMergeConflictsResult& WithDestinationCommitId(const char* value) { SetDestinationCommitId(value); return *this;}
60
62
66 inline const Aws::String& GetSourceCommitId() const{ return m_sourceCommitId; }
67 inline void SetSourceCommitId(const Aws::String& value) { m_sourceCommitId = value; }
68 inline void SetSourceCommitId(Aws::String&& value) { m_sourceCommitId = std::move(value); }
69 inline void SetSourceCommitId(const char* value) { m_sourceCommitId.assign(value); }
70 inline GetMergeConflictsResult& WithSourceCommitId(const Aws::String& value) { SetSourceCommitId(value); return *this;}
71 inline GetMergeConflictsResult& WithSourceCommitId(Aws::String&& value) { SetSourceCommitId(std::move(value)); return *this;}
72 inline GetMergeConflictsResult& WithSourceCommitId(const char* value) { SetSourceCommitId(value); return *this;}
74
76
79 inline const Aws::String& GetBaseCommitId() const{ return m_baseCommitId; }
80 inline void SetBaseCommitId(const Aws::String& value) { m_baseCommitId = value; }
81 inline void SetBaseCommitId(Aws::String&& value) { m_baseCommitId = std::move(value); }
82 inline void SetBaseCommitId(const char* value) { m_baseCommitId.assign(value); }
83 inline GetMergeConflictsResult& WithBaseCommitId(const Aws::String& value) { SetBaseCommitId(value); return *this;}
84 inline GetMergeConflictsResult& WithBaseCommitId(Aws::String&& value) { SetBaseCommitId(std::move(value)); return *this;}
85 inline GetMergeConflictsResult& WithBaseCommitId(const char* value) { SetBaseCommitId(value); return *this;}
87
89
93 inline const Aws::Vector<ConflictMetadata>& GetConflictMetadataList() const{ return m_conflictMetadataList; }
94 inline void SetConflictMetadataList(const Aws::Vector<ConflictMetadata>& value) { m_conflictMetadataList = value; }
95 inline void SetConflictMetadataList(Aws::Vector<ConflictMetadata>&& value) { m_conflictMetadataList = std::move(value); }
98 inline GetMergeConflictsResult& AddConflictMetadataList(const ConflictMetadata& value) { m_conflictMetadataList.push_back(value); return *this; }
99 inline GetMergeConflictsResult& AddConflictMetadataList(ConflictMetadata&& value) { m_conflictMetadataList.push_back(std::move(value)); return *this; }
101
103
107 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
108 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
109 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
110 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
111 inline GetMergeConflictsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
112 inline GetMergeConflictsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
113 inline GetMergeConflictsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
115
117
118 inline const Aws::String& GetRequestId() const{ return m_requestId; }
119 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
120 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
121 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
122 inline GetMergeConflictsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
123 inline GetMergeConflictsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
124 inline GetMergeConflictsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
126 private:
127
128 bool m_mergeable;
129
130 Aws::String m_destinationCommitId;
131
132 Aws::String m_sourceCommitId;
133
134 Aws::String m_baseCommitId;
135
136 Aws::Vector<ConflictMetadata> m_conflictMetadataList;
137
138 Aws::String m_nextToken;
139
140 Aws::String m_requestId;
141 };
142
143} // namespace Model
144} // namespace CodeCommit
145} // namespace Aws
void SetConflictMetadataList(Aws::Vector< ConflictMetadata > &&value)
GetMergeConflictsResult & WithDestinationCommitId(Aws::String &&value)
GetMergeConflictsResult & WithBaseCommitId(Aws::String &&value)
GetMergeConflictsResult & WithBaseCommitId(const Aws::String &value)
GetMergeConflictsResult & WithDestinationCommitId(const Aws::String &value)
AWS_CODECOMMIT_API GetMergeConflictsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMergeConflictsResult & WithRequestId(const Aws::String &value)
GetMergeConflictsResult & WithSourceCommitId(Aws::String &&value)
void SetConflictMetadataList(const Aws::Vector< ConflictMetadata > &value)
AWS_CODECOMMIT_API GetMergeConflictsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMergeConflictsResult & WithBaseCommitId(const char *value)
GetMergeConflictsResult & WithMergeable(bool value)
GetMergeConflictsResult & WithNextToken(Aws::String &&value)
GetMergeConflictsResult & WithDestinationCommitId(const char *value)
GetMergeConflictsResult & WithNextToken(const char *value)
GetMergeConflictsResult & WithSourceCommitId(const Aws::String &value)
GetMergeConflictsResult & WithConflictMetadataList(const Aws::Vector< ConflictMetadata > &value)
GetMergeConflictsResult & AddConflictMetadataList(ConflictMetadata &&value)
GetMergeConflictsResult & WithConflictMetadataList(Aws::Vector< ConflictMetadata > &&value)
const Aws::Vector< ConflictMetadata > & GetConflictMetadataList() const
GetMergeConflictsResult & WithNextToken(const Aws::String &value)
GetMergeConflictsResult & WithRequestId(Aws::String &&value)
GetMergeConflictsResult & WithRequestId(const char *value)
GetMergeConflictsResult & AddConflictMetadataList(const ConflictMetadata &value)
GetMergeConflictsResult & WithSourceCommitId(const char *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