AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
BatchDescribeMergeConflictsResult.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codecommit/model/Conflict.h>
11#include <aws/codecommit/model/BatchDescribeMergeConflictsError.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CodeCommit
27{
28namespace Model
29{
31 {
32 public:
33 AWS_CODECOMMIT_API BatchDescribeMergeConflictsResult() = default;
36
37
39
43 inline const Aws::Vector<Conflict>& GetConflicts() const { return m_conflicts; }
44 template<typename ConflictsT = Aws::Vector<Conflict>>
45 void SetConflicts(ConflictsT&& value) { m_conflictsHasBeenSet = true; m_conflicts = std::forward<ConflictsT>(value); }
46 template<typename ConflictsT = Aws::Vector<Conflict>>
47 BatchDescribeMergeConflictsResult& WithConflicts(ConflictsT&& value) { SetConflicts(std::forward<ConflictsT>(value)); return *this;}
48 template<typename ConflictsT = Conflict>
49 BatchDescribeMergeConflictsResult& AddConflicts(ConflictsT&& value) { m_conflictsHasBeenSet = true; m_conflicts.emplace_back(std::forward<ConflictsT>(value)); return *this; }
51
53
57 inline const Aws::String& GetNextToken() const { return m_nextToken; }
58 template<typename NextTokenT = Aws::String>
59 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
60 template<typename NextTokenT = Aws::String>
61 BatchDescribeMergeConflictsResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
63
65
69 inline const Aws::Vector<BatchDescribeMergeConflictsError>& GetErrors() const { return m_errors; }
70 template<typename ErrorsT = Aws::Vector<BatchDescribeMergeConflictsError>>
71 void SetErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors = std::forward<ErrorsT>(value); }
72 template<typename ErrorsT = Aws::Vector<BatchDescribeMergeConflictsError>>
73 BatchDescribeMergeConflictsResult& WithErrors(ErrorsT&& value) { SetErrors(std::forward<ErrorsT>(value)); return *this;}
74 template<typename ErrorsT = BatchDescribeMergeConflictsError>
75 BatchDescribeMergeConflictsResult& AddErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors.emplace_back(std::forward<ErrorsT>(value)); return *this; }
77
79
83 inline const Aws::String& GetDestinationCommitId() const { return m_destinationCommitId; }
84 template<typename DestinationCommitIdT = Aws::String>
85 void SetDestinationCommitId(DestinationCommitIdT&& value) { m_destinationCommitIdHasBeenSet = true; m_destinationCommitId = std::forward<DestinationCommitIdT>(value); }
86 template<typename DestinationCommitIdT = Aws::String>
87 BatchDescribeMergeConflictsResult& WithDestinationCommitId(DestinationCommitIdT&& value) { SetDestinationCommitId(std::forward<DestinationCommitIdT>(value)); return *this;}
89
91
95 inline const Aws::String& GetSourceCommitId() const { return m_sourceCommitId; }
96 template<typename SourceCommitIdT = Aws::String>
97 void SetSourceCommitId(SourceCommitIdT&& value) { m_sourceCommitIdHasBeenSet = true; m_sourceCommitId = std::forward<SourceCommitIdT>(value); }
98 template<typename SourceCommitIdT = Aws::String>
99 BatchDescribeMergeConflictsResult& WithSourceCommitId(SourceCommitIdT&& value) { SetSourceCommitId(std::forward<SourceCommitIdT>(value)); return *this;}
101
103
106 inline const Aws::String& GetBaseCommitId() const { return m_baseCommitId; }
107 template<typename BaseCommitIdT = Aws::String>
108 void SetBaseCommitId(BaseCommitIdT&& value) { m_baseCommitIdHasBeenSet = true; m_baseCommitId = std::forward<BaseCommitIdT>(value); }
109 template<typename BaseCommitIdT = Aws::String>
110 BatchDescribeMergeConflictsResult& WithBaseCommitId(BaseCommitIdT&& value) { SetBaseCommitId(std::forward<BaseCommitIdT>(value)); return *this;}
112
114
115 inline const Aws::String& GetRequestId() const { return m_requestId; }
116 template<typename RequestIdT = Aws::String>
117 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
118 template<typename RequestIdT = Aws::String>
119 BatchDescribeMergeConflictsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
121 private:
122
123 Aws::Vector<Conflict> m_conflicts;
124 bool m_conflictsHasBeenSet = false;
125
126 Aws::String m_nextToken;
127 bool m_nextTokenHasBeenSet = false;
128
130 bool m_errorsHasBeenSet = false;
131
132 Aws::String m_destinationCommitId;
133 bool m_destinationCommitIdHasBeenSet = false;
134
135 Aws::String m_sourceCommitId;
136 bool m_sourceCommitIdHasBeenSet = false;
137
138 Aws::String m_baseCommitId;
139 bool m_baseCommitIdHasBeenSet = false;
140
141 Aws::String m_requestId;
142 bool m_requestIdHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace CodeCommit
147} // 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