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