commonMain.aws.sdk.kotlin.services.glue.model.StartDataQualityRuleRecommendationRunRequest.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 StartDataQualityRuleRecommendationRunRequest private constructor(builder: Builder) {
/**
* Used for idempotency and is recommended to be set to a random ID (such as a UUID) to avoid creating or starting multiple instances of the same resource.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* A name for the ruleset.
*/
public val createdRulesetName: kotlin.String? = builder.createdRulesetName
/**
* The name of the security configuration created with the data quality encryption option.
*/
public val dataQualitySecurityConfiguration: kotlin.String? = builder.dataQualitySecurityConfiguration
/**
* The data source (Glue table) associated with this run.
*/
public val dataSource: aws.sdk.kotlin.services.glue.model.DataSource? = builder.dataSource
/**
* The number of `G.1X` workers to be used in the run. The default is 5.
*/
public val numberOfWorkers: kotlin.Int? = builder.numberOfWorkers
/**
* An IAM role supplied to encrypt the results of the run.
*/
public val role: kotlin.String? = builder.role
/**
* The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters `TIMEOUT` status. The default is 2,880 minutes (48 hours).
*/
public val timeout: kotlin.Int? = builder.timeout
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.StartDataQualityRuleRecommendationRunRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartDataQualityRuleRecommendationRunRequest(")
append("clientToken=$clientToken,")
append("createdRulesetName=$createdRulesetName,")
append("dataQualitySecurityConfiguration=$dataQualitySecurityConfiguration,")
append("dataSource=$dataSource,")
append("numberOfWorkers=$numberOfWorkers,")
append("role=$role,")
append("timeout=$timeout")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (createdRulesetName?.hashCode() ?: 0)
result = 31 * result + (dataQualitySecurityConfiguration?.hashCode() ?: 0)
result = 31 * result + (dataSource?.hashCode() ?: 0)
result = 31 * result + (numberOfWorkers ?: 0)
result = 31 * result + (role?.hashCode() ?: 0)
result = 31 * result + (timeout ?: 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 StartDataQualityRuleRecommendationRunRequest
if (clientToken != other.clientToken) return false
if (createdRulesetName != other.createdRulesetName) return false
if (dataQualitySecurityConfiguration != other.dataQualitySecurityConfiguration) return false
if (dataSource != other.dataSource) return false
if (numberOfWorkers != other.numberOfWorkers) return false
if (role != other.role) return false
if (timeout != other.timeout) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.StartDataQualityRuleRecommendationRunRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Used for idempotency and is recommended to be set to a random ID (such as a UUID) to avoid creating or starting multiple instances of the same resource.
*/
public var clientToken: kotlin.String? = null
/**
* A name for the ruleset.
*/
public var createdRulesetName: kotlin.String? = null
/**
* The name of the security configuration created with the data quality encryption option.
*/
public var dataQualitySecurityConfiguration: kotlin.String? = null
/**
* The data source (Glue table) associated with this run.
*/
public var dataSource: aws.sdk.kotlin.services.glue.model.DataSource? = null
/**
* The number of `G.1X` workers to be used in the run. The default is 5.
*/
public var numberOfWorkers: kotlin.Int? = null
/**
* An IAM role supplied to encrypt the results of the run.
*/
public var role: kotlin.String? = null
/**
* The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters `TIMEOUT` status. The default is 2,880 minutes (48 hours).
*/
public var timeout: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.StartDataQualityRuleRecommendationRunRequest) : this() {
this.clientToken = x.clientToken
this.createdRulesetName = x.createdRulesetName
this.dataQualitySecurityConfiguration = x.dataQualitySecurityConfiguration
this.dataSource = x.dataSource
this.numberOfWorkers = x.numberOfWorkers
this.role = x.role
this.timeout = x.timeout
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.StartDataQualityRuleRecommendationRunRequest = StartDataQualityRuleRecommendationRunRequest(this)
/**
* construct an [aws.sdk.kotlin.services.glue.model.DataSource] inside the given [block]
*/
public fun dataSource(block: aws.sdk.kotlin.services.glue.model.DataSource.Builder.() -> kotlin.Unit) {
this.dataSource = aws.sdk.kotlin.services.glue.model.DataSource.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}