
commonMain.aws.sdk.kotlin.services.quicksight.model.Group.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.quicksight.model
/**
* A *group* in Amazon QuickSight consists of a set of users. You can use groups to make it easier to manage access and security.
*/
class Group private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) for the group.
*/
val arn: kotlin.String? = builder.arn
/**
* The group description.
*/
val description: kotlin.String? = builder.description
/**
* The name of the group.
*/
val groupName: kotlin.String? = builder.groupName
/**
* The principal ID of the group.
*/
val principalId: kotlin.String? = builder.principalId
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.quicksight.model.Group = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Group(")
append("arn=$arn,")
append("description=$description,")
append("groupName=$groupName,")
append("principalId=$principalId)")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (groupName?.hashCode() ?: 0)
result = 31 * result + (principalId?.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 Group
if (arn != other.arn) return false
if (description != other.description) return false
if (groupName != other.groupName) return false
if (principalId != other.principalId) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.quicksight.model.Group = Builder(this).apply(block).build()
class Builder {
/**
* The Amazon Resource Name (ARN) for the group.
*/
var arn: kotlin.String? = null
/**
* The group description.
*/
var description: kotlin.String? = null
/**
* The name of the group.
*/
var groupName: kotlin.String? = null
/**
* The principal ID of the group.
*/
var principalId: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.quicksight.model.Group) : this() {
this.arn = x.arn
this.description = x.description
this.groupName = x.groupName
this.principalId = x.principalId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.quicksight.model.Group = Group(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy