AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
GetMergeCommitResult.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13template <typename RESULT_TYPE>
14class AmazonWebServiceResult;
15
16namespace Utils {
17namespace Json {
18class JsonValue;
19} // namespace Json
20} // namespace Utils
21namespace CodeCommit {
22namespace Model {
24 public:
25 AWS_CODECOMMIT_API GetMergeCommitResult() = default;
28
30
34 inline const Aws::String& GetSourceCommitId() const { return m_sourceCommitId; }
35 template <typename SourceCommitIdT = Aws::String>
36 void SetSourceCommitId(SourceCommitIdT&& value) {
37 m_sourceCommitIdHasBeenSet = true;
38 m_sourceCommitId = std::forward<SourceCommitIdT>(value);
39 }
40 template <typename SourceCommitIdT = Aws::String>
41 GetMergeCommitResult& WithSourceCommitId(SourceCommitIdT&& value) {
42 SetSourceCommitId(std::forward<SourceCommitIdT>(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 GetMergeCommitResult& WithDestinationCommitId(DestinationCommitIdT&& value) {
60 SetDestinationCommitId(std::forward<DestinationCommitIdT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetBaseCommitId() const { return m_baseCommitId; }
70 template <typename BaseCommitIdT = Aws::String>
71 void SetBaseCommitId(BaseCommitIdT&& value) {
72 m_baseCommitIdHasBeenSet = true;
73 m_baseCommitId = std::forward<BaseCommitIdT>(value);
74 }
75 template <typename BaseCommitIdT = Aws::String>
76 GetMergeCommitResult& WithBaseCommitId(BaseCommitIdT&& value) {
77 SetBaseCommitId(std::forward<BaseCommitIdT>(value));
78 return *this;
79 }
81
83
88 inline const Aws::String& GetMergedCommitId() const { return m_mergedCommitId; }
89 template <typename MergedCommitIdT = Aws::String>
90 void SetMergedCommitId(MergedCommitIdT&& value) {
91 m_mergedCommitIdHasBeenSet = true;
92 m_mergedCommitId = std::forward<MergedCommitIdT>(value);
93 }
94 template <typename MergedCommitIdT = Aws::String>
95 GetMergeCommitResult& WithMergedCommitId(MergedCommitIdT&& value) {
96 SetMergedCommitId(std::forward<MergedCommitIdT>(value));
97 return *this;
98 }
100
102
103 inline const Aws::String& GetRequestId() const { return m_requestId; }
104 template <typename RequestIdT = Aws::String>
105 void SetRequestId(RequestIdT&& value) {
106 m_requestIdHasBeenSet = true;
107 m_requestId = std::forward<RequestIdT>(value);
108 }
109 template <typename RequestIdT = Aws::String>
110 GetMergeCommitResult& WithRequestId(RequestIdT&& value) {
111 SetRequestId(std::forward<RequestIdT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_sourceCommitId;
117
118 Aws::String m_destinationCommitId;
119
120 Aws::String m_baseCommitId;
121
122 Aws::String m_mergedCommitId;
123
124 Aws::String m_requestId;
125 bool m_sourceCommitIdHasBeenSet = false;
126 bool m_destinationCommitIdHasBeenSet = false;
127 bool m_baseCommitIdHasBeenSet = false;
128 bool m_mergedCommitIdHasBeenSet = false;
129 bool m_requestIdHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace CodeCommit
134} // namespace Aws
void SetDestinationCommitId(DestinationCommitIdT &&value)
AWS_CODECOMMIT_API GetMergeCommitResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMergeCommitResult & WithSourceCommitId(SourceCommitIdT &&value)
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