AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetMergeOptionsResult.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/model/MergeOptionTypeEnum.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace CodeCommit {
25namespace Model {
27 public:
28 AWS_CODECOMMIT_API GetMergeOptionsResult() = default;
31
33
36 inline const Aws::Vector<MergeOptionTypeEnum>& GetMergeOptions() const { return m_mergeOptions; }
37 template <typename MergeOptionsT = Aws::Vector<MergeOptionTypeEnum>>
38 void SetMergeOptions(MergeOptionsT&& value) {
39 m_mergeOptionsHasBeenSet = true;
40 m_mergeOptions = std::forward<MergeOptionsT>(value);
41 }
42 template <typename MergeOptionsT = Aws::Vector<MergeOptionTypeEnum>>
43 GetMergeOptionsResult& WithMergeOptions(MergeOptionsT&& value) {
44 SetMergeOptions(std::forward<MergeOptionsT>(value));
45 return *this;
46 }
48 m_mergeOptionsHasBeenSet = true;
49 m_mergeOptions.push_back(value);
50 return *this;
51 }
53
55
59 inline const Aws::String& GetSourceCommitId() const { return m_sourceCommitId; }
60 template <typename SourceCommitIdT = Aws::String>
61 void SetSourceCommitId(SourceCommitIdT&& value) {
62 m_sourceCommitIdHasBeenSet = true;
63 m_sourceCommitId = std::forward<SourceCommitIdT>(value);
64 }
65 template <typename SourceCommitIdT = Aws::String>
66 GetMergeOptionsResult& WithSourceCommitId(SourceCommitIdT&& value) {
67 SetSourceCommitId(std::forward<SourceCommitIdT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetDestinationCommitId() const { return m_destinationCommitId; }
78 template <typename DestinationCommitIdT = Aws::String>
79 void SetDestinationCommitId(DestinationCommitIdT&& value) {
80 m_destinationCommitIdHasBeenSet = true;
81 m_destinationCommitId = std::forward<DestinationCommitIdT>(value);
82 }
83 template <typename DestinationCommitIdT = Aws::String>
84 GetMergeOptionsResult& WithDestinationCommitId(DestinationCommitIdT&& value) {
85 SetDestinationCommitId(std::forward<DestinationCommitIdT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetBaseCommitId() const { return m_baseCommitId; }
95 template <typename BaseCommitIdT = Aws::String>
96 void SetBaseCommitId(BaseCommitIdT&& value) {
97 m_baseCommitIdHasBeenSet = true;
98 m_baseCommitId = std::forward<BaseCommitIdT>(value);
99 }
100 template <typename BaseCommitIdT = Aws::String>
101 GetMergeOptionsResult& WithBaseCommitId(BaseCommitIdT&& value) {
102 SetBaseCommitId(std::forward<BaseCommitIdT>(value));
103 return *this;
104 }
106
108
109 inline const Aws::String& GetRequestId() const { return m_requestId; }
110 template <typename RequestIdT = Aws::String>
111 void SetRequestId(RequestIdT&& value) {
112 m_requestIdHasBeenSet = true;
113 m_requestId = std::forward<RequestIdT>(value);
114 }
115 template <typename RequestIdT = Aws::String>
117 SetRequestId(std::forward<RequestIdT>(value));
118 return *this;
119 }
121 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
122
123 private:
125
126 Aws::String m_sourceCommitId;
127
128 Aws::String m_destinationCommitId;
129
130 Aws::String m_baseCommitId;
131
132 Aws::String m_requestId;
133 Aws::Http::HttpResponseCode m_HttpResponseCode;
134 bool m_mergeOptionsHasBeenSet = false;
135 bool m_sourceCommitIdHasBeenSet = false;
136 bool m_destinationCommitIdHasBeenSet = false;
137 bool m_baseCommitIdHasBeenSet = false;
138 bool m_requestIdHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace CodeCommit
143} // namespace Aws
AWS_CODECOMMIT_API GetMergeOptionsResult()=default
GetMergeOptionsResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetMergeOptionsResult & AddMergeOptions(MergeOptionTypeEnum value)
const Aws::Vector< MergeOptionTypeEnum > & GetMergeOptions() const
void SetDestinationCommitId(DestinationCommitIdT &&value)
GetMergeOptionsResult & WithDestinationCommitId(DestinationCommitIdT &&value)
GetMergeOptionsResult & WithSourceCommitId(SourceCommitIdT &&value)
GetMergeOptionsResult & WithMergeOptions(MergeOptionsT &&value)
AWS_CODECOMMIT_API GetMergeOptionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CODECOMMIT_API GetMergeOptionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMergeOptionsResult & WithBaseCommitId(BaseCommitIdT &&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