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