AWS SDK for C++  1.8.154
AWS SDK for C++
GetBranchResult.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 
44  inline const BranchInfo& GetBranch() const{ return m_branch; }
45 
49  inline void SetBranch(const BranchInfo& value) { m_branch = value; }
50 
54  inline void SetBranch(BranchInfo&& value) { m_branch = std::move(value); }
55 
59  inline GetBranchResult& WithBranch(const BranchInfo& value) { SetBranch(value); return *this;}
60 
64  inline GetBranchResult& WithBranch(BranchInfo&& value) { SetBranch(std::move(value)); return *this;}
65 
66  private:
67 
68  BranchInfo m_branch;
69  };
70 
71 } // namespace Model
72 } // namespace CodeCommit
73 } // namespace Aws
Aws::CodeCommit::Model::GetBranchResult::WithBranch
GetBranchResult & WithBranch(const BranchInfo &value)
Definition: GetBranchResult.h:59
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::GetBranchResult::GetBranchResult
GetBranchResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeCommit::Model::GetBranchResult::GetBranch
const BranchInfo & GetBranch() const
Definition: GetBranchResult.h:44
Aws::CodeCommit::Model::GetBranchResult::GetBranchResult
GetBranchResult()
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::GetBranchResult
Definition: GetBranchResult.h:34
Aws::CodeCommit::Model::GetBranchResult::operator=
GetBranchResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeCommit::Model::GetBranchResult::SetBranch
void SetBranch(const BranchInfo &value)
Definition: GetBranchResult.h:49
Aws
Definition: AccessManagementClient.h:15
BranchInfo.h
Aws::CodeCommit::Model::GetBranchResult::WithBranch
GetBranchResult & WithBranch(BranchInfo &&value)
Definition: GetBranchResult.h:64
Aws::CodeCommit::Model::GetBranchResult::SetBranch
void SetBranch(BranchInfo &&value)
Definition: GetBranchResult.h:54
Aws::CodeCommit::Model::BranchInfo
Definition: BranchInfo.h:32