
commonMain.aws.sdk.kotlin.services.quicksight.model.RenameColumnOperation.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.quicksight.model
/**
* A transform operation that renames a column.
*/
class RenameColumnOperation private constructor(builder: Builder) {
/**
* The name of the column to be renamed.
*/
val columnName: kotlin.String? = builder.columnName
/**
* The new name for the column.
*/
val newColumnName: kotlin.String? = builder.newColumnName
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.quicksight.model.RenameColumnOperation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RenameColumnOperation(")
append("columnName=$columnName,")
append("newColumnName=$newColumnName)")
}
override fun hashCode(): kotlin.Int {
var result = columnName?.hashCode() ?: 0
result = 31 * result + (newColumnName?.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 RenameColumnOperation
if (columnName != other.columnName) return false
if (newColumnName != other.newColumnName) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.quicksight.model.RenameColumnOperation = Builder(this).apply(block).build()
class Builder {
/**
* The name of the column to be renamed.
*/
var columnName: kotlin.String? = null
/**
* The new name for the column.
*/
var newColumnName: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.quicksight.model.RenameColumnOperation) : this() {
this.columnName = x.columnName
this.newColumnName = x.newColumnName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.quicksight.model.RenameColumnOperation = RenameColumnOperation(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy