AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ListProjectsRequest.h
1
6#pragma once
7#include <aws/codecatalyst/CodeCatalystRequest.h>
8#include <aws/codecatalyst/CodeCatalyst_EXPORTS.h>
9#include <aws/codecatalyst/model/ProjectListFilter.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CodeCatalyst {
17namespace Model {
18
22 public:
23 AWS_CODECATALYST_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_CODECATALYST_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetSpaceName() const { return m_spaceName; }
38 inline bool SpaceNameHasBeenSet() const { return m_spaceNameHasBeenSet; }
39 template <typename SpaceNameT = Aws::String>
40 void SetSpaceName(SpaceNameT&& value) {
41 m_spaceNameHasBeenSet = true;
42 m_spaceName = std::forward<SpaceNameT>(value);
43 }
44 template <typename SpaceNameT = Aws::String>
45 ListProjectsRequest& WithSpaceName(SpaceNameT&& value) {
46 SetSpaceName(std::forward<SpaceNameT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetNextToken() const { return m_nextToken; }
57 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
58 template <typename NextTokenT = Aws::String>
59 void SetNextToken(NextTokenT&& value) {
60 m_nextTokenHasBeenSet = true;
61 m_nextToken = std::forward<NextTokenT>(value);
62 }
63 template <typename NextTokenT = Aws::String>
64 ListProjectsRequest& WithNextToken(NextTokenT&& value) {
65 SetNextToken(std::forward<NextTokenT>(value));
66 return *this;
67 }
69
71
77 inline int GetMaxResults() const { return m_maxResults; }
78 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
79 inline void SetMaxResults(int value) {
80 m_maxResultsHasBeenSet = true;
81 m_maxResults = value;
82 }
84 SetMaxResults(value);
85 return *this;
86 }
88
90
94 inline const Aws::Vector<ProjectListFilter>& GetFilters() const { return m_filters; }
95 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
96 template <typename FiltersT = Aws::Vector<ProjectListFilter>>
97 void SetFilters(FiltersT&& value) {
98 m_filtersHasBeenSet = true;
99 m_filters = std::forward<FiltersT>(value);
100 }
101 template <typename FiltersT = Aws::Vector<ProjectListFilter>>
102 ListProjectsRequest& WithFilters(FiltersT&& value) {
103 SetFilters(std::forward<FiltersT>(value));
104 return *this;
105 }
106 template <typename FiltersT = ProjectListFilter>
107 ListProjectsRequest& AddFilters(FiltersT&& value) {
108 m_filtersHasBeenSet = true;
109 m_filters.emplace_back(std::forward<FiltersT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_spaceName;
115
116 Aws::String m_nextToken;
117
118 int m_maxResults{0};
119
121 bool m_spaceNameHasBeenSet = false;
122 bool m_nextTokenHasBeenSet = false;
123 bool m_maxResultsHasBeenSet = false;
124 bool m_filtersHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace CodeCatalyst
129} // namespace Aws
AWS_CODECATALYST_API ListProjectsRequest()=default
const Aws::Vector< ProjectListFilter > & GetFilters() const
ListProjectsRequest & WithNextToken(NextTokenT &&value)
ListProjectsRequest & AddFilters(FiltersT &&value)
ListProjectsRequest & WithMaxResults(int value)
ListProjectsRequest & WithFilters(FiltersT &&value)
AWS_CODECATALYST_API Aws::String SerializePayload() const override
ListProjectsRequest & WithSpaceName(SpaceNameT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector