All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.finspacedata.model.UpdatePermissionGroupRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.finspacedata.model

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdatePermissionGroupRequest private constructor(builder: Builder) {
    /**
     * The permissions that are granted to a specific group for accessing the FinSpace application.
     *
     * 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.
     */
    public val applicationPermissions: List? = builder.applicationPermissions
    /**
     * A token that ensures idempotency. This token expires in 10 minutes.
     */
    public val clientToken: kotlin.String? = builder.clientToken
    /**
     * A brief description for the permission group.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The name of the permission group.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The unique identifier for the permission group to update.
     */
    public val permissionGroupId: kotlin.String? = builder.permissionGroupId

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.finspacedata.model.UpdatePermissionGroupRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("UpdatePermissionGroupRequest(")
        append("applicationPermissions=$applicationPermissions,")
        append("clientToken=$clientToken,")
        append("description=*** Sensitive Data Redacted ***,")
        append("name=*** Sensitive Data Redacted ***,")
        append("permissionGroupId=$permissionGroupId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = applicationPermissions?.hashCode() ?: 0
        result = 31 * result + (clientToken?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (permissionGroupId?.hashCode() ?: 0)
        return result
    }

    override fun equals(other: kotlin.Any?): kotlin.Boolean {
        if (this === other) return true
        if (other == null || this::class != other::class) return false

        other as UpdatePermissionGroupRequest

        if (applicationPermissions != other.applicationPermissions) return false
        if (clientToken != other.clientToken) return false
        if (description != other.description) return false
        if (name != other.name) return false
        if (permissionGroupId != other.permissionGroupId) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.finspacedata.model.UpdatePermissionGroupRequest = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The permissions that are granted to a specific group for accessing the FinSpace application.
         *
         * 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.
         */
        public var applicationPermissions: List? = null
        /**
         * A token that ensures idempotency. This token expires in 10 minutes.
         */
        public var clientToken: kotlin.String? = null
        /**
         * A brief description for the permission group.
         */
        public var description: kotlin.String? = null
        /**
         * The name of the permission group.
         */
        public var name: kotlin.String? = null
        /**
         * The unique identifier for the permission group to update.
         */
        public var permissionGroupId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.finspacedata.model.UpdatePermissionGroupRequest) : this() {
            this.applicationPermissions = x.applicationPermissions
            this.clientToken = x.clientToken
            this.description = x.description
            this.name = x.name
            this.permissionGroupId = x.permissionGroupId
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.finspacedata.model.UpdatePermissionGroupRequest = UpdatePermissionGroupRequest(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy