AWS SDK for C++  1.8.152
AWS SDK for C++
BranchInfo.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace CodeCommit
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetBranchName() const{ return m_branchName; }
44 
48  inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
49 
53  inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; }
54 
58  inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); }
59 
63  inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); }
64 
68  inline BranchInfo& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;}
69 
73  inline BranchInfo& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;}
74 
78  inline BranchInfo& WithBranchName(const char* value) { SetBranchName(value); return *this;}
79 
80 
84  inline const Aws::String& GetCommitId() const{ return m_commitId; }
85 
89  inline bool CommitIdHasBeenSet() const { return m_commitIdHasBeenSet; }
90 
94  inline void SetCommitId(const Aws::String& value) { m_commitIdHasBeenSet = true; m_commitId = value; }
95 
99  inline void SetCommitId(Aws::String&& value) { m_commitIdHasBeenSet = true; m_commitId = std::move(value); }
100 
104  inline void SetCommitId(const char* value) { m_commitIdHasBeenSet = true; m_commitId.assign(value); }
105 
109  inline BranchInfo& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;}
110 
114  inline BranchInfo& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;}
115 
119  inline BranchInfo& WithCommitId(const char* value) { SetCommitId(value); return *this;}
120 
121  private:
122 
123  Aws::String m_branchName;
124  bool m_branchNameHasBeenSet;
125 
126  Aws::String m_commitId;
127  bool m_commitIdHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace CodeCommit
132 } // namespace Aws
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::BranchInfo::SetBranchName
void SetBranchName(Aws::String &&value)
Definition: BranchInfo.h:58
Aws::CodeCommit::Model::BranchInfo::SetCommitId
void SetCommitId(Aws::String &&value)
Definition: BranchInfo.h:99
Aws::CodeCommit::Model::BranchInfo::SetCommitId
void SetCommitId(const Aws::String &value)
Definition: BranchInfo.h:94
Aws::CodeCommit::Model::BranchInfo::WithBranchName
BranchInfo & WithBranchName(Aws::String &&value)
Definition: BranchInfo.h:73
Aws::CodeCommit::Model::BranchInfo::WithCommitId
BranchInfo & WithCommitId(const Aws::String &value)
Definition: BranchInfo.h:109
Aws::CodeCommit::Model::BranchInfo::CommitIdHasBeenSet
bool CommitIdHasBeenSet() const
Definition: BranchInfo.h:89
Aws::CodeCommit::Model::BranchInfo::SetBranchName
void SetBranchName(const char *value)
Definition: BranchInfo.h:63
Aws::CodeCommit::Model::BranchInfo::BranchInfo
BranchInfo()
Aws::CodeCommit::Model::BranchInfo::WithCommitId
BranchInfo & WithCommitId(const char *value)
Definition: BranchInfo.h:119
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::BranchInfo::WithCommitId
BranchInfo & WithCommitId(Aws::String &&value)
Definition: BranchInfo.h:114
Aws::CodeCommit::Model::BranchInfo::SetBranchName
void SetBranchName(const Aws::String &value)
Definition: BranchInfo.h:53
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::BranchInfo::GetBranchName
const Aws::String & GetBranchName() const
Definition: BranchInfo.h:43
Aws::CodeCommit::Model::BranchInfo::WithBranchName
BranchInfo & WithBranchName(const char *value)
Definition: BranchInfo.h:78
Aws::CodeCommit::Model::BranchInfo::BranchInfo
BranchInfo(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::BranchInfo::GetCommitId
const Aws::String & GetCommitId() const
Definition: BranchInfo.h:84
Aws::CodeCommit::Model::BranchInfo::WithBranchName
BranchInfo & WithBranchName(const Aws::String &value)
Definition: BranchInfo.h:68
Aws::CodeCommit::Model::BranchInfo::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::BranchInfo::operator=
BranchInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::BranchInfo
Definition: BranchInfo.h:32
Aws::CodeCommit::Model::BranchInfo::BranchNameHasBeenSet
bool BranchNameHasBeenSet() const
Definition: BranchInfo.h:48
Aws::CodeCommit::Model::BranchInfo::SetCommitId
void SetCommitId(const char *value)
Definition: BranchInfo.h:104