commonMain.aws.sdk.kotlin.services.glue.model.StartColumnStatisticsTaskRunRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
public class StartColumnStatisticsTaskRunRequest private constructor(builder: Builder) {
/**
* The ID of the Data Catalog where the table reside. If none is supplied, the Amazon Web Services account ID is used by default.
*/
public val catalogId: kotlin.String? = builder.catalogId
/**
* A list of the column names to generate statistics. If none is supplied, all column names for the table will be used by default.
*/
public val columnNameList: List? = builder.columnNameList
/**
* The name of the database where the table resides.
*/
public val databaseName: kotlin.String? = builder.databaseName
/**
* The IAM role that the service assumes to generate statistics.
*/
public val role: kotlin.String? = builder.role
/**
* The percentage of rows used to generate statistics. If none is supplied, the entire table will be used to generate stats.
*/
public val sampleSize: kotlin.Double? = builder.sampleSize
/**
* Name of the security configuration that is used to encrypt CloudWatch logs for the column stats task run.
*/
public val securityConfiguration: kotlin.String? = builder.securityConfiguration
/**
* The name of the table to generate statistics.
*/
public val tableName: kotlin.String? = builder.tableName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.StartColumnStatisticsTaskRunRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartColumnStatisticsTaskRunRequest(")
append("catalogId=$catalogId,")
append("columnNameList=$columnNameList,")
append("databaseName=$databaseName,")
append("role=$role,")
append("sampleSize=$sampleSize,")
append("securityConfiguration=$securityConfiguration,")
append("tableName=$tableName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = catalogId?.hashCode() ?: 0
result = 31 * result + (columnNameList?.hashCode() ?: 0)
result = 31 * result + (databaseName?.hashCode() ?: 0)
result = 31 * result + (role?.hashCode() ?: 0)
result = 31 * result + (sampleSize?.hashCode() ?: 0)
result = 31 * result + (securityConfiguration?.hashCode() ?: 0)
result = 31 * result + (tableName?.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 StartColumnStatisticsTaskRunRequest
if (catalogId != other.catalogId) return false
if (columnNameList != other.columnNameList) return false
if (databaseName != other.databaseName) return false
if (role != other.role) return false
if (!(sampleSize?.equals(other.sampleSize) ?: (other.sampleSize == null))) return false
if (securityConfiguration != other.securityConfiguration) return false
if (tableName != other.tableName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.StartColumnStatisticsTaskRunRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the Data Catalog where the table reside. If none is supplied, the Amazon Web Services account ID is used by default.
*/
public var catalogId: kotlin.String? = null
/**
* A list of the column names to generate statistics. If none is supplied, all column names for the table will be used by default.
*/
public var columnNameList: List? = null
/**
* The name of the database where the table resides.
*/
public var databaseName: kotlin.String? = null
/**
* The IAM role that the service assumes to generate statistics.
*/
public var role: kotlin.String? = null
/**
* The percentage of rows used to generate statistics. If none is supplied, the entire table will be used to generate stats.
*/
public var sampleSize: kotlin.Double? = null
/**
* Name of the security configuration that is used to encrypt CloudWatch logs for the column stats task run.
*/
public var securityConfiguration: kotlin.String? = null
/**
* The name of the table to generate statistics.
*/
public var tableName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.StartColumnStatisticsTaskRunRequest) : this() {
this.catalogId = x.catalogId
this.columnNameList = x.columnNameList
this.databaseName = x.databaseName
this.role = x.role
this.sampleSize = x.sampleSize
this.securityConfiguration = x.securityConfiguration
this.tableName = x.tableName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.StartColumnStatisticsTaskRunRequest = StartColumnStatisticsTaskRunRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}