
commonMain.aws.sdk.kotlin.services.quicksight.model.CustomSql.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.quicksight.model
/**
* A physical table type built from the results of the custom SQL query.
*/
class CustomSql private constructor(builder: Builder) {
/**
* The column schema from the SQL query result set.
*/
val columns: List? = builder.columns
/**
* The Amazon Resource Name (ARN) of the data source.
*/
val dataSourceArn: kotlin.String? = builder.dataSourceArn
/**
* A display name for the SQL query result.
*/
val name: kotlin.String? = builder.name
/**
* The SQL query.
*/
val sqlQuery: kotlin.String? = builder.sqlQuery
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.quicksight.model.CustomSql = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CustomSql(")
append("columns=$columns,")
append("dataSourceArn=$dataSourceArn,")
append("name=$name,")
append("sqlQuery=$sqlQuery)")
}
override fun hashCode(): kotlin.Int {
var result = columns?.hashCode() ?: 0
result = 31 * result + (dataSourceArn?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (sqlQuery?.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 CustomSql
if (columns != other.columns) return false
if (dataSourceArn != other.dataSourceArn) return false
if (name != other.name) return false
if (sqlQuery != other.sqlQuery) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.quicksight.model.CustomSql = Builder(this).apply(block).build()
class Builder {
/**
* The column schema from the SQL query result set.
*/
var columns: List? = null
/**
* The Amazon Resource Name (ARN) of the data source.
*/
var dataSourceArn: kotlin.String? = null
/**
* A display name for the SQL query result.
*/
var name: kotlin.String? = null
/**
* The SQL query.
*/
var sqlQuery: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.quicksight.model.CustomSql) : this() {
this.columns = x.columns
this.dataSourceArn = x.dataSourceArn
this.name = x.name
this.sqlQuery = x.sqlQuery
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.quicksight.model.CustomSql = CustomSql(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy