commonMain.aws.sdk.kotlin.services.glue.model.CreateDataQualityRulesetRequest.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 CreateDataQualityRulesetRequest private constructor(builder: Builder) {
/**
* 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 name of the security configuration created with the data quality encryption option.
*/
public val dataQualitySecurityConfiguration: kotlin.String? = builder.dataQualitySecurityConfiguration
/**
* A description of the data quality ruleset.
*/
public val description: kotlin.String? = builder.description
/**
* A unique name for the data quality ruleset.
*/
public val name: kotlin.String? = builder.name
/**
* A Data Quality Definition Language (DQDL) ruleset. For more information, see the Glue developer guide.
*/
public val ruleset: kotlin.String? = builder.ruleset
/**
* A list of tags applied to the data quality ruleset.
*/
public val tags: Map? = builder.tags
/**
* A target table associated with the data quality ruleset.
*/
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.CreateDataQualityRulesetRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateDataQualityRulesetRequest(")
append("clientToken=$clientToken,")
append("dataQualitySecurityConfiguration=$dataQualitySecurityConfiguration,")
append("description=$description,")
append("name=$name,")
append("ruleset=$ruleset,")
append("tags=$tags,")
append("targetTable=$targetTable")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (dataQualitySecurityConfiguration?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (ruleset?.hashCode() ?: 0)
result = 31 * result + (tags?.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 CreateDataQualityRulesetRequest
if (clientToken != other.clientToken) return false
if (dataQualitySecurityConfiguration != other.dataQualitySecurityConfiguration) return false
if (description != other.description) return false
if (name != other.name) return false
if (ruleset != other.ruleset) return false
if (tags != other.tags) return false
if (targetTable != other.targetTable) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.CreateDataQualityRulesetRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* 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 name of the security configuration created with the data quality encryption option.
*/
public var dataQualitySecurityConfiguration: kotlin.String? = null
/**
* A description of the data quality ruleset.
*/
public var description: kotlin.String? = null
/**
* A unique name for the data quality ruleset.
*/
public var name: kotlin.String? = null
/**
* A Data Quality Definition Language (DQDL) ruleset. For more information, see the Glue developer guide.
*/
public var ruleset: kotlin.String? = null
/**
* A list of tags applied to the data quality ruleset.
*/
public var tags: Map? = null
/**
* A target table associated with the data quality ruleset.
*/
public var targetTable: aws.sdk.kotlin.services.glue.model.DataQualityTargetTable? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.CreateDataQualityRulesetRequest) : this() {
this.clientToken = x.clientToken
this.dataQualitySecurityConfiguration = x.dataQualitySecurityConfiguration
this.description = x.description
this.name = x.name
this.ruleset = x.ruleset
this.tags = x.tags
this.targetTable = x.targetTable
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.CreateDataQualityRulesetRequest = CreateDataQualityRulesetRequest(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
}
}
}