AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetMergeCommitResult.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace CodeCommit {
23namespace Model {
25 public:
26 AWS_CODECOMMIT_API GetMergeCommitResult() = default;
29
31
35 inline const Aws::String& GetSourceCommitId() const { return m_sourceCommitId; }
36 template <typename SourceCommitIdT = Aws::String>
37 void SetSourceCommitId(SourceCommitIdT&& value) {
38 m_sourceCommitIdHasBeenSet = true;
39 m_sourceCommitId = std::forward<SourceCommitIdT>(value);
40 }
41 template <typename SourceCommitIdT = Aws::String>
42 GetMergeCommitResult& WithSourceCommitId(SourceCommitIdT&& value) {
43 SetSourceCommitId(std::forward<SourceCommitIdT>(value));
44 return *this;
45 }
47
49
53 inline const Aws::String& GetDestinationCommitId() const { return m_destinationCommitId; }
54 template <typename DestinationCommitIdT = Aws::String>
55 void SetDestinationCommitId(DestinationCommitIdT&& value) {
56 m_destinationCommitIdHasBeenSet = true;
57 m_destinationCommitId = std::forward<DestinationCommitIdT>(value);
58 }
59 template <typename DestinationCommitIdT = Aws::String>
60 GetMergeCommitResult& WithDestinationCommitId(DestinationCommitIdT&& value) {
61 SetDestinationCommitId(std::forward<DestinationCommitIdT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetBaseCommitId() const { return m_baseCommitId; }
71 template <typename BaseCommitIdT = Aws::String>
72 void SetBaseCommitId(BaseCommitIdT&& value) {
73 m_baseCommitIdHasBeenSet = true;
74 m_baseCommitId = std::forward<BaseCommitIdT>(value);
75 }
76 template <typename BaseCommitIdT = Aws::String>
77 GetMergeCommitResult& WithBaseCommitId(BaseCommitIdT&& value) {
78 SetBaseCommitId(std::forward<BaseCommitIdT>(value));
79 return *this;
80 }
82
84
89 inline const Aws::String& GetMergedCommitId() const { return m_mergedCommitId; }
90 template <typename MergedCommitIdT = Aws::String>
91 void SetMergedCommitId(MergedCommitIdT&& value) {
92 m_mergedCommitIdHasBeenSet = true;
93 m_mergedCommitId = std::forward<MergedCommitIdT>(value);
94 }
95 template <typename MergedCommitIdT = Aws::String>
96 GetMergeCommitResult& WithMergedCommitId(MergedCommitIdT&& value) {
97 SetMergedCommitId(std::forward<MergedCommitIdT>(value));
98 return *this;
99 }
101
103
104 inline const Aws::String& GetRequestId() const { return m_requestId; }
105 template <typename RequestIdT = Aws::String>
106 void SetRequestId(RequestIdT&& value) {
107 m_requestIdHasBeenSet = true;
108 m_requestId = std::forward<RequestIdT>(value);
109 }
110 template <typename RequestIdT = Aws::String>
111 GetMergeCommitResult& WithRequestId(RequestIdT&& value) {
112 SetRequestId(std::forward<RequestIdT>(value));
113 return *this;
114 }
116 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
117
118 private:
119 Aws::String m_sourceCommitId;
120
121 Aws::String m_destinationCommitId;
122
123 Aws::String m_baseCommitId;
124
125 Aws::String m_mergedCommitId;
126
127 Aws::String m_requestId;
128 Aws::Http::HttpResponseCode m_HttpResponseCode;
129 bool m_sourceCommitIdHasBeenSet = false;
130 bool m_destinationCommitIdHasBeenSet = false;
131 bool m_baseCommitIdHasBeenSet = false;
132 bool m_mergedCommitIdHasBeenSet = false;
133 bool m_requestIdHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace CodeCommit
138} // namespace Aws
void SetDestinationCommitId(DestinationCommitIdT &&value)
AWS_CODECOMMIT_API GetMergeCommitResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMergeCommitResult & WithSourceCommitId(SourceCommitIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_CODECOMMIT_API GetMergeCommitResult()=default
GetMergeCommitResult & WithDestinationCommitId(DestinationCommitIdT &&value)
GetMergeCommitResult & WithRequestId(RequestIdT &&value)
GetMergeCommitResult & WithBaseCommitId(BaseCommitIdT &&value)
AWS_CODECOMMIT_API GetMergeCommitResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMergeCommitResult & WithMergedCommitId(MergedCommitIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue