AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListProjectsRequest.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/CodeBuildRequest.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#include <utility>
13
14namespace Aws
15{
16namespace CodeBuild
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CODEBUILD_API ListProjectsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListProjects"; }
33
34 AWS_CODEBUILD_API Aws::String SerializePayload() const override;
35
37
38
40
49 inline ProjectSortByType GetSortBy() const { return m_sortBy; }
50 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
51 inline void SetSortBy(ProjectSortByType value) { m_sortByHasBeenSet = true; m_sortBy = value; }
52 inline ListProjectsRequest& WithSortBy(ProjectSortByType value) { SetSortBy(value); return *this;}
54
56
63 inline SortOrderType GetSortOrder() const { return m_sortOrder; }
64 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
65 inline void SetSortOrder(SortOrderType value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
66 inline ListProjectsRequest& WithSortOrder(SortOrderType value) { SetSortOrder(value); return *this;}
68
70
78 inline const Aws::String& GetNextToken() const { return m_nextToken; }
79 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
80 template<typename NextTokenT = Aws::String>
81 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
82 template<typename NextTokenT = Aws::String>
83 ListProjectsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
85 private:
86
88 bool m_sortByHasBeenSet = false;
89
91 bool m_sortOrderHasBeenSet = false;
92
93 Aws::String m_nextToken;
94 bool m_nextTokenHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace CodeBuild
99} // 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