commonMain.aws.sdk.kotlin.services.finspacedata.model.PermissionGroupParams.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
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Permission group parameters for Dataset permissions.
*
* Here is an example of how you could specify the `PermissionGroupParams`:
*
* ` { "permissionGroupId": "0r6fCRtSTUk4XPfXQe3M0g", "datasetPermissions": [ {"permission": "ViewDatasetDetails"}, {"permission": "AddDatasetData"}, {"permission": "EditDatasetMetadata"}, {"permission": "DeleteDataset"} ] } `
*/
public class PermissionGroupParams private constructor(builder: Builder) {
/**
* List of resource permissions.
*/
public val datasetPermissions: List? = builder.datasetPermissions
/**
* The unique identifier for the `PermissionGroup`.
*/
public val permissionGroupId: kotlin.String? = builder.permissionGroupId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.finspacedata.model.PermissionGroupParams = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PermissionGroupParams(")
append("datasetPermissions=$datasetPermissions,")
append("permissionGroupId=$permissionGroupId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = datasetPermissions?.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 PermissionGroupParams
if (datasetPermissions != other.datasetPermissions) return false
if (permissionGroupId != other.permissionGroupId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.finspacedata.model.PermissionGroupParams = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* List of resource permissions.
*/
public var datasetPermissions: List? = null
/**
* The unique identifier for the `PermissionGroup`.
*/
public var permissionGroupId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.finspacedata.model.PermissionGroupParams) : this() {
this.datasetPermissions = x.datasetPermissions
this.permissionGroupId = x.permissionGroupId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.finspacedata.model.PermissionGroupParams = PermissionGroupParams(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy