AWS SDK for C++  1.8.152
AWS SDK for C++
GetMergeOptionsResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace CodeCommit
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<MergeOptionTypeEnum>& GetMergeOptions() const{ return m_mergeOptions; }
41 
45  inline void SetMergeOptions(const Aws::Vector<MergeOptionTypeEnum>& value) { m_mergeOptions = value; }
46 
50  inline void SetMergeOptions(Aws::Vector<MergeOptionTypeEnum>&& value) { m_mergeOptions = std::move(value); }
51 
55  inline GetMergeOptionsResult& WithMergeOptions(const Aws::Vector<MergeOptionTypeEnum>& value) { SetMergeOptions(value); return *this;}
56 
60  inline GetMergeOptionsResult& WithMergeOptions(Aws::Vector<MergeOptionTypeEnum>&& value) { SetMergeOptions(std::move(value)); return *this;}
61 
65  inline GetMergeOptionsResult& AddMergeOptions(const MergeOptionTypeEnum& value) { m_mergeOptions.push_back(value); return *this; }
66 
70  inline GetMergeOptionsResult& AddMergeOptions(MergeOptionTypeEnum&& value) { m_mergeOptions.push_back(std::move(value)); return *this; }
71 
72 
77  inline const Aws::String& GetSourceCommitId() const{ return m_sourceCommitId; }
78 
83  inline void SetSourceCommitId(const Aws::String& value) { m_sourceCommitId = value; }
84 
89  inline void SetSourceCommitId(Aws::String&& value) { m_sourceCommitId = std::move(value); }
90 
95  inline void SetSourceCommitId(const char* value) { m_sourceCommitId.assign(value); }
96 
101  inline GetMergeOptionsResult& WithSourceCommitId(const Aws::String& value) { SetSourceCommitId(value); return *this;}
102 
107  inline GetMergeOptionsResult& WithSourceCommitId(Aws::String&& value) { SetSourceCommitId(std::move(value)); return *this;}
108 
113  inline GetMergeOptionsResult& WithSourceCommitId(const char* value) { SetSourceCommitId(value); return *this;}
114 
115 
120  inline const Aws::String& GetDestinationCommitId() const{ return m_destinationCommitId; }
121 
126  inline void SetDestinationCommitId(const Aws::String& value) { m_destinationCommitId = value; }
127 
132  inline void SetDestinationCommitId(Aws::String&& value) { m_destinationCommitId = std::move(value); }
133 
138  inline void SetDestinationCommitId(const char* value) { m_destinationCommitId.assign(value); }
139 
144  inline GetMergeOptionsResult& WithDestinationCommitId(const Aws::String& value) { SetDestinationCommitId(value); return *this;}
145 
150  inline GetMergeOptionsResult& WithDestinationCommitId(Aws::String&& value) { SetDestinationCommitId(std::move(value)); return *this;}
151 
156  inline GetMergeOptionsResult& WithDestinationCommitId(const char* value) { SetDestinationCommitId(value); return *this;}
157 
158 
162  inline const Aws::String& GetBaseCommitId() const{ return m_baseCommitId; }
163 
167  inline void SetBaseCommitId(const Aws::String& value) { m_baseCommitId = value; }
168 
172  inline void SetBaseCommitId(Aws::String&& value) { m_baseCommitId = std::move(value); }
173 
177  inline void SetBaseCommitId(const char* value) { m_baseCommitId.assign(value); }
178 
182  inline GetMergeOptionsResult& WithBaseCommitId(const Aws::String& value) { SetBaseCommitId(value); return *this;}
183 
187  inline GetMergeOptionsResult& WithBaseCommitId(Aws::String&& value) { SetBaseCommitId(std::move(value)); return *this;}
188 
192  inline GetMergeOptionsResult& WithBaseCommitId(const char* value) { SetBaseCommitId(value); return *this;}
193 
194  private:
195 
196  Aws::Vector<MergeOptionTypeEnum> m_mergeOptions;
197 
198  Aws::String m_sourceCommitId;
199 
200  Aws::String m_destinationCommitId;
201 
202  Aws::String m_baseCommitId;
203  };
204 
205 } // namespace Model
206 } // namespace CodeCommit
207 } // namespace Aws
Aws::CodeCommit::Model::GetMergeOptionsResult::GetDestinationCommitId
const Aws::String & GetDestinationCommitId() const
Definition: GetMergeOptionsResult.h:120
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::CodeCommit::Model::GetMergeOptionsResult::WithBaseCommitId
GetMergeOptionsResult & WithBaseCommitId(const char *value)
Definition: GetMergeOptionsResult.h:192
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::GetMergeOptionsResult::GetMergeOptions
const Aws::Vector< MergeOptionTypeEnum > & GetMergeOptions() const
Definition: GetMergeOptionsResult.h:40
Aws::CodeCommit::Model::GetMergeOptionsResult::WithBaseCommitId
GetMergeOptionsResult & WithBaseCommitId(Aws::String &&value)
Definition: GetMergeOptionsResult.h:187
Aws::CodeCommit::Model::GetMergeOptionsResult::GetBaseCommitId
const Aws::String & GetBaseCommitId() const
Definition: GetMergeOptionsResult.h:162
Aws::CodeCommit::Model::GetMergeOptionsResult::GetSourceCommitId
const Aws::String & GetSourceCommitId() const
Definition: GetMergeOptionsResult.h:77
Aws::CodeCommit::Model::GetMergeOptionsResult::WithSourceCommitId
GetMergeOptionsResult & WithSourceCommitId(const char *value)
Definition: GetMergeOptionsResult.h:113
Aws::CodeCommit::Model::GetMergeOptionsResult::SetDestinationCommitId
void SetDestinationCommitId(const Aws::String &value)
Definition: GetMergeOptionsResult.h:126
Aws::CodeCommit::Model::GetMergeOptionsResult::SetBaseCommitId
void SetBaseCommitId(Aws::String &&value)
Definition: GetMergeOptionsResult.h:172
Aws::CodeCommit::Model::GetMergeOptionsResult::SetSourceCommitId
void SetSourceCommitId(const char *value)
Definition: GetMergeOptionsResult.h:95
Aws::CodeCommit::Model::GetMergeOptionsResult::SetSourceCommitId
void SetSourceCommitId(const Aws::String &value)
Definition: GetMergeOptionsResult.h:83
Aws::CodeCommit::Model::GetMergeOptionsResult::WithSourceCommitId
GetMergeOptionsResult & WithSourceCommitId(Aws::String &&value)
Definition: GetMergeOptionsResult.h:107
Aws::CodeCommit::Model::GetMergeOptionsResult::SetMergeOptions
void SetMergeOptions(const Aws::Vector< MergeOptionTypeEnum > &value)
Definition: GetMergeOptionsResult.h:45
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CodeCommit::Model::GetMergeOptionsResult::SetBaseCommitId
void SetBaseCommitId(const char *value)
Definition: GetMergeOptionsResult.h:177
AWSVector.h
Aws::CodeCommit::Model::MergeOptionTypeEnum
MergeOptionTypeEnum
Definition: MergeOptionTypeEnum.h:17
Aws::CodeCommit::Model::GetMergeOptionsResult::SetDestinationCommitId
void SetDestinationCommitId(Aws::String &&value)
Definition: GetMergeOptionsResult.h:132
MergeOptionTypeEnum.h
Aws::CodeCommit::Model::GetMergeOptionsResult::SetSourceCommitId
void SetSourceCommitId(Aws::String &&value)
Definition: GetMergeOptionsResult.h:89
Aws::CodeCommit::Model::GetMergeOptionsResult::SetDestinationCommitId
void SetDestinationCommitId(const char *value)
Definition: GetMergeOptionsResult.h:138
Aws::CodeCommit::Model::GetMergeOptionsResult::WithMergeOptions
GetMergeOptionsResult & WithMergeOptions(const Aws::Vector< MergeOptionTypeEnum > &value)
Definition: GetMergeOptionsResult.h:55
Aws::CodeCommit::Model::GetMergeOptionsResult::WithSourceCommitId
GetMergeOptionsResult & WithSourceCommitId(const Aws::String &value)
Definition: GetMergeOptionsResult.h:101
Aws::CodeCommit::Model::GetMergeOptionsResult::operator=
GetMergeOptionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeCommit::Model::GetMergeOptionsResult::WithMergeOptions
GetMergeOptionsResult & WithMergeOptions(Aws::Vector< MergeOptionTypeEnum > &&value)
Definition: GetMergeOptionsResult.h:60
Aws::CodeCommit::Model::GetMergeOptionsResult::SetBaseCommitId
void SetBaseCommitId(const Aws::String &value)
Definition: GetMergeOptionsResult.h:167
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::GetMergeOptionsResult::AddMergeOptions
GetMergeOptionsResult & AddMergeOptions(MergeOptionTypeEnum &&value)
Definition: GetMergeOptionsResult.h:70
Aws::CodeCommit::Model::GetMergeOptionsResult::WithDestinationCommitId
GetMergeOptionsResult & WithDestinationCommitId(const Aws::String &value)
Definition: GetMergeOptionsResult.h:144
Aws::CodeCommit::Model::GetMergeOptionsResult::WithDestinationCommitId
GetMergeOptionsResult & WithDestinationCommitId(const char *value)
Definition: GetMergeOptionsResult.h:156
Aws::CodeCommit::Model::GetMergeOptionsResult::WithBaseCommitId
GetMergeOptionsResult & WithBaseCommitId(const Aws::String &value)
Definition: GetMergeOptionsResult.h:182
Aws::CodeCommit::Model::GetMergeOptionsResult::GetMergeOptionsResult
GetMergeOptionsResult()
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::GetMergeOptionsResult::GetMergeOptionsResult
GetMergeOptionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeCommit::Model::GetMergeOptionsResult::SetMergeOptions
void SetMergeOptions(Aws::Vector< MergeOptionTypeEnum > &&value)
Definition: GetMergeOptionsResult.h:50
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::GetMergeOptionsResult
Definition: GetMergeOptionsResult.h:30
Aws::CodeCommit::Model::GetMergeOptionsResult::AddMergeOptions
GetMergeOptionsResult & AddMergeOptions(const MergeOptionTypeEnum &value)
Definition: GetMergeOptionsResult.h:65
Aws::CodeCommit::Model::GetMergeOptionsResult::WithDestinationCommitId
GetMergeOptionsResult & WithDestinationCommitId(Aws::String &&value)
Definition: GetMergeOptionsResult.h:150