AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListRepositoriesRequest.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/CodeCommitRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codecommit/model/SortByEnum.h>
11#include <aws/codecommit/model/OrderEnum.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CodeCommit
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_CODECOMMIT_API ListRepositoriesRequest() = default;
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_CODECOMMIT_API Aws::String SerializePayload() const override;
39
41
42
44
50 inline const Aws::String& GetNextToken() const { return m_nextToken; }
51 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
52 template<typename NextTokenT = Aws::String>
53 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
54 template<typename NextTokenT = Aws::String>
55 ListRepositoriesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
57
59
62 inline SortByEnum GetSortBy() const { return m_sortBy; }
63 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
64 inline void SetSortBy(SortByEnum value) { m_sortByHasBeenSet = true; m_sortBy = value; }
65 inline ListRepositoriesRequest& WithSortBy(SortByEnum value) { SetSortBy(value); return *this;}
67
69
72 inline OrderEnum GetOrder() const { return m_order; }
73 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
74 inline void SetOrder(OrderEnum value) { m_orderHasBeenSet = true; m_order = value; }
75 inline ListRepositoriesRequest& WithOrder(OrderEnum value) { SetOrder(value); return *this;}
77 private:
78
79 Aws::String m_nextToken;
80 bool m_nextTokenHasBeenSet = false;
81
83 bool m_sortByHasBeenSet = false;
84
86 bool m_orderHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace CodeCommit
91} // namespace Aws
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
ListRepositoriesRequest & WithSortBy(SortByEnum value)
ListRepositoriesRequest & WithOrder(OrderEnum value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AWS_CODECOMMIT_API ListRepositoriesRequest()=default
ListRepositoriesRequest & WithNextToken(NextTokenT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String