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