All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.databrew.model.CreateRulesetRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.databrew.model



public class CreateRulesetRequest private constructor(builder: Builder) {
    /**
     * The description of the ruleset.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The name of the ruleset to be created. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.
     */
    public val name: kotlin.String? = builder.name
    /**
     * A list of rules that are defined with the ruleset. A rule includes one or more checks to be validated on a DataBrew dataset.
     */
    public val rules: List? = builder.rules
    /**
     * Metadata tags to apply to the ruleset.
     */
    public val tags: Map? = builder.tags
    /**
     * The Amazon Resource Name (ARN) of a resource (dataset) that the ruleset is associated with.
     */
    public val targetArn: kotlin.String? = builder.targetArn

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databrew.model.CreateRulesetRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CreateRulesetRequest(")
        append("description=$description,")
        append("name=$name,")
        append("rules=$rules,")
        append("tags=$tags,")
        append("targetArn=$targetArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = description?.hashCode() ?: 0
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (rules?.hashCode() ?: 0)
        result = 31 * result + (tags?.hashCode() ?: 0)
        result = 31 * result + (targetArn?.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 CreateRulesetRequest

        if (description != other.description) return false
        if (name != other.name) return false
        if (rules != other.rules) return false
        if (tags != other.tags) return false
        if (targetArn != other.targetArn) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databrew.model.CreateRulesetRequest = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The description of the ruleset.
         */
        public var description: kotlin.String? = null
        /**
         * The name of the ruleset to be created. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.
         */
        public var name: kotlin.String? = null
        /**
         * A list of rules that are defined with the ruleset. A rule includes one or more checks to be validated on a DataBrew dataset.
         */
        public var rules: List? = null
        /**
         * Metadata tags to apply to the ruleset.
         */
        public var tags: Map? = null
        /**
         * The Amazon Resource Name (ARN) of a resource (dataset) that the ruleset is associated with.
         */
        public var targetArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.databrew.model.CreateRulesetRequest) : this() {
            this.description = x.description
            this.name = x.name
            this.rules = x.rules
            this.tags = x.tags
            this.targetArn = x.targetArn
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.databrew.model.CreateRulesetRequest = CreateRulesetRequest(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy