AWS SDK for C++  1.8.154
AWS SDK for C++
GetCommitResult.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 {
34  {
35  public:
39 
40 
45  inline const Commit& GetCommit() const{ return m_commit; }
46 
51  inline void SetCommit(const Commit& value) { m_commit = value; }
52 
57  inline void SetCommit(Commit&& value) { m_commit = std::move(value); }
58 
63  inline GetCommitResult& WithCommit(const Commit& value) { SetCommit(value); return *this;}
64 
69  inline GetCommitResult& WithCommit(Commit&& value) { SetCommit(std::move(value)); return *this;}
70 
71  private:
72 
73  Commit m_commit;
74  };
75 
76 } // namespace Model
77 } // namespace CodeCommit
78 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::GetCommitResult::SetCommit
void SetCommit(Commit &&value)
Definition: GetCommitResult.h:57
Aws::CodeCommit::Model::GetCommitResult::GetCommitResult
GetCommitResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeCommit::Model::GetCommitResult
Definition: GetCommitResult.h:34
Aws::CodeCommit::Model::GetCommitResult::SetCommit
void SetCommit(const Commit &value)
Definition: GetCommitResult.h:51
Aws::CodeCommit::Model::GetCommitResult::operator=
GetCommitResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeCommit::Model::Commit
Definition: Commit.h:34
Aws::CodeCommit::Model::GetCommitResult::WithCommit
GetCommitResult & WithCommit(Commit &&value)
Definition: GetCommitResult.h:69
Commit.h
Aws::CodeCommit::Model::GetCommitResult::WithCommit
GetCommitResult & WithCommit(const Commit &value)
Definition: GetCommitResult.h:63
Aws::CodeCommit::Model::GetCommitResult::GetCommit
const Commit & GetCommit() const
Definition: GetCommitResult.h:45
Aws::CodeCommit::Model::GetCommitResult::GetCommitResult
GetCommitResult()
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15