AWS SDK for C++  0.12.9
AWS SDK for C++
ListRepositoriesRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace CodeCommit
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
46  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
47 
54  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
55 
62  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
63 
70  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
71 
78  inline ListRepositoriesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
79 
86  inline ListRepositoriesRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
87 
94  inline ListRepositoriesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
95 
99  inline const SortByEnum& GetSortBy() const{ return m_sortBy; }
100 
104  inline void SetSortBy(const SortByEnum& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
105 
109  inline void SetSortBy(SortByEnum&& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
110 
114  inline ListRepositoriesRequest& WithSortBy(const SortByEnum& value) { SetSortBy(value); return *this;}
115 
119  inline ListRepositoriesRequest& WithSortBy(SortByEnum&& value) { SetSortBy(value); return *this;}
120 
124  inline const OrderEnum& GetOrder() const{ return m_order; }
125 
129  inline void SetOrder(const OrderEnum& value) { m_orderHasBeenSet = true; m_order = value; }
130 
134  inline void SetOrder(OrderEnum&& value) { m_orderHasBeenSet = true; m_order = value; }
135 
139  inline ListRepositoriesRequest& WithOrder(const OrderEnum& value) { SetOrder(value); return *this;}
140 
144  inline ListRepositoriesRequest& WithOrder(OrderEnum&& value) { SetOrder(value); return *this;}
145 
146  private:
147  Aws::String m_nextToken;
148  bool m_nextTokenHasBeenSet;
149  SortByEnum m_sortBy;
150  bool m_sortByHasBeenSet;
151  OrderEnum m_order;
152  bool m_orderHasBeenSet;
153  };
154 
155 } // namespace Model
156 } // namespace CodeCommit
157 } // namespace Aws
ListRepositoriesRequest & WithNextToken(Aws::String &&value)
ListRepositoriesRequest & WithOrder(OrderEnum &&value)
ListRepositoriesRequest & WithSortBy(const SortByEnum &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
ListRepositoriesRequest & WithSortBy(SortByEnum &&value)
ListRepositoriesRequest & WithOrder(const OrderEnum &value)
#define AWS_CODECOMMIT_API
ListRepositoriesRequest & WithNextToken(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListRepositoriesRequest & WithNextToken(const Aws::String &value)
JSON (JavaScript Object Notation).