
commonMain.aws.sdk.kotlin.services.quicksight.model.Sheet.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.quicksight.model
/**
* A *sheet*, which is an object that contains a set of visuals that are viewed together on one page in Amazon QuickSight. Every analysis and dashboard contains at least one sheet. Each sheet contains at least one visualization widget, for example a chart, pivot table, or narrative insight. Sheets can be associated with other components, such as controls, filters, and so on.
*/
class Sheet private constructor(builder: Builder) {
/**
* The name of a sheet. This name is displayed on the sheet's tab in the Amazon QuickSight console.
*/
val name: kotlin.String? = builder.name
/**
* The unique identifier associated with a sheet.
*/
val sheetId: kotlin.String? = builder.sheetId
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.quicksight.model.Sheet = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Sheet(")
append("name=$name,")
append("sheetId=$sheetId)")
}
override fun hashCode(): kotlin.Int {
var result = name?.hashCode() ?: 0
result = 31 * result + (sheetId?.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 Sheet
if (name != other.name) return false
if (sheetId != other.sheetId) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.quicksight.model.Sheet = Builder(this).apply(block).build()
class Builder {
/**
* The name of a sheet. This name is displayed on the sheet's tab in the Amazon QuickSight console.
*/
var name: kotlin.String? = null
/**
* The unique identifier associated with a sheet.
*/
var sheetId: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.quicksight.model.Sheet) : this() {
this.name = x.name
this.sheetId = x.sheetId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.quicksight.model.Sheet = Sheet(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy