commonMain.aws.sdk.kotlin.services.glue.model.DqResultsPublishingOptions.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Options to configure how your data quality evaluation results are published.
*/
public class DqResultsPublishingOptions private constructor(builder: Builder) {
/**
* Enable metrics for your data quality results.
*/
public val cloudWatchMetricsEnabled: kotlin.Boolean? = builder.cloudWatchMetricsEnabled
/**
* The context of the evaluation.
*/
public val evaluationContext: kotlin.String? = builder.evaluationContext
/**
* Enable publishing for your data quality results.
*/
public val resultsPublishingEnabled: kotlin.Boolean? = builder.resultsPublishingEnabled
/**
* The Amazon S3 prefix prepended to the results.
*/
public val resultsS3Prefix: kotlin.String? = builder.resultsS3Prefix
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.DqResultsPublishingOptions = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DqResultsPublishingOptions(")
append("cloudWatchMetricsEnabled=$cloudWatchMetricsEnabled,")
append("evaluationContext=$evaluationContext,")
append("resultsPublishingEnabled=$resultsPublishingEnabled,")
append("resultsS3Prefix=$resultsS3Prefix")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = cloudWatchMetricsEnabled?.hashCode() ?: 0
result = 31 * result + (evaluationContext?.hashCode() ?: 0)
result = 31 * result + (resultsPublishingEnabled?.hashCode() ?: 0)
result = 31 * result + (resultsS3Prefix?.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 DqResultsPublishingOptions
if (cloudWatchMetricsEnabled != other.cloudWatchMetricsEnabled) return false
if (evaluationContext != other.evaluationContext) return false
if (resultsPublishingEnabled != other.resultsPublishingEnabled) return false
if (resultsS3Prefix != other.resultsS3Prefix) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.DqResultsPublishingOptions = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Enable metrics for your data quality results.
*/
public var cloudWatchMetricsEnabled: kotlin.Boolean? = null
/**
* The context of the evaluation.
*/
public var evaluationContext: kotlin.String? = null
/**
* Enable publishing for your data quality results.
*/
public var resultsPublishingEnabled: kotlin.Boolean? = null
/**
* The Amazon S3 prefix prepended to the results.
*/
public var resultsS3Prefix: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.DqResultsPublishingOptions) : this() {
this.cloudWatchMetricsEnabled = x.cloudWatchMetricsEnabled
this.evaluationContext = x.evaluationContext
this.resultsPublishingEnabled = x.resultsPublishingEnabled
this.resultsS3Prefix = x.resultsS3Prefix
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.DqResultsPublishingOptions = DqResultsPublishingOptions(this)
internal fun correctErrors(): Builder {
return this
}
}
}