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