AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ListProjectsRequest.h
1
6#pragma once
7#include <aws/codebuild/CodeBuildRequest.h>
8#include <aws/codebuild/CodeBuild_EXPORTS.h>
9#include <aws/codebuild/model/ProjectSortByType.h>
10#include <aws/codebuild/model/SortOrderType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CodeBuild {
17namespace Model {
18
22 public:
23 AWS_CODEBUILD_API ListProjectsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ListProjects"; }
30
31 AWS_CODEBUILD_API Aws::String SerializePayload() const override;
32
34
36
45 inline ProjectSortByType GetSortBy() const { return m_sortBy; }
46 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
47 inline void SetSortBy(ProjectSortByType value) {
48 m_sortByHasBeenSet = true;
49 m_sortBy = value;
50 }
52 SetSortBy(value);
53 return *this;
54 }
56
58
65 inline SortOrderType GetSortOrder() const { return m_sortOrder; }
66 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
67 inline void SetSortOrder(SortOrderType value) {
68 m_sortOrderHasBeenSet = true;
69 m_sortOrder = value;
70 }
72 SetSortOrder(value);
73 return *this;
74 }
76
78
86 inline const Aws::String& GetNextToken() const { return m_nextToken; }
87 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
88 template <typename NextTokenT = Aws::String>
89 void SetNextToken(NextTokenT&& value) {
90 m_nextTokenHasBeenSet = true;
91 m_nextToken = std::forward<NextTokenT>(value);
92 }
93 template <typename NextTokenT = Aws::String>
94 ListProjectsRequest& WithNextToken(NextTokenT&& value) {
95 SetNextToken(std::forward<NextTokenT>(value));
96 return *this;
97 }
99 private:
101
103
104 Aws::String m_nextToken;
105 bool m_sortByHasBeenSet = false;
106 bool m_sortOrderHasBeenSet = false;
107 bool m_nextTokenHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace CodeBuild
112} // namespace Aws
ListProjectsRequest & WithSortOrder(SortOrderType value)
ListProjectsRequest & WithNextToken(NextTokenT &&value)
AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CODEBUILD_API ListProjectsRequest()=default
ListProjectsRequest & WithSortBy(ProjectSortByType value)
virtual const char * GetServiceRequestName() const override
AWS_CODEBUILD_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String