commonMain.aws.sdk.kotlin.services.glue.model.StartDataQualityRulesetEvaluationRunRequest.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 StartDataQualityRulesetEvaluationRunRequest private constructor(builder: Builder) {
/**
* A map of reference strings to additional data sources you can specify for an evaluation run.
*/
public val additionalDataSources: Map? = builder.additionalDataSources
/**
* Additional run options you can specify for an evaluation run.
*/
public val additionalRunOptions: aws.sdk.kotlin.services.glue.model.DataQualityEvaluationRunAdditionalRunOptions? = builder.additionalRunOptions
/**
* 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
/**
* 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
/**
* A list of ruleset names.
*/
public val rulesetNames: List? = builder.rulesetNames
/**
* 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.StartDataQualityRulesetEvaluationRunRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartDataQualityRulesetEvaluationRunRequest(")
append("additionalDataSources=$additionalDataSources,")
append("additionalRunOptions=$additionalRunOptions,")
append("clientToken=$clientToken,")
append("dataSource=$dataSource,")
append("numberOfWorkers=$numberOfWorkers,")
append("role=$role,")
append("rulesetNames=$rulesetNames,")
append("timeout=$timeout")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = additionalDataSources?.hashCode() ?: 0
result = 31 * result + (additionalRunOptions?.hashCode() ?: 0)
result = 31 * result + (clientToken?.hashCode() ?: 0)
result = 31 * result + (dataSource?.hashCode() ?: 0)
result = 31 * result + (numberOfWorkers ?: 0)
result = 31 * result + (role?.hashCode() ?: 0)
result = 31 * result + (rulesetNames?.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 StartDataQualityRulesetEvaluationRunRequest
if (additionalDataSources != other.additionalDataSources) return false
if (additionalRunOptions != other.additionalRunOptions) return false
if (clientToken != other.clientToken) return false
if (dataSource != other.dataSource) return false
if (numberOfWorkers != other.numberOfWorkers) return false
if (role != other.role) return false
if (rulesetNames != other.rulesetNames) return false
if (timeout != other.timeout) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.StartDataQualityRulesetEvaluationRunRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A map of reference strings to additional data sources you can specify for an evaluation run.
*/
public var additionalDataSources: Map? = null
/**
* Additional run options you can specify for an evaluation run.
*/
public var additionalRunOptions: aws.sdk.kotlin.services.glue.model.DataQualityEvaluationRunAdditionalRunOptions? = null
/**
* 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
/**
* 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
/**
* A list of ruleset names.
*/
public var rulesetNames: List? = 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.StartDataQualityRulesetEvaluationRunRequest) : this() {
this.additionalDataSources = x.additionalDataSources
this.additionalRunOptions = x.additionalRunOptions
this.clientToken = x.clientToken
this.dataSource = x.dataSource
this.numberOfWorkers = x.numberOfWorkers
this.role = x.role
this.rulesetNames = x.rulesetNames
this.timeout = x.timeout
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.StartDataQualityRulesetEvaluationRunRequest = StartDataQualityRulesetEvaluationRunRequest(this)
/**
* construct an [aws.sdk.kotlin.services.glue.model.DataQualityEvaluationRunAdditionalRunOptions] inside the given [block]
*/
public fun additionalRunOptions(block: aws.sdk.kotlin.services.glue.model.DataQualityEvaluationRunAdditionalRunOptions.Builder.() -> kotlin.Unit) {
this.additionalRunOptions = aws.sdk.kotlin.services.glue.model.DataQualityEvaluationRunAdditionalRunOptions.invoke(block)
}
/**
* 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
}
}
}