AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ProjectSortByType& GetSortBy() const{ return m_sortBy; }
50 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
51 inline void SetSortBy(const ProjectSortByType& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
52 inline void SetSortBy(ProjectSortByType&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
53 inline ListProjectsRequest& WithSortBy(const ProjectSortByType& value) { SetSortBy(value); return *this;}
54 inline ListProjectsRequest& WithSortBy(ProjectSortByType&& value) { SetSortBy(std::move(value)); return *this;}
56
58
65 inline const SortOrderType& GetSortOrder() const{ return m_sortOrder; }
66 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
67 inline void SetSortOrder(const SortOrderType& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
68 inline void SetSortOrder(SortOrderType&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
69 inline ListProjectsRequest& WithSortOrder(const SortOrderType& value) { SetSortOrder(value); return *this;}
70 inline ListProjectsRequest& WithSortOrder(SortOrderType&& value) { SetSortOrder(std::move(value)); return *this;}
72
74
82 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
83 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
84 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
85 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
86 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
87 inline ListProjectsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
88 inline ListProjectsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
89 inline ListProjectsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
91 private:
92
93 ProjectSortByType m_sortBy;
94 bool m_sortByHasBeenSet = false;
95
96 SortOrderType m_sortOrder;
97 bool m_sortOrderHasBeenSet = false;
98
99 Aws::String m_nextToken;
100 bool m_nextTokenHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace CodeBuild
105} // namespace Aws
void SetSortBy(const ProjectSortByType &value)
ListProjectsRequest & WithNextToken(const char *value)
ListProjectsRequest & WithNextToken(const Aws::String &value)
ListProjectsRequest & WithSortBy(const ProjectSortByType &value)
ListProjectsRequest & WithSortOrder(SortOrderType &&value)
AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetNextToken(const Aws::String &value)
void SetSortBy(ProjectSortByType &&value)
void SetSortOrder(const SortOrderType &value)
ListProjectsRequest & WithSortBy(ProjectSortByType &&value)
ListProjectsRequest & WithNextToken(Aws::String &&value)
const ProjectSortByType & GetSortBy() const
virtual const char * GetServiceRequestName() const override
ListProjectsRequest & WithSortOrder(const SortOrderType &value)
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