commonMain.aws.sdk.kotlin.services.databrew.model.ValidationConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of databrew-jvm Show documentation
Show all versions of databrew-jvm Show documentation
The AWS Kotlin client for DataBrew
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.databrew.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Configuration for data quality validation. Used to select the Rulesets and Validation Mode to be used in the profile job. When ValidationConfiguration is null, the profile job will run without data quality validation.
*/
public class ValidationConfiguration private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) for the ruleset to be validated in the profile job. The TargetArn of the selected ruleset should be the same as the Amazon Resource Name (ARN) of the dataset that is associated with the profile job.
*/
public val rulesetArn: kotlin.String = requireNotNull(builder.rulesetArn) { "A non-null value must be provided for rulesetArn" }
/**
* Mode of data quality validation. Default mode is “CHECK_ALL” which verifies all rules defined in the selected ruleset.
*/
public val validationMode: aws.sdk.kotlin.services.databrew.model.ValidationMode? = builder.validationMode
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databrew.model.ValidationConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ValidationConfiguration(")
append("rulesetArn=$rulesetArn,")
append("validationMode=$validationMode")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = rulesetArn.hashCode()
result = 31 * result + (validationMode?.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 ValidationConfiguration
if (rulesetArn != other.rulesetArn) return false
if (validationMode != other.validationMode) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databrew.model.ValidationConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) for the ruleset to be validated in the profile job. The TargetArn of the selected ruleset should be the same as the Amazon Resource Name (ARN) of the dataset that is associated with the profile job.
*/
public var rulesetArn: kotlin.String? = null
/**
* Mode of data quality validation. Default mode is “CHECK_ALL” which verifies all rules defined in the selected ruleset.
*/
public var validationMode: aws.sdk.kotlin.services.databrew.model.ValidationMode? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databrew.model.ValidationConfiguration) : this() {
this.rulesetArn = x.rulesetArn
this.validationMode = x.validationMode
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databrew.model.ValidationConfiguration = ValidationConfiguration(this)
internal fun correctErrors(): Builder {
if (rulesetArn == null) rulesetArn = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy