commonMain.aws.sdk.kotlin.services.finspacedata.model.ResourcePermission.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finspacedata-jvm Show documentation
Show all versions of finspacedata-jvm Show documentation
The AWS SDK for Kotlin client for finspace data
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.finspacedata.model
/**
* Resource permission for a dataset. When you create a dataset, all the other members of the same user group inherit access to the dataset. You can only create a dataset if your user group has application permission for Create Datasets.
*
* The following is a list of valid dataset permissions that you can apply:
* + `ViewDatasetDetails`
* + `ReadDatasetDetails`
* + `AddDatasetData`
* + `CreateDataView`
* + `EditDatasetMetadata`
* + `DeleteDataset`
*
* For more information on the dataset permissions, see [Supported Dataset Permissions](https://docs.aws.amazon.com/finspace/latest/userguide/managing-user-permissions.html#supported-dataset-permissions) in the FinSpace User Guide.
*/
public class ResourcePermission private constructor(builder: Builder) {
/**
* Permission for a resource.
*/
public val permission: kotlin.String? = builder.permission
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.finspacedata.model.ResourcePermission = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ResourcePermission(")
append("permission=$permission")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = permission?.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 ResourcePermission
if (permission != other.permission) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.finspacedata.model.ResourcePermission = Builder(this).apply(block).build()
public class Builder {
/**
* Permission for a resource.
*/
public var permission: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.finspacedata.model.ResourcePermission) : this() {
this.permission = x.permission
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.finspacedata.model.ResourcePermission = ResourcePermission(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy