AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ListProjectsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datazone/DataZoneRequest.h>
9#include <aws/datazone/DataZone_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace DataZone {
18namespace Model {
19
23 public:
24 AWS_DATAZONE_API ListProjectsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ListProjects"; }
31
32 AWS_DATAZONE_API Aws::String SerializePayload() const override;
33
34 AWS_DATAZONE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
40 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
41 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
42 template <typename DomainIdentifierT = Aws::String>
43 void SetDomainIdentifier(DomainIdentifierT&& value) {
44 m_domainIdentifierHasBeenSet = true;
45 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
46 }
47 template <typename DomainIdentifierT = Aws::String>
48 ListProjectsRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
49 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetUserIdentifier() const { return m_userIdentifier; }
59 inline bool UserIdentifierHasBeenSet() const { return m_userIdentifierHasBeenSet; }
60 template <typename UserIdentifierT = Aws::String>
61 void SetUserIdentifier(UserIdentifierT&& value) {
62 m_userIdentifierHasBeenSet = true;
63 m_userIdentifier = std::forward<UserIdentifierT>(value);
64 }
65 template <typename UserIdentifierT = Aws::String>
66 ListProjectsRequest& WithUserIdentifier(UserIdentifierT&& value) {
67 SetUserIdentifier(std::forward<UserIdentifierT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetGroupIdentifier() const { return m_groupIdentifier; }
77 inline bool GroupIdentifierHasBeenSet() const { return m_groupIdentifierHasBeenSet; }
78 template <typename GroupIdentifierT = Aws::String>
79 void SetGroupIdentifier(GroupIdentifierT&& value) {
80 m_groupIdentifierHasBeenSet = true;
81 m_groupIdentifier = std::forward<GroupIdentifierT>(value);
82 }
83 template <typename GroupIdentifierT = Aws::String>
84 ListProjectsRequest& WithGroupIdentifier(GroupIdentifierT&& value) {
85 SetGroupIdentifier(std::forward<GroupIdentifierT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetName() const { return m_name; }
95 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
96 template <typename NameT = Aws::String>
97 void SetName(NameT&& value) {
98 m_nameHasBeenSet = true;
99 m_name = std::forward<NameT>(value);
100 }
101 template <typename NameT = Aws::String>
103 SetName(std::forward<NameT>(value));
104 return *this;
105 }
107
109
117 inline const Aws::String& GetNextToken() const { return m_nextToken; }
118 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
119 template <typename NextTokenT = Aws::String>
120 void SetNextToken(NextTokenT&& value) {
121 m_nextTokenHasBeenSet = true;
122 m_nextToken = std::forward<NextTokenT>(value);
123 }
124 template <typename NextTokenT = Aws::String>
125 ListProjectsRequest& WithNextToken(NextTokenT&& value) {
126 SetNextToken(std::forward<NextTokenT>(value));
127 return *this;
128 }
130
132
139 inline int GetMaxResults() const { return m_maxResults; }
140 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
141 inline void SetMaxResults(int value) {
142 m_maxResultsHasBeenSet = true;
143 m_maxResults = value;
144 }
146 SetMaxResults(value);
147 return *this;
148 }
150 private:
151 Aws::String m_domainIdentifier;
152
153 Aws::String m_userIdentifier;
154
155 Aws::String m_groupIdentifier;
156
157 Aws::String m_name;
158
159 Aws::String m_nextToken;
160
161 int m_maxResults{0};
162 bool m_domainIdentifierHasBeenSet = false;
163 bool m_userIdentifierHasBeenSet = false;
164 bool m_groupIdentifierHasBeenSet = false;
165 bool m_nameHasBeenSet = false;
166 bool m_nextTokenHasBeenSet = false;
167 bool m_maxResultsHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace DataZone
172} // namespace Aws
ListProjectsRequest & WithName(NameT &&value)
void SetDomainIdentifier(DomainIdentifierT &&value)
void SetUserIdentifier(UserIdentifierT &&value)
ListProjectsRequest & WithMaxResults(int value)
AWS_DATAZONE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::String & GetUserIdentifier() const
ListProjectsRequest & WithDomainIdentifier(DomainIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
AWS_DATAZONE_API ListProjectsRequest()=default
void SetGroupIdentifier(GroupIdentifierT &&value)
const Aws::String & GetGroupIdentifier() const
ListProjectsRequest & WithUserIdentifier(UserIdentifierT &&value)
ListProjectsRequest & WithGroupIdentifier(GroupIdentifierT &&value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
ListProjectsRequest & WithNextToken(NextTokenT &&value)
const Aws::String & GetDomainIdentifier() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String