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

commonMain.aws.sdk.kotlin.services.cleanrooms.model.DeleteConfiguredTableAssociationRequest.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 DeleteConfiguredTableAssociationRequest private constructor(builder: Builder) {
    /**
     * The unique ID for the configured table association to be deleted. Currently accepts the configured table ID.
     */
    public val configuredTableAssociationIdentifier: kotlin.String = requireNotNull(builder.configuredTableAssociationIdentifier) { "A non-null value must be provided for configuredTableAssociationIdentifier" }
    /**
     * A unique identifier for the membership that the configured table association belongs to. Currently accepts the membership ID.
     */
    public val membershipIdentifier: kotlin.String = requireNotNull(builder.membershipIdentifier) { "A non-null value must be provided for membershipIdentifier" }

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteConfiguredTableAssociationRequest(")
        append("configuredTableAssociationIdentifier=$configuredTableAssociationIdentifier,")
        append("membershipIdentifier=$membershipIdentifier")
        append(")")
    }

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

        if (configuredTableAssociationIdentifier != other.configuredTableAssociationIdentifier) return false
        if (membershipIdentifier != other.membershipIdentifier) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The unique ID for the configured table association to be deleted. Currently accepts the configured table ID.
         */
        public var configuredTableAssociationIdentifier: kotlin.String? = null
        /**
         * A unique identifier for the membership that the configured table association belongs to. Currently accepts the membership ID.
         */
        public var membershipIdentifier: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.DeleteConfiguredTableAssociationRequest) : this() {
            this.configuredTableAssociationIdentifier = x.configuredTableAssociationIdentifier
            this.membershipIdentifier = x.membershipIdentifier
        }

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

        internal fun correctErrors(): Builder {
            if (configuredTableAssociationIdentifier == null) configuredTableAssociationIdentifier = ""
            if (membershipIdentifier == null) membershipIdentifier = ""
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy