commonMain.aws.sdk.kotlin.services.finspacedata.model.PermissionGroupByUser.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
/**
* The structure of a permission group associated with a user.
*/
public class PermissionGroupByUser private constructor(builder: Builder) {
/**
* Indicates the status of the user within a permission group.
* + `ADDITION_IN_PROGRESS` – The user is currently being added to the permission group.
* + `ADDITION_SUCCESS` – The user is successfully added to the permission group.
* + `REMOVAL_IN_PROGRESS` – The user is currently being removed from the permission group.
*/
public val membershipStatus: aws.sdk.kotlin.services.finspacedata.model.PermissionGroupMembershipStatus? = builder.membershipStatus
/**
* The name of the permission group.
*/
public val name: kotlin.String? = builder.name
/**
* The unique identifier for the permission group.
*/
public val permissionGroupId: kotlin.String? = builder.permissionGroupId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.finspacedata.model.PermissionGroupByUser = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PermissionGroupByUser(")
append("membershipStatus=$membershipStatus,")
append("name=*** Sensitive Data Redacted ***,")
append("permissionGroupId=$permissionGroupId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = membershipStatus?.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 PermissionGroupByUser
if (membershipStatus != other.membershipStatus) 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.PermissionGroupByUser = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Indicates the status of the user within a permission group.
* + `ADDITION_IN_PROGRESS` – The user is currently being added to the permission group.
* + `ADDITION_SUCCESS` – The user is successfully added to the permission group.
* + `REMOVAL_IN_PROGRESS` – The user is currently being removed from the permission group.
*/
public var membershipStatus: aws.sdk.kotlin.services.finspacedata.model.PermissionGroupMembershipStatus? = null
/**
* The name of the permission group.
*/
public var name: kotlin.String? = null
/**
* The unique identifier for the permission group.
*/
public var permissionGroupId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.finspacedata.model.PermissionGroupByUser) : this() {
this.membershipStatus = x.membershipStatus
this.name = x.name
this.permissionGroupId = x.permissionGroupId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.finspacedata.model.PermissionGroupByUser = PermissionGroupByUser(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy