AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
ListProjectsRequest.h
1
6#pragma once
7#include <aws/bedrock/BedrockRequest.h>
8#include <aws/bedrock/Bedrock_EXPORTS.h>
9#include <aws/bedrock/model/ProjectStatus.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace Bedrock {
19namespace Model {
20
28 public:
29 AWS_BEDROCK_API ListProjectsRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ListProjects"; }
36
37 AWS_BEDROCK_API Aws::String SerializePayload() const override;
38
39 AWS_BEDROCK_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
42
45 inline const Aws::String& GetNextToken() const { return m_nextToken; }
46 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
47 template <typename NextTokenT = Aws::String>
48 void SetNextToken(NextTokenT&& value) {
49 m_nextTokenHasBeenSet = true;
50 m_nextToken = std::forward<NextTokenT>(value);
51 }
52 template <typename NextTokenT = Aws::String>
53 ListProjectsRequest& WithNextToken(NextTokenT&& value) {
54 SetNextToken(std::forward<NextTokenT>(value));
55 return *this;
56 }
58
60
64 inline int GetMaxResults() const { return m_maxResults; }
65 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
66 inline void SetMaxResults(int value) {
67 m_maxResultsHasBeenSet = true;
68 m_maxResults = value;
69 }
71 SetMaxResults(value);
72 return *this;
73 }
75
77
82 inline ProjectStatus GetStatusFilter() const { return m_statusFilter; }
83 inline bool StatusFilterHasBeenSet() const { return m_statusFilterHasBeenSet; }
84 inline void SetStatusFilter(ProjectStatus value) {
85 m_statusFilterHasBeenSet = true;
86 m_statusFilter = value;
87 }
89 SetStatusFilter(value);
90 return *this;
91 }
93 private:
94 Aws::String m_nextToken;
95
96 int m_maxResults{0};
97
99 bool m_nextTokenHasBeenSet = false;
100 bool m_maxResultsHasBeenSet = false;
101 bool m_statusFilterHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace Bedrock
106} // namespace Aws
ListProjectsRequest & WithStatusFilter(ProjectStatus value)
ListProjectsRequest & WithNextToken(NextTokenT &&value)
AWS_BEDROCK_API Aws::String SerializePayload() const override
AWS_BEDROCK_API ListProjectsRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_BEDROCK_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListProjectsRequest & WithMaxResults(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String