226 lines
8.5 KiB
C++
226 lines
8.5 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/quicksight/QuickSight_EXPORTS.h>
|
|
#include <aws/quicksight/QuickSightRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/quicksight/model/ResourcePermission.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace QuickSight
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_QUICKSIGHT_API UpdateDashboardPermissionsRequest : public QuickSightRequest
|
|
{
|
|
public:
|
|
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::String SerializePayload() const override;
|
|
|
|
|
|
/**
|
|
* <p>The ID of the AWS account that contains the dashboard whose permissions
|
|
* you're updating.</p>
|
|
*/
|
|
inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
|
|
|
|
/**
|
|
* <p>The ID of the AWS account that contains the dashboard whose permissions
|
|
* you're updating.</p>
|
|
*/
|
|
inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ID of the AWS account that contains the dashboard whose permissions
|
|
* you're updating.</p>
|
|
*/
|
|
inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
|
|
|
|
/**
|
|
* <p>The ID of the AWS account that contains the dashboard whose permissions
|
|
* you're updating.</p>
|
|
*/
|
|
inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ID of the AWS account that contains the dashboard whose permissions
|
|
* you're updating.</p>
|
|
*/
|
|
inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
|
|
|
|
/**
|
|
* <p>The ID of the AWS account that contains the dashboard whose permissions
|
|
* you're updating.</p>
|
|
*/
|
|
inline UpdateDashboardPermissionsRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the AWS account that contains the dashboard whose permissions
|
|
* you're updating.</p>
|
|
*/
|
|
inline UpdateDashboardPermissionsRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the AWS account that contains the dashboard whose permissions
|
|
* you're updating.</p>
|
|
*/
|
|
inline UpdateDashboardPermissionsRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The ID for the dashboard.</p>
|
|
*/
|
|
inline const Aws::String& GetDashboardId() const{ return m_dashboardId; }
|
|
|
|
/**
|
|
* <p>The ID for the dashboard.</p>
|
|
*/
|
|
inline bool DashboardIdHasBeenSet() const { return m_dashboardIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ID for the dashboard.</p>
|
|
*/
|
|
inline void SetDashboardId(const Aws::String& value) { m_dashboardIdHasBeenSet = true; m_dashboardId = value; }
|
|
|
|
/**
|
|
* <p>The ID for the dashboard.</p>
|
|
*/
|
|
inline void SetDashboardId(Aws::String&& value) { m_dashboardIdHasBeenSet = true; m_dashboardId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ID for the dashboard.</p>
|
|
*/
|
|
inline void SetDashboardId(const char* value) { m_dashboardIdHasBeenSet = true; m_dashboardId.assign(value); }
|
|
|
|
/**
|
|
* <p>The ID for the dashboard.</p>
|
|
*/
|
|
inline UpdateDashboardPermissionsRequest& WithDashboardId(const Aws::String& value) { SetDashboardId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ID for the dashboard.</p>
|
|
*/
|
|
inline UpdateDashboardPermissionsRequest& WithDashboardId(Aws::String&& value) { SetDashboardId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ID for the dashboard.</p>
|
|
*/
|
|
inline UpdateDashboardPermissionsRequest& WithDashboardId(const char* value) { SetDashboardId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The permissions that you want to grant on this resource.</p>
|
|
*/
|
|
inline const Aws::Vector<ResourcePermission>& GetGrantPermissions() const{ return m_grantPermissions; }
|
|
|
|
/**
|
|
* <p>The permissions that you want to grant on this resource.</p>
|
|
*/
|
|
inline bool GrantPermissionsHasBeenSet() const { return m_grantPermissionsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The permissions that you want to grant on this resource.</p>
|
|
*/
|
|
inline void SetGrantPermissions(const Aws::Vector<ResourcePermission>& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions = value; }
|
|
|
|
/**
|
|
* <p>The permissions that you want to grant on this resource.</p>
|
|
*/
|
|
inline void SetGrantPermissions(Aws::Vector<ResourcePermission>&& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions = std::move(value); }
|
|
|
|
/**
|
|
* <p>The permissions that you want to grant on this resource.</p>
|
|
*/
|
|
inline UpdateDashboardPermissionsRequest& WithGrantPermissions(const Aws::Vector<ResourcePermission>& value) { SetGrantPermissions(value); return *this;}
|
|
|
|
/**
|
|
* <p>The permissions that you want to grant on this resource.</p>
|
|
*/
|
|
inline UpdateDashboardPermissionsRequest& WithGrantPermissions(Aws::Vector<ResourcePermission>&& value) { SetGrantPermissions(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The permissions that you want to grant on this resource.</p>
|
|
*/
|
|
inline UpdateDashboardPermissionsRequest& AddGrantPermissions(const ResourcePermission& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>The permissions that you want to grant on this resource.</p>
|
|
*/
|
|
inline UpdateDashboardPermissionsRequest& AddGrantPermissions(ResourcePermission&& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions.push_back(std::move(value)); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>The permissions that you want to revoke from this resource.</p>
|
|
*/
|
|
inline const Aws::Vector<ResourcePermission>& GetRevokePermissions() const{ return m_revokePermissions; }
|
|
|
|
/**
|
|
* <p>The permissions that you want to revoke from this resource.</p>
|
|
*/
|
|
inline bool RevokePermissionsHasBeenSet() const { return m_revokePermissionsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The permissions that you want to revoke from this resource.</p>
|
|
*/
|
|
inline void SetRevokePermissions(const Aws::Vector<ResourcePermission>& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions = value; }
|
|
|
|
/**
|
|
* <p>The permissions that you want to revoke from this resource.</p>
|
|
*/
|
|
inline void SetRevokePermissions(Aws::Vector<ResourcePermission>&& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions = std::move(value); }
|
|
|
|
/**
|
|
* <p>The permissions that you want to revoke from this resource.</p>
|
|
*/
|
|
inline UpdateDashboardPermissionsRequest& WithRevokePermissions(const Aws::Vector<ResourcePermission>& value) { SetRevokePermissions(value); return *this;}
|
|
|
|
/**
|
|
* <p>The permissions that you want to revoke from this resource.</p>
|
|
*/
|
|
inline UpdateDashboardPermissionsRequest& WithRevokePermissions(Aws::Vector<ResourcePermission>&& value) { SetRevokePermissions(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The permissions that you want to revoke from this resource.</p>
|
|
*/
|
|
inline UpdateDashboardPermissionsRequest& AddRevokePermissions(const ResourcePermission& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>The permissions that you want to revoke from this resource.</p>
|
|
*/
|
|
inline UpdateDashboardPermissionsRequest& AddRevokePermissions(ResourcePermission&& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions.push_back(std::move(value)); return *this; }
|
|
|
|
private:
|
|
|
|
Aws::String m_awsAccountId;
|
|
bool m_awsAccountIdHasBeenSet;
|
|
|
|
Aws::String m_dashboardId;
|
|
bool m_dashboardIdHasBeenSet;
|
|
|
|
Aws::Vector<ResourcePermission> m_grantPermissions;
|
|
bool m_grantPermissionsHasBeenSet;
|
|
|
|
Aws::Vector<ResourcePermission> m_revokePermissions;
|
|
bool m_revokePermissionsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace QuickSight
|
|
} // namespace Aws
|