AWS SDK for C++  1.9.40
AWS SDK for C++
ListBranchesRequest.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 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ListBranches"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
44  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
45 
49  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
50 
54  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
55 
59  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
60 
64  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
65 
69  inline ListBranchesRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
70 
74  inline ListBranchesRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
75 
79  inline ListBranchesRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
80 
81 
85  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
86 
90  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
91 
95  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
96 
100  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
101 
105  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
106 
110  inline ListBranchesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
111 
115  inline ListBranchesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
116 
120  inline ListBranchesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
121 
122  private:
123 
124  Aws::String m_repositoryName;
125  bool m_repositoryNameHasBeenSet;
126 
127  Aws::String m_nextToken;
128  bool m_nextTokenHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace CodeCommit
133 } // namespace Aws
Aws::CodeCommit::Model::ListBranchesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListBranchesRequest.h:85
CodeCommit_EXPORTS.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::Model::ListBranchesRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: ListBranchesRequest.h:44
Aws::CodeCommit::Model::ListBranchesRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: ListBranchesRequest.h:49
Aws::CodeCommit::Model::ListBranchesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListBranchesRequest.h:95
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
Aws::CodeCommit::Model::ListBranchesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CodeCommitRequest.h
Aws::CodeCommit::Model::ListBranchesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListBranchesRequest.h:100
Aws::CodeCommit::Model::ListBranchesRequest
Definition: ListBranchesRequest.h:26
Aws::CodeCommit::Model::ListBranchesRequest::WithRepositoryName
ListBranchesRequest & WithRepositoryName(const Aws::String &value)
Definition: ListBranchesRequest.h:69
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::ListBranchesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeCommit::Model::ListBranchesRequest::WithNextToken
ListBranchesRequest & WithNextToken(const char *value)
Definition: ListBranchesRequest.h:120
Aws::CodeCommit::Model::ListBranchesRequest::ListBranchesRequest
ListBranchesRequest()
Aws::CodeCommit::Model::ListBranchesRequest::WithRepositoryName
ListBranchesRequest & WithRepositoryName(Aws::String &&value)
Definition: ListBranchesRequest.h:74
Aws::CodeCommit::Model::ListBranchesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListBranchesRequest.h:105
Aws::CodeCommit::Model::ListBranchesRequest::WithRepositoryName
ListBranchesRequest & WithRepositoryName(const char *value)
Definition: ListBranchesRequest.h:79
Aws::CodeCommit::Model::ListBranchesRequest::WithNextToken
ListBranchesRequest & WithNextToken(const Aws::String &value)
Definition: ListBranchesRequest.h:110
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::ListBranchesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListBranchesRequest.h:90
Aws::CodeCommit::Model::ListBranchesRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: ListBranchesRequest.h:64
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::ListBranchesRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: ListBranchesRequest.h:54
Aws::CodeCommit::Model::ListBranchesRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: ListBranchesRequest.h:59
Aws::CodeCommit::Model::ListBranchesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListBranchesRequest.h:34
Aws::CodeCommit::Model::ListBranchesRequest::WithNextToken
ListBranchesRequest & WithNextToken(Aws::String &&value)
Definition: ListBranchesRequest.h:115