
commonMain.aws.sdk.kotlin.services.quicksight.model.ThemeSummary.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 summary.
*/
class ThemeSummary private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the resource.
*/
val arn: kotlin.String? = builder.arn
/**
* The date and time that this theme was created.
*/
val createdTime: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTime
/**
* The last date and time that this theme was updated.
*/
val lastUpdatedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedTime
/**
* The latest version number for the theme.
*/
val latestVersionNumber: kotlin.Long? = builder.latestVersionNumber
/**
* the display name for the theme.
*/
val name: kotlin.String? = builder.name
/**
* The ID of the theme. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.
*/
val themeId: kotlin.String? = builder.themeId
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.quicksight.model.ThemeSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ThemeSummary(")
append("arn=$arn,")
append("createdTime=$createdTime,")
append("lastUpdatedTime=$lastUpdatedTime,")
append("latestVersionNumber=$latestVersionNumber,")
append("name=$name,")
append("themeId=$themeId)")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (createdTime?.hashCode() ?: 0)
result = 31 * result + (lastUpdatedTime?.hashCode() ?: 0)
result = 31 * result + (latestVersionNumber?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (themeId?.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 ThemeSummary
if (arn != other.arn) return false
if (createdTime != other.createdTime) return false
if (lastUpdatedTime != other.lastUpdatedTime) return false
if (latestVersionNumber != other.latestVersionNumber) return false
if (name != other.name) return false
if (themeId != other.themeId) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.quicksight.model.ThemeSummary = Builder(this).apply(block).build()
class Builder {
/**
* The Amazon Resource Name (ARN) of the resource.
*/
var arn: kotlin.String? = null
/**
* The date and time that this theme was created.
*/
var createdTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The last date and time that this theme was updated.
*/
var lastUpdatedTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The latest version number for the theme.
*/
var latestVersionNumber: kotlin.Long? = null
/**
* the display name for the theme.
*/
var name: kotlin.String? = null
/**
* The ID of the theme. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.
*/
var themeId: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.quicksight.model.ThemeSummary) : this() {
this.arn = x.arn
this.createdTime = x.createdTime
this.lastUpdatedTime = x.lastUpdatedTime
this.latestVersionNumber = x.latestVersionNumber
this.name = x.name
this.themeId = x.themeId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.quicksight.model.ThemeSummary = ThemeSummary(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy