
commonMain.aws.sdk.kotlin.services.quicksight.model.GeoSpatialColumnGroup.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.quicksight.model
/**
* Geospatial column group that denotes a hierarchy.
*/
class GeoSpatialColumnGroup private constructor(builder: Builder) {
/**
* Columns in this hierarchy.
*/
val columns: List? = builder.columns
/**
* Country code.
*/
val countryCode: aws.sdk.kotlin.services.quicksight.model.GeoSpatialCountryCode? = builder.countryCode
/**
* A display name for the hierarchy.
*/
val name: kotlin.String? = builder.name
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.quicksight.model.GeoSpatialColumnGroup = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GeoSpatialColumnGroup(")
append("columns=$columns,")
append("countryCode=$countryCode,")
append("name=$name)")
}
override fun hashCode(): kotlin.Int {
var result = columns?.hashCode() ?: 0
result = 31 * result + (countryCode?.hashCode() ?: 0)
result = 31 * result + (name?.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 GeoSpatialColumnGroup
if (columns != other.columns) return false
if (countryCode != other.countryCode) return false
if (name != other.name) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.quicksight.model.GeoSpatialColumnGroup = Builder(this).apply(block).build()
class Builder {
/**
* Columns in this hierarchy.
*/
var columns: List? = null
/**
* Country code.
*/
var countryCode: aws.sdk.kotlin.services.quicksight.model.GeoSpatialCountryCode? = null
/**
* A display name for the hierarchy.
*/
var name: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.quicksight.model.GeoSpatialColumnGroup) : this() {
this.columns = x.columns
this.countryCode = x.countryCode
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.quicksight.model.GeoSpatialColumnGroup = GeoSpatialColumnGroup(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy