AWS SDK for C++  1.8.129
AWS SDK for C++
ListRepositoriesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace CodeCommit
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "ListRepositories"; }
37 
38  Aws::String SerializePayload() const override;
39 
41 
42 
49  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
50 
57  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
58 
65  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
66 
73  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
74 
81  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
82 
89  inline ListRepositoriesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
90 
97  inline ListRepositoriesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
98 
105  inline ListRepositoriesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
106 
107 
111  inline const SortByEnum& GetSortBy() const{ return m_sortBy; }
112 
116  inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
117 
121  inline void SetSortBy(const SortByEnum& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
122 
126  inline void SetSortBy(SortByEnum&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
127 
131  inline ListRepositoriesRequest& WithSortBy(const SortByEnum& value) { SetSortBy(value); return *this;}
132 
136  inline ListRepositoriesRequest& WithSortBy(SortByEnum&& value) { SetSortBy(std::move(value)); return *this;}
137 
138 
142  inline const OrderEnum& GetOrder() const{ return m_order; }
143 
147  inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
148 
152  inline void SetOrder(const OrderEnum& value) { m_orderHasBeenSet = true; m_order = value; }
153 
157  inline void SetOrder(OrderEnum&& value) { m_orderHasBeenSet = true; m_order = std::move(value); }
158 
162  inline ListRepositoriesRequest& WithOrder(const OrderEnum& value) { SetOrder(value); return *this;}
163 
167  inline ListRepositoriesRequest& WithOrder(OrderEnum&& value) { SetOrder(std::move(value)); return *this;}
168 
169  private:
170 
171  Aws::String m_nextToken;
172  bool m_nextTokenHasBeenSet;
173 
174  SortByEnum m_sortBy;
175  bool m_sortByHasBeenSet;
176 
177  OrderEnum m_order;
178  bool m_orderHasBeenSet;
179  };
180 
181 } // namespace Model
182 } // namespace CodeCommit
183 } // namespace Aws
Aws::CodeCommit::Model::ListRepositoriesRequest::OrderHasBeenSet
bool OrderHasBeenSet() const
Definition: ListRepositoriesRequest.h:147
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::ListRepositoriesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListRepositoriesRequest.h:57
OrderEnum.h
Aws::CodeCommit::Model::ListRepositoriesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListRepositoriesRequest.h:65
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::Model::ListRepositoriesRequest::SetOrder
void SetOrder(const OrderEnum &value)
Definition: ListRepositoriesRequest.h:152
Aws::CodeCommit::Model::ListRepositoriesRequest::WithNextToken
ListRepositoriesRequest & WithNextToken(Aws::String &&value)
Definition: ListRepositoriesRequest.h:97
Aws::CodeCommit::Model::ListRepositoriesRequest::WithOrder
ListRepositoriesRequest & WithOrder(OrderEnum &&value)
Definition: ListRepositoriesRequest.h:167
Aws::CodeCommit::Model::ListRepositoriesRequest::SortByHasBeenSet
bool SortByHasBeenSet() const
Definition: ListRepositoriesRequest.h:116
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
Aws::CodeCommit::Model::ListRepositoriesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeCommit::Model::ListRepositoriesRequest::SetOrder
void SetOrder(OrderEnum &&value)
Definition: ListRepositoriesRequest.h:157
Aws::CodeCommit::Model::ListRepositoriesRequest::SetSortBy
void SetSortBy(const SortByEnum &value)
Definition: ListRepositoriesRequest.h:121
CodeCommitRequest.h
Aws::CodeCommit::Model::ListRepositoriesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListRepositoriesRequest.h:49
Aws::CodeCommit::Model::ListRepositoriesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListRepositoriesRequest.h:81
Aws::CodeCommit::Model::ListRepositoriesRequest::GetSortBy
const SortByEnum & GetSortBy() const
Definition: ListRepositoriesRequest.h:111
Aws::CodeCommit::Model::ListRepositoriesRequest::WithOrder
ListRepositoriesRequest & WithOrder(const OrderEnum &value)
Definition: ListRepositoriesRequest.h:162
Aws::CodeCommit::Model::ListRepositoriesRequest
Definition: ListRepositoriesRequest.h:28
Aws::CodeCommit::Model::OrderEnum
OrderEnum
Definition: OrderEnum.h:17
AWSString.h
Aws::CodeCommit::Model::SortByEnum
SortByEnum
Definition: SortByEnum.h:17
Aws::CodeCommit::Model::ListRepositoriesRequest::GetOrder
const OrderEnum & GetOrder() const
Definition: ListRepositoriesRequest.h:142
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::ListRepositoriesRequest::WithSortBy
ListRepositoriesRequest & WithSortBy(const SortByEnum &value)
Definition: ListRepositoriesRequest.h:131
Aws::CodeCommit::Model::ListRepositoriesRequest::WithNextToken
ListRepositoriesRequest & WithNextToken(const Aws::String &value)
Definition: ListRepositoriesRequest.h:89
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::ListRepositoriesRequest::WithSortBy
ListRepositoriesRequest & WithSortBy(SortByEnum &&value)
Definition: ListRepositoriesRequest.h:136
Aws::CodeCommit::Model::ListRepositoriesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SortByEnum.h
Aws::CodeCommit::Model::ListRepositoriesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListRepositoriesRequest.h:73
Aws::CodeCommit::Model::ListRepositoriesRequest::WithNextToken
ListRepositoriesRequest & WithNextToken(const char *value)
Definition: ListRepositoriesRequest.h:105
Aws::CodeCommit::Model::ListRepositoriesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListRepositoriesRequest.h:36
Aws::CodeCommit::Model::ListRepositoriesRequest::SetSortBy
void SetSortBy(SortByEnum &&value)
Definition: ListRepositoriesRequest.h:126
Aws::CodeCommit::Model::ListRepositoriesRequest::ListRepositoriesRequest
ListRepositoriesRequest()