
commonMain.aws.sdk.kotlin.services.quicksight.model.UpdateThemePermissionsRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.quicksight.model
class UpdateThemePermissionsRequest private constructor(builder: Builder) {
/**
* The ID of the Amazon Web Services account that contains the theme.
*/
val awsAccountId: kotlin.String? = builder.awsAccountId
/**
* A list of resource permissions to be granted for the theme.
*/
val grantPermissions: List? = builder.grantPermissions
/**
* A list of resource permissions to be revoked from the theme.
*/
val revokePermissions: List? = builder.revokePermissions
/**
* The ID for the theme.
*/
val themeId: kotlin.String? = builder.themeId
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.quicksight.model.UpdateThemePermissionsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateThemePermissionsRequest(")
append("awsAccountId=$awsAccountId,")
append("grantPermissions=$grantPermissions,")
append("revokePermissions=$revokePermissions,")
append("themeId=$themeId)")
}
override fun hashCode(): kotlin.Int {
var result = awsAccountId?.hashCode() ?: 0
result = 31 * result + (grantPermissions?.hashCode() ?: 0)
result = 31 * result + (revokePermissions?.hashCode() ?: 0)
result = 31 * result + (themeId?.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 UpdateThemePermissionsRequest
if (awsAccountId != other.awsAccountId) return false
if (grantPermissions != other.grantPermissions) return false
if (revokePermissions != other.revokePermissions) return false
if (themeId != other.themeId) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.quicksight.model.UpdateThemePermissionsRequest = Builder(this).apply(block).build()
class Builder {
/**
* The ID of the Amazon Web Services account that contains the theme.
*/
var awsAccountId: kotlin.String? = null
/**
* A list of resource permissions to be granted for the theme.
*/
var grantPermissions: List? = null
/**
* A list of resource permissions to be revoked from the theme.
*/
var revokePermissions: List? = null
/**
* The ID for the theme.
*/
var themeId: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.quicksight.model.UpdateThemePermissionsRequest) : this() {
this.awsAccountId = x.awsAccountId
this.grantPermissions = x.grantPermissions
this.revokePermissions = x.revokePermissions
this.themeId = x.themeId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.quicksight.model.UpdateThemePermissionsRequest = UpdateThemePermissionsRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy