AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListPermissionsRequest.h
1
6#pragma once
7#include <aws/grafana/ManagedGrafana_EXPORTS.h>
8#include <aws/grafana/ManagedGrafanaRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/grafana/model/UserType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace ManagedGrafana
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_MANAGEDGRAFANA_API ListPermissionsRequest() = 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 "ListPermissions"; }
36
37 AWS_MANAGEDGRAFANA_API Aws::String SerializePayload() const override;
38
39 AWS_MANAGEDGRAFANA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
46 inline const Aws::String& GetGroupId() const { return m_groupId; }
47 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
48 template<typename GroupIdT = Aws::String>
49 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet = true; m_groupId = std::forward<GroupIdT>(value); }
50 template<typename GroupIdT = Aws::String>
51 ListPermissionsRequest& WithGroupId(GroupIdT&& value) { SetGroupId(std::forward<GroupIdT>(value)); return *this;}
53
55
58 inline int GetMaxResults() const { return m_maxResults; }
59 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
60 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
61 inline ListPermissionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
63
65
69 inline const Aws::String& GetNextToken() const { return m_nextToken; }
70 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
71 template<typename NextTokenT = Aws::String>
72 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
73 template<typename NextTokenT = Aws::String>
74 ListPermissionsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
76
78
81 inline const Aws::String& GetUserId() const { return m_userId; }
82 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
83 template<typename UserIdT = Aws::String>
84 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
85 template<typename UserIdT = Aws::String>
86 ListPermissionsRequest& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
88
90
95 inline UserType GetUserType() const { return m_userType; }
96 inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; }
97 inline void SetUserType(UserType value) { m_userTypeHasBeenSet = true; m_userType = value; }
98 inline ListPermissionsRequest& WithUserType(UserType value) { SetUserType(value); return *this;}
100
102
106 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
107 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
108 template<typename WorkspaceIdT = Aws::String>
109 void SetWorkspaceId(WorkspaceIdT&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::forward<WorkspaceIdT>(value); }
110 template<typename WorkspaceIdT = Aws::String>
111 ListPermissionsRequest& WithWorkspaceId(WorkspaceIdT&& value) { SetWorkspaceId(std::forward<WorkspaceIdT>(value)); return *this;}
113 private:
114
115 Aws::String m_groupId;
116 bool m_groupIdHasBeenSet = false;
117
118 int m_maxResults{0};
119 bool m_maxResultsHasBeenSet = false;
120
121 Aws::String m_nextToken;
122 bool m_nextTokenHasBeenSet = false;
123
124 Aws::String m_userId;
125 bool m_userIdHasBeenSet = false;
126
127 UserType m_userType{UserType::NOT_SET};
128 bool m_userTypeHasBeenSet = false;
129
130 Aws::String m_workspaceId;
131 bool m_workspaceIdHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace ManagedGrafana
136} // 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