
commonMain.aws.sdk.kotlin.services.quicksight.model.TemplateAlias.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.quicksight.model
/**
* The template alias.
*/
class TemplateAlias private constructor(builder: Builder) {
/**
* The display name of the template alias.
*/
val aliasName: kotlin.String? = builder.aliasName
/**
* The Amazon Resource Name (ARN) of the template alias.
*/
val arn: kotlin.String? = builder.arn
/**
* The version number of the template alias.
*/
val templateVersionNumber: kotlin.Long? = builder.templateVersionNumber
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.quicksight.model.TemplateAlias = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TemplateAlias(")
append("aliasName=$aliasName,")
append("arn=$arn,")
append("templateVersionNumber=$templateVersionNumber)")
}
override fun hashCode(): kotlin.Int {
var result = aliasName?.hashCode() ?: 0
result = 31 * result + (arn?.hashCode() ?: 0)
result = 31 * result + (templateVersionNumber?.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 TemplateAlias
if (aliasName != other.aliasName) return false
if (arn != other.arn) return false
if (templateVersionNumber != other.templateVersionNumber) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.quicksight.model.TemplateAlias = Builder(this).apply(block).build()
class Builder {
/**
* The display name of the template alias.
*/
var aliasName: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the template alias.
*/
var arn: kotlin.String? = null
/**
* The version number of the template alias.
*/
var templateVersionNumber: kotlin.Long? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.quicksight.model.TemplateAlias) : this() {
this.aliasName = x.aliasName
this.arn = x.arn
this.templateVersionNumber = x.templateVersionNumber
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.quicksight.model.TemplateAlias = TemplateAlias(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy