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

commonMain.aws.sdk.kotlin.services.cleanrooms.model.DeleteConfiguredTableAnalysisRuleRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.cleanrooms.model

import aws.smithy.kotlin.runtime.SdkDsl

public class DeleteConfiguredTableAnalysisRuleRequest private constructor(builder: Builder) {
    /**
     * The analysis rule type to be deleted. Configured table analysis rules are uniquely identified by their configured table identifier and analysis rule type.
     */
    public val analysisRuleType: aws.sdk.kotlin.services.cleanrooms.model.ConfiguredTableAnalysisRuleType = requireNotNull(builder.analysisRuleType) { "A non-null value must be provided for analysisRuleType" }
    /**
     * The unique identifier for the configured table that the analysis rule applies to. Currently accepts the configured table ID.
     */
    public val configuredTableIdentifier: kotlin.String = requireNotNull(builder.configuredTableIdentifier) { "A non-null value must be provided for configuredTableIdentifier" }

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteConfiguredTableAnalysisRuleRequest(")
        append("analysisRuleType=$analysisRuleType,")
        append("configuredTableIdentifier=$configuredTableIdentifier")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = analysisRuleType.hashCode()
        result = 31 * result + (configuredTableIdentifier.hashCode())
        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 DeleteConfiguredTableAnalysisRuleRequest

        if (analysisRuleType != other.analysisRuleType) return false
        if (configuredTableIdentifier != other.configuredTableIdentifier) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The analysis rule type to be deleted. Configured table analysis rules are uniquely identified by their configured table identifier and analysis rule type.
         */
        public var analysisRuleType: aws.sdk.kotlin.services.cleanrooms.model.ConfiguredTableAnalysisRuleType? = null
        /**
         * The unique identifier for the configured table that the analysis rule applies to. Currently accepts the configured table ID.
         */
        public var configuredTableIdentifier: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.DeleteConfiguredTableAnalysisRuleRequest) : this() {
            this.analysisRuleType = x.analysisRuleType
            this.configuredTableIdentifier = x.configuredTableIdentifier
        }

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

        internal fun correctErrors(): Builder {
            if (analysisRuleType == null) analysisRuleType = ConfiguredTableAnalysisRuleType.SdkUnknown("no value provided")
            if (configuredTableIdentifier == null) configuredTableIdentifier = ""
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy