/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace ManagedGrafana { namespace Model { /** */ class ListPermissionsRequest : public ManagedGrafanaRequest { public: AWS_MANAGEDGRAFANA_API ListPermissionsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ListPermissions"; } AWS_MANAGEDGRAFANA_API Aws::String SerializePayload() const override; AWS_MANAGEDGRAFANA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

(Optional) Limits the results to only the group that matches this ID.

*/ inline const Aws::String& GetGroupId() const{ return m_groupId; } /** *

(Optional) Limits the results to only the group that matches this ID.

*/ inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; } /** *

(Optional) Limits the results to only the group that matches this ID.

*/ inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; } /** *

(Optional) Limits the results to only the group that matches this ID.

*/ inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); } /** *

(Optional) Limits the results to only the group that matches this ID.

*/ inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); } /** *

(Optional) Limits the results to only the group that matches this ID.

*/ inline ListPermissionsRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;} /** *

(Optional) Limits the results to only the group that matches this ID.

*/ inline ListPermissionsRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;} /** *

(Optional) Limits the results to only the group that matches this ID.

*/ inline ListPermissionsRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;} /** *

The maximum number of results to include in the response.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of results to include in the response.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of results to include in the response.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of results to include in the response.

*/ inline ListPermissionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

The token to use when requesting the next set of results. You received this * token from a previous ListPermissions operation.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token to use when requesting the next set of results. You received this * token from a previous ListPermissions operation.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The token to use when requesting the next set of results. You received this * token from a previous ListPermissions operation.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The token to use when requesting the next set of results. You received this * token from a previous ListPermissions operation.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The token to use when requesting the next set of results. You received this * token from a previous ListPermissions operation.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The token to use when requesting the next set of results. You received this * token from a previous ListPermissions operation.

*/ inline ListPermissionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token to use when requesting the next set of results. You received this * token from a previous ListPermissions operation.

*/ inline ListPermissionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token to use when requesting the next set of results. You received this * token from a previous ListPermissions operation.

*/ inline ListPermissionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

(Optional) Limits the results to only the user that matches this ID.

*/ inline const Aws::String& GetUserId() const{ return m_userId; } /** *

(Optional) Limits the results to only the user that matches this ID.

*/ inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; } /** *

(Optional) Limits the results to only the user that matches this ID.

*/ inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; } /** *

(Optional) Limits the results to only the user that matches this ID.

*/ inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); } /** *

(Optional) Limits the results to only the user that matches this ID.

*/ inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); } /** *

(Optional) Limits the results to only the user that matches this ID.

*/ inline ListPermissionsRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;} /** *

(Optional) Limits the results to only the user that matches this ID.

*/ inline ListPermissionsRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;} /** *

(Optional) Limits the results to only the user that matches this ID.

*/ inline ListPermissionsRequest& WithUserId(const char* value) { SetUserId(value); return *this;} /** *

(Optional) If you specify SSO_USER, then only the permissions of * IAM Identity Center users are returned. If you specify SSO_GROUP, * only the permissions of IAM Identity Center groups are returned.

*/ inline const UserType& GetUserType() const{ return m_userType; } /** *

(Optional) If you specify SSO_USER, then only the permissions of * IAM Identity Center users are returned. If you specify SSO_GROUP, * only the permissions of IAM Identity Center groups are returned.

*/ inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; } /** *

(Optional) If you specify SSO_USER, then only the permissions of * IAM Identity Center users are returned. If you specify SSO_GROUP, * only the permissions of IAM Identity Center groups are returned.

*/ inline void SetUserType(const UserType& value) { m_userTypeHasBeenSet = true; m_userType = value; } /** *

(Optional) If you specify SSO_USER, then only the permissions of * IAM Identity Center users are returned. If you specify SSO_GROUP, * only the permissions of IAM Identity Center groups are returned.

*/ inline void SetUserType(UserType&& value) { m_userTypeHasBeenSet = true; m_userType = std::move(value); } /** *

(Optional) If you specify SSO_USER, then only the permissions of * IAM Identity Center users are returned. If you specify SSO_GROUP, * only the permissions of IAM Identity Center groups are returned.

*/ inline ListPermissionsRequest& WithUserType(const UserType& value) { SetUserType(value); return *this;} /** *

(Optional) If you specify SSO_USER, then only the permissions of * IAM Identity Center users are returned. If you specify SSO_GROUP, * only the permissions of IAM Identity Center groups are returned.

*/ inline ListPermissionsRequest& WithUserType(UserType&& value) { SetUserType(std::move(value)); return *this;} /** *

The ID of the workspace to list permissions for. This parameter is * required.

*/ inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; } /** *

The ID of the workspace to list permissions for. This parameter is * required.

*/ inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; } /** *

The ID of the workspace to list permissions for. This parameter is * required.

*/ inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; } /** *

The ID of the workspace to list permissions for. This parameter is * required.

*/ inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); } /** *

The ID of the workspace to list permissions for. This parameter is * required.

*/ inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); } /** *

The ID of the workspace to list permissions for. This parameter is * required.

*/ inline ListPermissionsRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;} /** *

The ID of the workspace to list permissions for. This parameter is * required.

*/ inline ListPermissionsRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;} /** *

The ID of the workspace to list permissions for. This parameter is * required.

*/ inline ListPermissionsRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;} private: Aws::String m_groupId; bool m_groupIdHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; Aws::String m_userId; bool m_userIdHasBeenSet = false; UserType m_userType; bool m_userTypeHasBeenSet = false; Aws::String m_workspaceId; bool m_workspaceIdHasBeenSet = false; }; } // namespace Model } // namespace ManagedGrafana } // namespace Aws