/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace QuickSight { namespace Model { /** */ class UpdateDashboardPermissionsRequest : public QuickSightRequest { public: AWS_QUICKSIGHT_API UpdateDashboardPermissionsRequest(); // 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 "UpdateDashboardPermissions"; } AWS_QUICKSIGHT_API Aws::String SerializePayload() const override; /** *

The ID of the Amazon Web Services account that contains the dashboard whose * permissions you're updating.

*/ inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; } /** *

The ID of the Amazon Web Services account that contains the dashboard whose * permissions you're updating.

*/ inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; } /** *

The ID of the Amazon Web Services account that contains the dashboard whose * permissions you're updating.

*/ inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; } /** *

The ID of the Amazon Web Services account that contains the dashboard whose * permissions you're updating.

*/ inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); } /** *

The ID of the Amazon Web Services account that contains the dashboard whose * permissions you're updating.

*/ inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); } /** *

The ID of the Amazon Web Services account that contains the dashboard whose * permissions you're updating.

*/ inline UpdateDashboardPermissionsRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;} /** *

The ID of the Amazon Web Services account that contains the dashboard whose * permissions you're updating.

*/ inline UpdateDashboardPermissionsRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;} /** *

The ID of the Amazon Web Services account that contains the dashboard whose * permissions you're updating.

*/ inline UpdateDashboardPermissionsRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;} /** *

The ID for the dashboard.

*/ inline const Aws::String& GetDashboardId() const{ return m_dashboardId; } /** *

The ID for the dashboard.

*/ inline bool DashboardIdHasBeenSet() const { return m_dashboardIdHasBeenSet; } /** *

The ID for the dashboard.

*/ inline void SetDashboardId(const Aws::String& value) { m_dashboardIdHasBeenSet = true; m_dashboardId = value; } /** *

The ID for the dashboard.

*/ inline void SetDashboardId(Aws::String&& value) { m_dashboardIdHasBeenSet = true; m_dashboardId = std::move(value); } /** *

The ID for the dashboard.

*/ inline void SetDashboardId(const char* value) { m_dashboardIdHasBeenSet = true; m_dashboardId.assign(value); } /** *

The ID for the dashboard.

*/ inline UpdateDashboardPermissionsRequest& WithDashboardId(const Aws::String& value) { SetDashboardId(value); return *this;} /** *

The ID for the dashboard.

*/ inline UpdateDashboardPermissionsRequest& WithDashboardId(Aws::String&& value) { SetDashboardId(std::move(value)); return *this;} /** *

The ID for the dashboard.

*/ inline UpdateDashboardPermissionsRequest& WithDashboardId(const char* value) { SetDashboardId(value); return *this;} /** *

The permissions that you want to grant on this resource.

*/ inline const Aws::Vector& GetGrantPermissions() const{ return m_grantPermissions; } /** *

The permissions that you want to grant on this resource.

*/ inline bool GrantPermissionsHasBeenSet() const { return m_grantPermissionsHasBeenSet; } /** *

The permissions that you want to grant on this resource.

*/ inline void SetGrantPermissions(const Aws::Vector& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions = value; } /** *

The permissions that you want to grant on this resource.

*/ inline void SetGrantPermissions(Aws::Vector&& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions = std::move(value); } /** *

The permissions that you want to grant on this resource.

*/ inline UpdateDashboardPermissionsRequest& WithGrantPermissions(const Aws::Vector& value) { SetGrantPermissions(value); return *this;} /** *

The permissions that you want to grant on this resource.

*/ inline UpdateDashboardPermissionsRequest& WithGrantPermissions(Aws::Vector&& value) { SetGrantPermissions(std::move(value)); return *this;} /** *

The permissions that you want to grant on this resource.

*/ inline UpdateDashboardPermissionsRequest& AddGrantPermissions(const ResourcePermission& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions.push_back(value); return *this; } /** *

The permissions that you want to grant on this resource.

*/ inline UpdateDashboardPermissionsRequest& AddGrantPermissions(ResourcePermission&& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions.push_back(std::move(value)); return *this; } /** *

The permissions that you want to revoke from this resource.

*/ inline const Aws::Vector& GetRevokePermissions() const{ return m_revokePermissions; } /** *

The permissions that you want to revoke from this resource.

*/ inline bool RevokePermissionsHasBeenSet() const { return m_revokePermissionsHasBeenSet; } /** *

The permissions that you want to revoke from this resource.

*/ inline void SetRevokePermissions(const Aws::Vector& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions = value; } /** *

The permissions that you want to revoke from this resource.

*/ inline void SetRevokePermissions(Aws::Vector&& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions = std::move(value); } /** *

The permissions that you want to revoke from this resource.

*/ inline UpdateDashboardPermissionsRequest& WithRevokePermissions(const Aws::Vector& value) { SetRevokePermissions(value); return *this;} /** *

The permissions that you want to revoke from this resource.

*/ inline UpdateDashboardPermissionsRequest& WithRevokePermissions(Aws::Vector&& value) { SetRevokePermissions(std::move(value)); return *this;} /** *

The permissions that you want to revoke from this resource.

*/ inline UpdateDashboardPermissionsRequest& AddRevokePermissions(const ResourcePermission& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions.push_back(value); return *this; } /** *

The permissions that you want to revoke from this resource.

*/ inline UpdateDashboardPermissionsRequest& AddRevokePermissions(ResourcePermission&& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions.push_back(std::move(value)); return *this; } /** *

Grants link permissions to all users in a defined namespace.

*/ inline const Aws::Vector& GetGrantLinkPermissions() const{ return m_grantLinkPermissions; } /** *

Grants link permissions to all users in a defined namespace.

*/ inline bool GrantLinkPermissionsHasBeenSet() const { return m_grantLinkPermissionsHasBeenSet; } /** *

Grants link permissions to all users in a defined namespace.

*/ inline void SetGrantLinkPermissions(const Aws::Vector& value) { m_grantLinkPermissionsHasBeenSet = true; m_grantLinkPermissions = value; } /** *

Grants link permissions to all users in a defined namespace.

*/ inline void SetGrantLinkPermissions(Aws::Vector&& value) { m_grantLinkPermissionsHasBeenSet = true; m_grantLinkPermissions = std::move(value); } /** *

Grants link permissions to all users in a defined namespace.

*/ inline UpdateDashboardPermissionsRequest& WithGrantLinkPermissions(const Aws::Vector& value) { SetGrantLinkPermissions(value); return *this;} /** *

Grants link permissions to all users in a defined namespace.

*/ inline UpdateDashboardPermissionsRequest& WithGrantLinkPermissions(Aws::Vector&& value) { SetGrantLinkPermissions(std::move(value)); return *this;} /** *

Grants link permissions to all users in a defined namespace.

*/ inline UpdateDashboardPermissionsRequest& AddGrantLinkPermissions(const ResourcePermission& value) { m_grantLinkPermissionsHasBeenSet = true; m_grantLinkPermissions.push_back(value); return *this; } /** *

Grants link permissions to all users in a defined namespace.

*/ inline UpdateDashboardPermissionsRequest& AddGrantLinkPermissions(ResourcePermission&& value) { m_grantLinkPermissionsHasBeenSet = true; m_grantLinkPermissions.push_back(std::move(value)); return *this; } /** *

Revokes link permissions from all users in a defined namespace.

*/ inline const Aws::Vector& GetRevokeLinkPermissions() const{ return m_revokeLinkPermissions; } /** *

Revokes link permissions from all users in a defined namespace.

*/ inline bool RevokeLinkPermissionsHasBeenSet() const { return m_revokeLinkPermissionsHasBeenSet; } /** *

Revokes link permissions from all users in a defined namespace.

*/ inline void SetRevokeLinkPermissions(const Aws::Vector& value) { m_revokeLinkPermissionsHasBeenSet = true; m_revokeLinkPermissions = value; } /** *

Revokes link permissions from all users in a defined namespace.

*/ inline void SetRevokeLinkPermissions(Aws::Vector&& value) { m_revokeLinkPermissionsHasBeenSet = true; m_revokeLinkPermissions = std::move(value); } /** *

Revokes link permissions from all users in a defined namespace.

*/ inline UpdateDashboardPermissionsRequest& WithRevokeLinkPermissions(const Aws::Vector& value) { SetRevokeLinkPermissions(value); return *this;} /** *

Revokes link permissions from all users in a defined namespace.

*/ inline UpdateDashboardPermissionsRequest& WithRevokeLinkPermissions(Aws::Vector&& value) { SetRevokeLinkPermissions(std::move(value)); return *this;} /** *

Revokes link permissions from all users in a defined namespace.

*/ inline UpdateDashboardPermissionsRequest& AddRevokeLinkPermissions(const ResourcePermission& value) { m_revokeLinkPermissionsHasBeenSet = true; m_revokeLinkPermissions.push_back(value); return *this; } /** *

Revokes link permissions from all users in a defined namespace.

*/ inline UpdateDashboardPermissionsRequest& AddRevokeLinkPermissions(ResourcePermission&& value) { m_revokeLinkPermissionsHasBeenSet = true; m_revokeLinkPermissions.push_back(std::move(value)); return *this; } private: Aws::String m_awsAccountId; bool m_awsAccountIdHasBeenSet = false; Aws::String m_dashboardId; bool m_dashboardIdHasBeenSet = false; Aws::Vector m_grantPermissions; bool m_grantPermissionsHasBeenSet = false; Aws::Vector m_revokePermissions; bool m_revokePermissionsHasBeenSet = false; Aws::Vector m_grantLinkPermissions; bool m_grantLinkPermissionsHasBeenSet = false; Aws::Vector m_revokeLinkPermissions; bool m_revokeLinkPermissionsHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws