AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetMergeOptionsResult.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/MergeOptionTypeEnum.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CodeCommit
26{
27namespace Model
28{
30 {
31 public:
32 AWS_CODECOMMIT_API GetMergeOptionsResult();
35
36
38
41 inline const Aws::Vector<MergeOptionTypeEnum>& GetMergeOptions() const{ return m_mergeOptions; }
42 inline void SetMergeOptions(const Aws::Vector<MergeOptionTypeEnum>& value) { m_mergeOptions = value; }
43 inline void SetMergeOptions(Aws::Vector<MergeOptionTypeEnum>&& value) { m_mergeOptions = std::move(value); }
46 inline GetMergeOptionsResult& AddMergeOptions(const MergeOptionTypeEnum& value) { m_mergeOptions.push_back(value); return *this; }
47 inline GetMergeOptionsResult& AddMergeOptions(MergeOptionTypeEnum&& value) { m_mergeOptions.push_back(std::move(value)); return *this; }
49
51
55 inline const Aws::String& GetSourceCommitId() const{ return m_sourceCommitId; }
56 inline void SetSourceCommitId(const Aws::String& value) { m_sourceCommitId = value; }
57 inline void SetSourceCommitId(Aws::String&& value) { m_sourceCommitId = std::move(value); }
58 inline void SetSourceCommitId(const char* value) { m_sourceCommitId.assign(value); }
59 inline GetMergeOptionsResult& WithSourceCommitId(const Aws::String& value) { SetSourceCommitId(value); return *this;}
60 inline GetMergeOptionsResult& WithSourceCommitId(Aws::String&& value) { SetSourceCommitId(std::move(value)); return *this;}
61 inline GetMergeOptionsResult& WithSourceCommitId(const char* value) { SetSourceCommitId(value); return *this;}
63
65
69 inline const Aws::String& GetDestinationCommitId() const{ return m_destinationCommitId; }
70 inline void SetDestinationCommitId(const Aws::String& value) { m_destinationCommitId = value; }
71 inline void SetDestinationCommitId(Aws::String&& value) { m_destinationCommitId = std::move(value); }
72 inline void SetDestinationCommitId(const char* value) { m_destinationCommitId.assign(value); }
74 inline GetMergeOptionsResult& WithDestinationCommitId(Aws::String&& value) { SetDestinationCommitId(std::move(value)); return *this;}
75 inline GetMergeOptionsResult& WithDestinationCommitId(const char* value) { SetDestinationCommitId(value); return *this;}
77
79
82 inline const Aws::String& GetBaseCommitId() const{ return m_baseCommitId; }
83 inline void SetBaseCommitId(const Aws::String& value) { m_baseCommitId = value; }
84 inline void SetBaseCommitId(Aws::String&& value) { m_baseCommitId = std::move(value); }
85 inline void SetBaseCommitId(const char* value) { m_baseCommitId.assign(value); }
86 inline GetMergeOptionsResult& WithBaseCommitId(const Aws::String& value) { SetBaseCommitId(value); return *this;}
87 inline GetMergeOptionsResult& WithBaseCommitId(Aws::String&& value) { SetBaseCommitId(std::move(value)); return *this;}
88 inline GetMergeOptionsResult& WithBaseCommitId(const char* value) { SetBaseCommitId(value); return *this;}
90
92
93 inline const Aws::String& GetRequestId() const{ return m_requestId; }
94 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
95 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
96 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
97 inline GetMergeOptionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
98 inline GetMergeOptionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
99 inline GetMergeOptionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
101 private:
102
104
105 Aws::String m_sourceCommitId;
106
107 Aws::String m_destinationCommitId;
108
109 Aws::String m_baseCommitId;
110
111 Aws::String m_requestId;
112 };
113
114} // namespace Model
115} // namespace CodeCommit
116} // namespace Aws
void SetDestinationCommitId(const Aws::String &value)
GetMergeOptionsResult & AddMergeOptions(MergeOptionTypeEnum &&value)
GetMergeOptionsResult & WithRequestId(const char *value)
GetMergeOptionsResult & WithRequestId(Aws::String &&value)
GetMergeOptionsResult & WithBaseCommitId(const Aws::String &value)
GetMergeOptionsResult & WithRequestId(const Aws::String &value)
GetMergeOptionsResult & WithBaseCommitId(const char *value)
void SetMergeOptions(const Aws::Vector< MergeOptionTypeEnum > &value)
GetMergeOptionsResult & WithSourceCommitId(const char *value)
GetMergeOptionsResult & WithDestinationCommitId(Aws::String &&value)
GetMergeOptionsResult & WithDestinationCommitId(const Aws::String &value)
void SetMergeOptions(Aws::Vector< MergeOptionTypeEnum > &&value)
GetMergeOptionsResult & WithBaseCommitId(Aws::String &&value)
GetMergeOptionsResult & WithSourceCommitId(const Aws::String &value)
GetMergeOptionsResult & AddMergeOptions(const MergeOptionTypeEnum &value)
const Aws::Vector< MergeOptionTypeEnum > & GetMergeOptions() const
GetMergeOptionsResult & WithMergeOptions(const Aws::Vector< MergeOptionTypeEnum > &value)
GetMergeOptionsResult & WithMergeOptions(Aws::Vector< MergeOptionTypeEnum > &&value)
GetMergeOptionsResult & WithDestinationCommitId(const char *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 & WithSourceCommitId(Aws::String &&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