AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
ListBranchesRequest.h
1
6#pragma once
7#include <aws/codecommit/CodeCommitRequest.h>
8#include <aws/codecommit/CodeCommit_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CodeCommit {
15namespace Model {
16
24 public:
25 AWS_CODECOMMIT_API ListBranchesRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListBranches"; }
32
33 AWS_CODECOMMIT_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
42 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
43 template <typename RepositoryNameT = Aws::String>
44 void SetRepositoryName(RepositoryNameT&& value) {
45 m_repositoryNameHasBeenSet = true;
46 m_repositoryName = std::forward<RepositoryNameT>(value);
47 }
48 template <typename RepositoryNameT = Aws::String>
49 ListBranchesRequest& WithRepositoryName(RepositoryNameT&& value) {
50 SetRepositoryName(std::forward<RepositoryNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetNextToken() const { return m_nextToken; }
60 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
61 template <typename NextTokenT = Aws::String>
62 void SetNextToken(NextTokenT&& value) {
63 m_nextTokenHasBeenSet = true;
64 m_nextToken = std::forward<NextTokenT>(value);
65 }
66 template <typename NextTokenT = Aws::String>
67 ListBranchesRequest& WithNextToken(NextTokenT&& value) {
68 SetNextToken(std::forward<NextTokenT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_repositoryName;
74
75 Aws::String m_nextToken;
76 bool m_repositoryNameHasBeenSet = false;
77 bool m_nextTokenHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace CodeCommit
82} // namespace Aws
AWS_CODECOMMIT_API ListBranchesRequest()=default
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
void SetRepositoryName(RepositoryNameT &&value)
virtual const char * GetServiceRequestName() const override
ListBranchesRequest & WithRepositoryName(RepositoryNameT &&value)
ListBranchesRequest & WithNextToken(NextTokenT &&value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String