AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
ListPermissionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/grafana/ManagedGrafanaRequest.h>
9#include <aws/grafana/ManagedGrafana_EXPORTS.h>
10#include <aws/grafana/model/UserType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace ManagedGrafana {
19namespace Model {
20
24 public:
25 AWS_MANAGEDGRAFANA_API ListPermissionsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListPermissions"; }
32
33 AWS_MANAGEDGRAFANA_API Aws::String SerializePayload() const override;
34
35 AWS_MANAGEDGRAFANA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
41 inline int GetMaxResults() const { return m_maxResults; }
42 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
43 inline void SetMaxResults(int value) {
44 m_maxResultsHasBeenSet = true;
45 m_maxResults = value;
46 }
48 SetMaxResults(value);
49 return *this;
50 }
52
54
58 inline const Aws::String& GetNextToken() const { return m_nextToken; }
59 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
60 template <typename NextTokenT = Aws::String>
61 void SetNextToken(NextTokenT&& value) {
62 m_nextTokenHasBeenSet = true;
63 m_nextToken = std::forward<NextTokenT>(value);
64 }
65 template <typename NextTokenT = Aws::String>
67 SetNextToken(std::forward<NextTokenT>(value));
68 return *this;
69 }
71
73
78 inline UserType GetUserType() const { return m_userType; }
79 inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; }
80 inline void SetUserType(UserType value) {
81 m_userTypeHasBeenSet = true;
82 m_userType = value;
83 }
85 SetUserType(value);
86 return *this;
87 }
89
91
94 inline const Aws::String& GetUserId() const { return m_userId; }
95 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
96 template <typename UserIdT = Aws::String>
97 void SetUserId(UserIdT&& value) {
98 m_userIdHasBeenSet = true;
99 m_userId = std::forward<UserIdT>(value);
100 }
101 template <typename UserIdT = Aws::String>
103 SetUserId(std::forward<UserIdT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetGroupId() const { return m_groupId; }
113 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
114 template <typename GroupIdT = Aws::String>
115 void SetGroupId(GroupIdT&& value) {
116 m_groupIdHasBeenSet = true;
117 m_groupId = std::forward<GroupIdT>(value);
118 }
119 template <typename GroupIdT = Aws::String>
121 SetGroupId(std::forward<GroupIdT>(value));
122 return *this;
123 }
125
127
131 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
132 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
133 template <typename WorkspaceIdT = Aws::String>
134 void SetWorkspaceId(WorkspaceIdT&& value) {
135 m_workspaceIdHasBeenSet = true;
136 m_workspaceId = std::forward<WorkspaceIdT>(value);
137 }
138 template <typename WorkspaceIdT = Aws::String>
140 SetWorkspaceId(std::forward<WorkspaceIdT>(value));
141 return *this;
142 }
144 private:
145 int m_maxResults{0};
146
147 Aws::String m_nextToken;
148
149 UserType m_userType{UserType::NOT_SET};
150
151 Aws::String m_userId;
152
153 Aws::String m_groupId;
154
155 Aws::String m_workspaceId;
156 bool m_maxResultsHasBeenSet = false;
157 bool m_nextTokenHasBeenSet = false;
158 bool m_userTypeHasBeenSet = false;
159 bool m_userIdHasBeenSet = false;
160 bool m_groupIdHasBeenSet = false;
161 bool m_workspaceIdHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace ManagedGrafana
166} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_MANAGEDGRAFANA_API ListPermissionsRequest()=default
ListPermissionsRequest & WithWorkspaceId(WorkspaceIdT &&value)
ListPermissionsRequest & WithUserType(UserType value)
AWS_MANAGEDGRAFANA_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_MANAGEDGRAFANA_API Aws::String SerializePayload() const override
ListPermissionsRequest & WithUserId(UserIdT &&value)
ListPermissionsRequest & WithNextToken(NextTokenT &&value)
ListPermissionsRequest & WithGroupId(GroupIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String