commonMain.aws.sdk.kotlin.services.glue.model.GetDataQualityRulesetResponse.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
import aws.smithy.kotlin.runtime.time.Instant
public class GetDataQualityRulesetResponse private constructor(builder: Builder) {
/**
* A timestamp. The time and date that this data quality ruleset was created.
*/
public val createdOn: aws.smithy.kotlin.runtime.time.Instant? = builder.createdOn
/**
* The name of the security configuration created with the data quality encryption option.
*/
public val dataQualitySecurityConfiguration: kotlin.String? = builder.dataQualitySecurityConfiguration
/**
* A description of the ruleset.
*/
public val description: kotlin.String? = builder.description
/**
* A timestamp. The last point in time when this data quality ruleset was modified.
*/
public val lastModifiedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedOn
/**
* The name of the ruleset.
*/
public val name: kotlin.String? = builder.name
/**
* When a ruleset was created from a recommendation run, this run ID is generated to link the two together.
*/
public val recommendationRunId: kotlin.String? = builder.recommendationRunId
/**
* A Data Quality Definition Language (DQDL) ruleset. For more information, see the Glue developer guide.
*/
public val ruleset: kotlin.String? = builder.ruleset
/**
* The name and database name of the target table.
*/
public val targetTable: aws.sdk.kotlin.services.glue.model.DataQualityTargetTable? = builder.targetTable
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.GetDataQualityRulesetResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetDataQualityRulesetResponse(")
append("createdOn=$createdOn,")
append("dataQualitySecurityConfiguration=$dataQualitySecurityConfiguration,")
append("description=$description,")
append("lastModifiedOn=$lastModifiedOn,")
append("name=$name,")
append("recommendationRunId=$recommendationRunId,")
append("ruleset=$ruleset,")
append("targetTable=$targetTable")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdOn?.hashCode() ?: 0
result = 31 * result + (dataQualitySecurityConfiguration?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (lastModifiedOn?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (recommendationRunId?.hashCode() ?: 0)
result = 31 * result + (ruleset?.hashCode() ?: 0)
result = 31 * result + (targetTable?.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 GetDataQualityRulesetResponse
if (createdOn != other.createdOn) return false
if (dataQualitySecurityConfiguration != other.dataQualitySecurityConfiguration) return false
if (description != other.description) return false
if (lastModifiedOn != other.lastModifiedOn) return false
if (name != other.name) return false
if (recommendationRunId != other.recommendationRunId) return false
if (ruleset != other.ruleset) return false
if (targetTable != other.targetTable) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.GetDataQualityRulesetResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A timestamp. The time and date that this data quality ruleset was created.
*/
public var createdOn: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The name of the security configuration created with the data quality encryption option.
*/
public var dataQualitySecurityConfiguration: kotlin.String? = null
/**
* A description of the ruleset.
*/
public var description: kotlin.String? = null
/**
* A timestamp. The last point in time when this data quality ruleset was modified.
*/
public var lastModifiedOn: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The name of the ruleset.
*/
public var name: kotlin.String? = null
/**
* When a ruleset was created from a recommendation run, this run ID is generated to link the two together.
*/
public var recommendationRunId: kotlin.String? = null
/**
* A Data Quality Definition Language (DQDL) ruleset. For more information, see the Glue developer guide.
*/
public var ruleset: kotlin.String? = null
/**
* The name and database name of the target table.
*/
public var targetTable: aws.sdk.kotlin.services.glue.model.DataQualityTargetTable? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.GetDataQualityRulesetResponse) : this() {
this.createdOn = x.createdOn
this.dataQualitySecurityConfiguration = x.dataQualitySecurityConfiguration
this.description = x.description
this.lastModifiedOn = x.lastModifiedOn
this.name = x.name
this.recommendationRunId = x.recommendationRunId
this.ruleset = x.ruleset
this.targetTable = x.targetTable
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.GetDataQualityRulesetResponse = GetDataQualityRulesetResponse(this)
/**
* construct an [aws.sdk.kotlin.services.glue.model.DataQualityTargetTable] inside the given [block]
*/
public fun targetTable(block: aws.sdk.kotlin.services.glue.model.DataQualityTargetTable.Builder.() -> kotlin.Unit) {
this.targetTable = aws.sdk.kotlin.services.glue.model.DataQualityTargetTable.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}