
commonMain.aws.sdk.kotlin.services.quicksight.model.Dashboard.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
/**
* Dashboard.
*/
class Dashboard private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the resource.
*/
val arn: kotlin.String? = builder.arn
/**
* The time that this dataset was created.
*/
val createdTime: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTime
/**
* Dashboard ID.
*/
val dashboardId: kotlin.String? = builder.dashboardId
/**
* The last time that this dataset was published.
*/
val lastPublishedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastPublishedTime
/**
* The last time that this dataset was updated.
*/
val lastUpdatedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedTime
/**
* A display name for the dashboard.
*/
val name: kotlin.String? = builder.name
/**
* Version.
*/
val version: aws.sdk.kotlin.services.quicksight.model.DashboardVersion? = builder.version
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.quicksight.model.Dashboard = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Dashboard(")
append("arn=$arn,")
append("createdTime=$createdTime,")
append("dashboardId=$dashboardId,")
append("lastPublishedTime=$lastPublishedTime,")
append("lastUpdatedTime=$lastUpdatedTime,")
append("name=$name,")
append("version=$version)")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (createdTime?.hashCode() ?: 0)
result = 31 * result + (dashboardId?.hashCode() ?: 0)
result = 31 * result + (lastPublishedTime?.hashCode() ?: 0)
result = 31 * result + (lastUpdatedTime?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (version?.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 Dashboard
if (arn != other.arn) return false
if (createdTime != other.createdTime) return false
if (dashboardId != other.dashboardId) return false
if (lastPublishedTime != other.lastPublishedTime) return false
if (lastUpdatedTime != other.lastUpdatedTime) return false
if (name != other.name) return false
if (version != other.version) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.quicksight.model.Dashboard = Builder(this).apply(block).build()
class Builder {
/**
* The Amazon Resource Name (ARN) of the resource.
*/
var arn: kotlin.String? = null
/**
* The time that this dataset was created.
*/
var createdTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Dashboard ID.
*/
var dashboardId: kotlin.String? = null
/**
* The last time that this dataset was published.
*/
var lastPublishedTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The last time that this dataset was updated.
*/
var lastUpdatedTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* A display name for the dashboard.
*/
var name: kotlin.String? = null
/**
* Version.
*/
var version: aws.sdk.kotlin.services.quicksight.model.DashboardVersion? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.quicksight.model.Dashboard) : this() {
this.arn = x.arn
this.createdTime = x.createdTime
this.dashboardId = x.dashboardId
this.lastPublishedTime = x.lastPublishedTime
this.lastUpdatedTime = x.lastUpdatedTime
this.name = x.name
this.version = x.version
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.quicksight.model.Dashboard = Dashboard(this)
/**
* construct an [aws.sdk.kotlin.services.quicksight.model.DashboardVersion] inside the given [block]
*/
fun version(block: aws.sdk.kotlin.services.quicksight.model.DashboardVersion.Builder.() -> kotlin.Unit) {
this.version = aws.sdk.kotlin.services.quicksight.model.DashboardVersion.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy