
commonMain.aws.sdk.kotlin.services.quicksight.model.DeleteUserByPrincipalIdRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.quicksight.model
/**
*
*/
class DeleteUserByPrincipalIdRequest private constructor(builder: Builder) {
/**
* The ID for the Amazon Web Services account that the user is in. Currently, you use the ID for the Amazon Web Services account that contains your Amazon QuickSight account.
*/
val awsAccountId: kotlin.String? = builder.awsAccountId
/**
* The namespace. Currently, you should set this to `default`.
*/
val namespace: kotlin.String? = builder.namespace
/**
* The principal ID of the user.
*/
val principalId: kotlin.String? = builder.principalId
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.quicksight.model.DeleteUserByPrincipalIdRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteUserByPrincipalIdRequest(")
append("awsAccountId=$awsAccountId,")
append("namespace=$namespace,")
append("principalId=$principalId)")
}
override fun hashCode(): kotlin.Int {
var result = awsAccountId?.hashCode() ?: 0
result = 31 * result + (namespace?.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 DeleteUserByPrincipalIdRequest
if (awsAccountId != other.awsAccountId) return false
if (namespace != other.namespace) return false
if (principalId != other.principalId) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.quicksight.model.DeleteUserByPrincipalIdRequest = Builder(this).apply(block).build()
class Builder {
/**
* The ID for the Amazon Web Services account that the user is in. Currently, you use the ID for the Amazon Web Services account that contains your Amazon QuickSight account.
*/
var awsAccountId: kotlin.String? = null
/**
* The namespace. Currently, you should set this to `default`.
*/
var namespace: kotlin.String? = null
/**
* The principal ID of the user.
*/
var principalId: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.quicksight.model.DeleteUserByPrincipalIdRequest) : this() {
this.awsAccountId = x.awsAccountId
this.namespace = x.namespace
this.principalId = x.principalId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.quicksight.model.DeleteUserByPrincipalIdRequest = DeleteUserByPrincipalIdRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy