AWS SDK for C++  1.9.131
AWS SDK for C++
GetBranchRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CodeCommit
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "GetBranch"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
44  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
45 
50  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
51 
56  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
57 
62  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
63 
68  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
69 
74  inline GetBranchRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
75 
80  inline GetBranchRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
81 
86  inline GetBranchRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
87 
88 
92  inline const Aws::String& GetBranchName() const{ return m_branchName; }
93 
97  inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
98 
102  inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; }
103 
107  inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); }
108 
112  inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); }
113 
117  inline GetBranchRequest& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;}
118 
122  inline GetBranchRequest& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;}
123 
127  inline GetBranchRequest& WithBranchName(const char* value) { SetBranchName(value); return *this;}
128 
129  private:
130 
131  Aws::String m_repositoryName;
132  bool m_repositoryNameHasBeenSet;
133 
134  Aws::String m_branchName;
135  bool m_branchNameHasBeenSet;
136  };
137 
138 } // namespace Model
139 } // namespace CodeCommit
140 } // namespace Aws
Aws::CodeCommit::Model::GetBranchRequest::WithBranchName
GetBranchRequest & WithBranchName(const char *value)
Definition: GetBranchRequest.h:127
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::GetBranchRequest::WithRepositoryName
GetBranchRequest & WithRepositoryName(const Aws::String &value)
Definition: GetBranchRequest.h:74
Aws::CodeCommit::Model::GetBranchRequest::BranchNameHasBeenSet
bool BranchNameHasBeenSet() const
Definition: GetBranchRequest.h:97
Aws::CodeCommit::Model::GetBranchRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::Model::GetBranchRequest::SetBranchName
void SetBranchName(const Aws::String &value)
Definition: GetBranchRequest.h:102
Aws::CodeCommit::Model::GetBranchRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: GetBranchRequest.h:68
Aws::CodeCommit::Model::GetBranchRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: GetBranchRequest.h:62
Aws::CodeCommit::Model::GetBranchRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: GetBranchRequest.h:44
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
Aws::CodeCommit::Model::GetBranchRequest::GetBranchName
const Aws::String & GetBranchName() const
Definition: GetBranchRequest.h:92
CodeCommitRequest.h
Aws::CodeCommit::Model::GetBranchRequest
Definition: GetBranchRequest.h:25
Aws::CodeCommit::Model::GetBranchRequest::WithRepositoryName
GetBranchRequest & WithRepositoryName(const char *value)
Definition: GetBranchRequest.h:86
Aws::CodeCommit::Model::GetBranchRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeCommit::Model::GetBranchRequest::GetBranchRequest
GetBranchRequest()
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::GetBranchRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: GetBranchRequest.h:50
Aws::CodeCommit::Model::GetBranchRequest::SetBranchName
void SetBranchName(const char *value)
Definition: GetBranchRequest.h:112
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::GetBranchRequest::WithBranchName
GetBranchRequest & WithBranchName(Aws::String &&value)
Definition: GetBranchRequest.h:122
Aws::CodeCommit::Model::GetBranchRequest::WithRepositoryName
GetBranchRequest & WithRepositoryName(Aws::String &&value)
Definition: GetBranchRequest.h:80
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::GetBranchRequest::SetBranchName
void SetBranchName(Aws::String &&value)
Definition: GetBranchRequest.h:107
Aws::CodeCommit::Model::GetBranchRequest::WithBranchName
GetBranchRequest & WithBranchName(const Aws::String &value)
Definition: GetBranchRequest.h:117
Aws::CodeCommit::Model::GetBranchRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: GetBranchRequest.h:56
Aws::CodeCommit::Model::GetBranchRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetBranchRequest.h:33