/** * 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 UpdateThemePermissionsRequest : public QuickSightRequest { public: AWS_QUICKSIGHT_API UpdateThemePermissionsRequest(); // 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 "UpdateThemePermissions"; } AWS_QUICKSIGHT_API Aws::String SerializePayload() const override; /** *

The ID of the Amazon Web Services account that contains the theme.

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

The ID of the Amazon Web Services account that contains the theme.

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

The ID of the Amazon Web Services account that contains the theme.

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

The ID of the Amazon Web Services account that contains the theme.

*/ 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 theme.

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

The ID of the Amazon Web Services account that contains the theme.

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

The ID of the Amazon Web Services account that contains the theme.

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

The ID of the Amazon Web Services account that contains the theme.

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

The ID for the theme.

*/ inline const Aws::String& GetThemeId() const{ return m_themeId; } /** *

The ID for the theme.

*/ inline bool ThemeIdHasBeenSet() const { return m_themeIdHasBeenSet; } /** *

The ID for the theme.

*/ inline void SetThemeId(const Aws::String& value) { m_themeIdHasBeenSet = true; m_themeId = value; } /** *

The ID for the theme.

*/ inline void SetThemeId(Aws::String&& value) { m_themeIdHasBeenSet = true; m_themeId = std::move(value); } /** *

The ID for the theme.

*/ inline void SetThemeId(const char* value) { m_themeIdHasBeenSet = true; m_themeId.assign(value); } /** *

The ID for the theme.

*/ inline UpdateThemePermissionsRequest& WithThemeId(const Aws::String& value) { SetThemeId(value); return *this;} /** *

The ID for the theme.

*/ inline UpdateThemePermissionsRequest& WithThemeId(Aws::String&& value) { SetThemeId(std::move(value)); return *this;} /** *

The ID for the theme.

*/ inline UpdateThemePermissionsRequest& WithThemeId(const char* value) { SetThemeId(value); return *this;} /** *

A list of resource permissions to be granted for the theme.

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

A list of resource permissions to be granted for the theme.

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

A list of resource permissions to be granted for the theme.

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

A list of resource permissions to be granted for the theme.

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

A list of resource permissions to be granted for the theme.

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

A list of resource permissions to be granted for the theme.

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

A list of resource permissions to be granted for the theme.

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

A list of resource permissions to be granted for the theme.

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

A list of resource permissions to be revoked from the theme.

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

A list of resource permissions to be revoked from the theme.

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

A list of resource permissions to be revoked from the theme.

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

A list of resource permissions to be revoked from the theme.

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

A list of resource permissions to be revoked from the theme.

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

A list of resource permissions to be revoked from the theme.

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

A list of resource permissions to be revoked from the theme.

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

A list of resource permissions to be revoked from the theme.

*/ inline UpdateThemePermissionsRequest& AddRevokePermissions(ResourcePermission&& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions.push_back(std::move(value)); return *this; } private: Aws::String m_awsAccountId; bool m_awsAccountIdHasBeenSet = false; Aws::String m_themeId; bool m_themeIdHasBeenSet = false; Aws::Vector m_grantPermissions; bool m_grantPermissionsHasBeenSet = false; Aws::Vector m_revokePermissions; bool m_revokePermissionsHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws