AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
49 inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
50 inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
51 inline ListPermissionsRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
52 inline ListPermissionsRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
53 inline ListPermissionsRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;}
55
57
60 inline int GetMaxResults() const{ return m_maxResults; }
61 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
62 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
63 inline ListPermissionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
65
67
71 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
72 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
73 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
74 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
75 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
76 inline ListPermissionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
77 inline ListPermissionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
78 inline ListPermissionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
80
82
85 inline const Aws::String& GetUserId() const{ return m_userId; }
86 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
87 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
88 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
89 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
90 inline ListPermissionsRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
91 inline ListPermissionsRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
92 inline ListPermissionsRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
94
96
101 inline const UserType& GetUserType() const{ return m_userType; }
102 inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; }
103 inline void SetUserType(const UserType& value) { m_userTypeHasBeenSet = true; m_userType = value; }
104 inline void SetUserType(UserType&& value) { m_userTypeHasBeenSet = true; m_userType = std::move(value); }
105 inline ListPermissionsRequest& WithUserType(const UserType& value) { SetUserType(value); return *this;}
106 inline ListPermissionsRequest& WithUserType(UserType&& value) { SetUserType(std::move(value)); return *this;}
108
110
114 inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; }
115 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
116 inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
117 inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); }
118 inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
119 inline ListPermissionsRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
120 inline ListPermissionsRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
121 inline ListPermissionsRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
123 private:
124
125 Aws::String m_groupId;
126 bool m_groupIdHasBeenSet = false;
127
128 int m_maxResults;
129 bool m_maxResultsHasBeenSet = false;
130
131 Aws::String m_nextToken;
132 bool m_nextTokenHasBeenSet = false;
133
134 Aws::String m_userId;
135 bool m_userIdHasBeenSet = false;
136
137 UserType m_userType;
138 bool m_userTypeHasBeenSet = false;
139
140 Aws::String m_workspaceId;
141 bool m_workspaceIdHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace ManagedGrafana
146} // namespace Aws
ListPermissionsRequest & WithUserType(UserType &&value)
ListPermissionsRequest & WithGroupId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
ListPermissionsRequest & WithWorkspaceId(const Aws::String &value)
ListPermissionsRequest & WithWorkspaceId(const char *value)
ListPermissionsRequest & WithNextToken(const Aws::String &value)
ListPermissionsRequest & WithUserId(const char *value)
ListPermissionsRequest & WithUserType(const UserType &value)
ListPermissionsRequest & WithGroupId(Aws::String &&value)
ListPermissionsRequest & WithUserId(const Aws::String &value)
AWS_MANAGEDGRAFANA_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_MANAGEDGRAFANA_API Aws::String SerializePayload() const override
ListPermissionsRequest & WithGroupId(const char *value)
ListPermissionsRequest & WithNextToken(const char *value)
ListPermissionsRequest & WithUserId(Aws::String &&value)
ListPermissionsRequest & WithWorkspaceId(Aws::String &&value)
ListPermissionsRequest & WithNextToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String