
commonMain.aws.sdk.kotlin.services.quicksight.model.UpdateTemplatePermissionsResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.quicksight.model
class UpdateTemplatePermissionsResponse private constructor(builder: Builder) {
/**
* A list of resource permissions to be set on the template.
*/
val permissions: List? = builder.permissions
/**
* The Amazon Web Services request ID for this operation.
*/
val requestId: kotlin.String? = builder.requestId
/**
* The HTTP status of the request.
*/
val status: kotlin.Int = builder.status
/**
* The Amazon Resource Name (ARN) of the template.
*/
val templateArn: kotlin.String? = builder.templateArn
/**
* 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.UpdateTemplatePermissionsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateTemplatePermissionsResponse(")
append("permissions=$permissions,")
append("requestId=$requestId,")
append("status=$status,")
append("templateArn=$templateArn,")
append("templateId=$templateId)")
}
override fun hashCode(): kotlin.Int {
var result = permissions?.hashCode() ?: 0
result = 31 * result + (requestId?.hashCode() ?: 0)
result = 31 * result + (status)
result = 31 * result + (templateArn?.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 UpdateTemplatePermissionsResponse
if (permissions != other.permissions) return false
if (requestId != other.requestId) return false
if (status != other.status) return false
if (templateArn != other.templateArn) return false
if (templateId != other.templateId) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.quicksight.model.UpdateTemplatePermissionsResponse = Builder(this).apply(block).build()
class Builder {
/**
* A list of resource permissions to be set on the template.
*/
var permissions: List? = null
/**
* The Amazon Web Services request ID for this operation.
*/
var requestId: kotlin.String? = null
/**
* The HTTP status of the request.
*/
var status: kotlin.Int = 0
/**
* The Amazon Resource Name (ARN) of the template.
*/
var templateArn: kotlin.String? = null
/**
* The ID for the template.
*/
var templateId: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.quicksight.model.UpdateTemplatePermissionsResponse) : this() {
this.permissions = x.permissions
this.requestId = x.requestId
this.status = x.status
this.templateArn = x.templateArn
this.templateId = x.templateId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.quicksight.model.UpdateTemplatePermissionsResponse = UpdateTemplatePermissionsResponse(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy