AWS SDK for C++  1.8.152
AWS SDK for C++
MergeBranchesBySquashResult.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 template<typename RESULT_TYPE>
14 class AmazonWebServiceResult;
15 
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21 } // namespace Json
22 } // namespace Utils
23 namespace CodeCommit
24 {
25 namespace Model
26 {
28  {
29  public:
33 
34 
38  inline const Aws::String& GetCommitId() const{ return m_commitId; }
39 
43  inline void SetCommitId(const Aws::String& value) { m_commitId = value; }
44 
48  inline void SetCommitId(Aws::String&& value) { m_commitId = std::move(value); }
49 
53  inline void SetCommitId(const char* value) { m_commitId.assign(value); }
54 
58  inline MergeBranchesBySquashResult& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;}
59 
63  inline MergeBranchesBySquashResult& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;}
64 
68  inline MergeBranchesBySquashResult& WithCommitId(const char* value) { SetCommitId(value); return *this;}
69 
70 
74  inline const Aws::String& GetTreeId() const{ return m_treeId; }
75 
79  inline void SetTreeId(const Aws::String& value) { m_treeId = value; }
80 
84  inline void SetTreeId(Aws::String&& value) { m_treeId = std::move(value); }
85 
89  inline void SetTreeId(const char* value) { m_treeId.assign(value); }
90 
94  inline MergeBranchesBySquashResult& WithTreeId(const Aws::String& value) { SetTreeId(value); return *this;}
95 
99  inline MergeBranchesBySquashResult& WithTreeId(Aws::String&& value) { SetTreeId(std::move(value)); return *this;}
100 
104  inline MergeBranchesBySquashResult& WithTreeId(const char* value) { SetTreeId(value); return *this;}
105 
106  private:
107 
108  Aws::String m_commitId;
109 
110  Aws::String m_treeId;
111  };
112 
113 } // namespace Model
114 } // namespace CodeCommit
115 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::CodeCommit::Model::MergeBranchesBySquashResult::GetCommitId
const Aws::String & GetCommitId() const
Definition: MergeBranchesBySquashResult.h:38
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::MergeBranchesBySquashResult::GetTreeId
const Aws::String & GetTreeId() const
Definition: MergeBranchesBySquashResult.h:74
Aws::CodeCommit::Model::MergeBranchesBySquashResult::operator=
MergeBranchesBySquashResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeCommit::Model::MergeBranchesBySquashResult::WithTreeId
MergeBranchesBySquashResult & WithTreeId(Aws::String &&value)
Definition: MergeBranchesBySquashResult.h:99
Aws::CodeCommit::Model::MergeBranchesBySquashResult::WithCommitId
MergeBranchesBySquashResult & WithCommitId(Aws::String &&value)
Definition: MergeBranchesBySquashResult.h:63
Aws::CodeCommit::Model::MergeBranchesBySquashResult::MergeBranchesBySquashResult
MergeBranchesBySquashResult()
Aws::CodeCommit::Model::MergeBranchesBySquashResult::SetCommitId
void SetCommitId(const char *value)
Definition: MergeBranchesBySquashResult.h:53
Aws::CodeCommit::Model::MergeBranchesBySquashResult::WithTreeId
MergeBranchesBySquashResult & WithTreeId(const char *value)
Definition: MergeBranchesBySquashResult.h:104
Aws::CodeCommit::Model::MergeBranchesBySquashResult::SetCommitId
void SetCommitId(Aws::String &&value)
Definition: MergeBranchesBySquashResult.h:48
Aws::CodeCommit::Model::MergeBranchesBySquashResult
Definition: MergeBranchesBySquashResult.h:28
Aws::CodeCommit::Model::MergeBranchesBySquashResult::SetTreeId
void SetTreeId(const Aws::String &value)
Definition: MergeBranchesBySquashResult.h:79
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::MergeBranchesBySquashResult::SetTreeId
void SetTreeId(Aws::String &&value)
Definition: MergeBranchesBySquashResult.h:84
Aws::CodeCommit::Model::MergeBranchesBySquashResult::WithCommitId
MergeBranchesBySquashResult & WithCommitId(const Aws::String &value)
Definition: MergeBranchesBySquashResult.h:58
Aws::CodeCommit::Model::MergeBranchesBySquashResult::SetCommitId
void SetCommitId(const Aws::String &value)
Definition: MergeBranchesBySquashResult.h:43
Aws::CodeCommit::Model::MergeBranchesBySquashResult::SetTreeId
void SetTreeId(const char *value)
Definition: MergeBranchesBySquashResult.h:89
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::MergeBranchesBySquashResult::MergeBranchesBySquashResult
MergeBranchesBySquashResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::MergeBranchesBySquashResult::WithTreeId
MergeBranchesBySquashResult & WithTreeId(const Aws::String &value)
Definition: MergeBranchesBySquashResult.h:94
Aws::CodeCommit::Model::MergeBranchesBySquashResult::WithCommitId
MergeBranchesBySquashResult & WithCommitId(const char *value)
Definition: MergeBranchesBySquashResult.h:68