commonMain.aws.sdk.kotlin.services.glue.model.EvaluateDataQuality.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
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Specifies your data quality evaluation criteria.
*/
public class EvaluateDataQuality private constructor(builder: Builder) {
/**
* The inputs of your data quality evaluation.
*/
public val inputs: List = requireNotNull(builder.inputs) { "A non-null value must be provided for inputs" }
/**
* The name of the data quality evaluation.
*/
public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
/**
* The output of your data quality evaluation.
*/
public val output: aws.sdk.kotlin.services.glue.model.DqTransformOutput? = builder.output
/**
* Options to configure how your results are published.
*/
public val publishingOptions: aws.sdk.kotlin.services.glue.model.DqResultsPublishingOptions? = builder.publishingOptions
/**
* The ruleset for your data quality evaluation.
*/
public val ruleset: kotlin.String = requireNotNull(builder.ruleset) { "A non-null value must be provided for ruleset" }
/**
* Options to configure how your job will stop if your data quality evaluation fails.
*/
public val stopJobOnFailureOptions: aws.sdk.kotlin.services.glue.model.DqStopJobOnFailureOptions? = builder.stopJobOnFailureOptions
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.EvaluateDataQuality = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EvaluateDataQuality(")
append("inputs=$inputs,")
append("name=$name,")
append("output=$output,")
append("publishingOptions=$publishingOptions,")
append("ruleset=$ruleset,")
append("stopJobOnFailureOptions=$stopJobOnFailureOptions")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = inputs.hashCode()
result = 31 * result + (name.hashCode())
result = 31 * result + (output?.hashCode() ?: 0)
result = 31 * result + (publishingOptions?.hashCode() ?: 0)
result = 31 * result + (ruleset.hashCode())
result = 31 * result + (stopJobOnFailureOptions?.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 EvaluateDataQuality
if (inputs != other.inputs) return false
if (name != other.name) return false
if (output != other.output) return false
if (publishingOptions != other.publishingOptions) return false
if (ruleset != other.ruleset) return false
if (stopJobOnFailureOptions != other.stopJobOnFailureOptions) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.EvaluateDataQuality = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The inputs of your data quality evaluation.
*/
public var inputs: List? = null
/**
* The name of the data quality evaluation.
*/
public var name: kotlin.String? = null
/**
* The output of your data quality evaluation.
*/
public var output: aws.sdk.kotlin.services.glue.model.DqTransformOutput? = null
/**
* Options to configure how your results are published.
*/
public var publishingOptions: aws.sdk.kotlin.services.glue.model.DqResultsPublishingOptions? = null
/**
* The ruleset for your data quality evaluation.
*/
public var ruleset: kotlin.String? = null
/**
* Options to configure how your job will stop if your data quality evaluation fails.
*/
public var stopJobOnFailureOptions: aws.sdk.kotlin.services.glue.model.DqStopJobOnFailureOptions? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.EvaluateDataQuality) : this() {
this.inputs = x.inputs
this.name = x.name
this.output = x.output
this.publishingOptions = x.publishingOptions
this.ruleset = x.ruleset
this.stopJobOnFailureOptions = x.stopJobOnFailureOptions
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.EvaluateDataQuality = EvaluateDataQuality(this)
/**
* construct an [aws.sdk.kotlin.services.glue.model.DqResultsPublishingOptions] inside the given [block]
*/
public fun publishingOptions(block: aws.sdk.kotlin.services.glue.model.DqResultsPublishingOptions.Builder.() -> kotlin.Unit) {
this.publishingOptions = aws.sdk.kotlin.services.glue.model.DqResultsPublishingOptions.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.glue.model.DqStopJobOnFailureOptions] inside the given [block]
*/
public fun stopJobOnFailureOptions(block: aws.sdk.kotlin.services.glue.model.DqStopJobOnFailureOptions.Builder.() -> kotlin.Unit) {
this.stopJobOnFailureOptions = aws.sdk.kotlin.services.glue.model.DqStopJobOnFailureOptions.invoke(block)
}
internal fun correctErrors(): Builder {
if (inputs == null) inputs = emptyList()
if (name == null) name = ""
if (ruleset == null) ruleset = ""
return this
}
}
}