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

The name of the permission group.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the permission group.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the permission group.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the permission group.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the permission group.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the permission group.

*/ inline CreatePermissionGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the permission group.

*/ inline CreatePermissionGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the permission group.

*/ inline CreatePermissionGroupRequest& WithName(const char* value) { SetName(value); return *this;} /** *

A brief description for the permission group.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A brief description for the permission group.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A brief description for the permission group.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A brief description for the permission group.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A brief description for the permission group.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A brief description for the permission group.

*/ inline CreatePermissionGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A brief description for the permission group.

*/ inline CreatePermissionGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A brief description for the permission group.

*/ inline CreatePermissionGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The option to indicate FinSpace application permissions that are granted to a * specific group.

When assigning application permissions, be * aware that the permission ManageUsersAndGroups allows users to * grant themselves or others access to any functionality in their FinSpace * environment's application. It should only be granted to trusted users.

*
  • CreateDataset – Group members can create * new datasets.

  • ManageClusters – Group members can * manage Apache Spark clusters from FinSpace notebooks.

  • * ManageUsersAndGroups – Group members can manage users and * permission groups. This is a privileged permission that allows users to grant * themselves or others access to any functionality in the application. It should * only be granted to trusted users.

  • * ManageAttributeSets – Group members can manage attribute sets.

    *
  • ViewAuditData – Group members can view audit * data.

  • AccessNotebooks – Group members will have * access to FinSpace notebooks.

  • * GetTemporaryCredentials – Group members can get temporary API * credentials.

*/ inline const Aws::Vector& GetApplicationPermissions() const{ return m_applicationPermissions; } /** *

The option to indicate FinSpace application permissions that are granted to a * specific group.

When assigning application permissions, be * aware that the permission ManageUsersAndGroups allows users to * grant themselves or others access to any functionality in their FinSpace * environment's application. It should only be granted to trusted users.

*
  • CreateDataset – Group members can create * new datasets.

  • ManageClusters – Group members can * manage Apache Spark clusters from FinSpace notebooks.

  • * ManageUsersAndGroups – Group members can manage users and * permission groups. This is a privileged permission that allows users to grant * themselves or others access to any functionality in the application. It should * only be granted to trusted users.

  • * ManageAttributeSets – Group members can manage attribute sets.

    *
  • ViewAuditData – Group members can view audit * data.

  • AccessNotebooks – Group members will have * access to FinSpace notebooks.

  • * GetTemporaryCredentials – Group members can get temporary API * credentials.

*/ inline bool ApplicationPermissionsHasBeenSet() const { return m_applicationPermissionsHasBeenSet; } /** *

The option to indicate FinSpace application permissions that are granted to a * specific group.

When assigning application permissions, be * aware that the permission ManageUsersAndGroups allows users to * grant themselves or others access to any functionality in their FinSpace * environment's application. It should only be granted to trusted users.

*
  • CreateDataset – Group members can create * new datasets.

  • ManageClusters – Group members can * manage Apache Spark clusters from FinSpace notebooks.

  • * ManageUsersAndGroups – Group members can manage users and * permission groups. This is a privileged permission that allows users to grant * themselves or others access to any functionality in the application. It should * only be granted to trusted users.

  • * ManageAttributeSets – Group members can manage attribute sets.

    *
  • ViewAuditData – Group members can view audit * data.

  • AccessNotebooks – Group members will have * access to FinSpace notebooks.

  • * GetTemporaryCredentials – Group members can get temporary API * credentials.

*/ inline void SetApplicationPermissions(const Aws::Vector& value) { m_applicationPermissionsHasBeenSet = true; m_applicationPermissions = value; } /** *

The option to indicate FinSpace application permissions that are granted to a * specific group.

When assigning application permissions, be * aware that the permission ManageUsersAndGroups allows users to * grant themselves or others access to any functionality in their FinSpace * environment's application. It should only be granted to trusted users.

*
  • CreateDataset – Group members can create * new datasets.

  • ManageClusters – Group members can * manage Apache Spark clusters from FinSpace notebooks.

  • * ManageUsersAndGroups – Group members can manage users and * permission groups. This is a privileged permission that allows users to grant * themselves or others access to any functionality in the application. It should * only be granted to trusted users.

  • * ManageAttributeSets – Group members can manage attribute sets.

    *
  • ViewAuditData – Group members can view audit * data.

  • AccessNotebooks – Group members will have * access to FinSpace notebooks.

  • * GetTemporaryCredentials – Group members can get temporary API * credentials.

*/ inline void SetApplicationPermissions(Aws::Vector&& value) { m_applicationPermissionsHasBeenSet = true; m_applicationPermissions = std::move(value); } /** *

The option to indicate FinSpace application permissions that are granted to a * specific group.

When assigning application permissions, be * aware that the permission ManageUsersAndGroups allows users to * grant themselves or others access to any functionality in their FinSpace * environment's application. It should only be granted to trusted users.

*
  • CreateDataset – Group members can create * new datasets.

  • ManageClusters – Group members can * manage Apache Spark clusters from FinSpace notebooks.

  • * ManageUsersAndGroups – Group members can manage users and * permission groups. This is a privileged permission that allows users to grant * themselves or others access to any functionality in the application. It should * only be granted to trusted users.

  • * ManageAttributeSets – Group members can manage attribute sets.

    *
  • ViewAuditData – Group members can view audit * data.

  • AccessNotebooks – Group members will have * access to FinSpace notebooks.

  • * GetTemporaryCredentials – Group members can get temporary API * credentials.

*/ inline CreatePermissionGroupRequest& WithApplicationPermissions(const Aws::Vector& value) { SetApplicationPermissions(value); return *this;} /** *

The option to indicate FinSpace application permissions that are granted to a * specific group.

When assigning application permissions, be * aware that the permission ManageUsersAndGroups allows users to * grant themselves or others access to any functionality in their FinSpace * environment's application. It should only be granted to trusted users.

*
  • CreateDataset – Group members can create * new datasets.

  • ManageClusters – Group members can * manage Apache Spark clusters from FinSpace notebooks.

  • * ManageUsersAndGroups – Group members can manage users and * permission groups. This is a privileged permission that allows users to grant * themselves or others access to any functionality in the application. It should * only be granted to trusted users.

  • * ManageAttributeSets – Group members can manage attribute sets.

    *
  • ViewAuditData – Group members can view audit * data.

  • AccessNotebooks – Group members will have * access to FinSpace notebooks.

  • * GetTemporaryCredentials – Group members can get temporary API * credentials.

*/ inline CreatePermissionGroupRequest& WithApplicationPermissions(Aws::Vector&& value) { SetApplicationPermissions(std::move(value)); return *this;} /** *

The option to indicate FinSpace application permissions that are granted to a * specific group.

When assigning application permissions, be * aware that the permission ManageUsersAndGroups allows users to * grant themselves or others access to any functionality in their FinSpace * environment's application. It should only be granted to trusted users.

*
  • CreateDataset – Group members can create * new datasets.

  • ManageClusters – Group members can * manage Apache Spark clusters from FinSpace notebooks.

  • * ManageUsersAndGroups – Group members can manage users and * permission groups. This is a privileged permission that allows users to grant * themselves or others access to any functionality in the application. It should * only be granted to trusted users.

  • * ManageAttributeSets – Group members can manage attribute sets.

    *
  • ViewAuditData – Group members can view audit * data.

  • AccessNotebooks – Group members will have * access to FinSpace notebooks.

  • * GetTemporaryCredentials – Group members can get temporary API * credentials.

*/ inline CreatePermissionGroupRequest& AddApplicationPermissions(const ApplicationPermission& value) { m_applicationPermissionsHasBeenSet = true; m_applicationPermissions.push_back(value); return *this; } /** *

The option to indicate FinSpace application permissions that are granted to a * specific group.

When assigning application permissions, be * aware that the permission ManageUsersAndGroups allows users to * grant themselves or others access to any functionality in their FinSpace * environment's application. It should only be granted to trusted users.

*
  • CreateDataset – Group members can create * new datasets.

  • ManageClusters – Group members can * manage Apache Spark clusters from FinSpace notebooks.

  • * ManageUsersAndGroups – Group members can manage users and * permission groups. This is a privileged permission that allows users to grant * themselves or others access to any functionality in the application. It should * only be granted to trusted users.

  • * ManageAttributeSets – Group members can manage attribute sets.

    *
  • ViewAuditData – Group members can view audit * data.

  • AccessNotebooks – Group members will have * access to FinSpace notebooks.

  • * GetTemporaryCredentials – Group members can get temporary API * credentials.

*/ inline CreatePermissionGroupRequest& AddApplicationPermissions(ApplicationPermission&& value) { m_applicationPermissionsHasBeenSet = true; m_applicationPermissions.push_back(std::move(value)); return *this; } /** *

A token that ensures idempotency. This token expires in 10 minutes.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A token that ensures idempotency. This token expires in 10 minutes.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A token that ensures idempotency. This token expires in 10 minutes.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A token that ensures idempotency. This token expires in 10 minutes.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A token that ensures idempotency. This token expires in 10 minutes.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A token that ensures idempotency. This token expires in 10 minutes.

*/ inline CreatePermissionGroupRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A token that ensures idempotency. This token expires in 10 minutes.

*/ inline CreatePermissionGroupRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A token that ensures idempotency. This token expires in 10 minutes.

*/ inline CreatePermissionGroupRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_applicationPermissions; bool m_applicationPermissionsHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace FinSpaceData } // namespace Aws