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

aws.sdk.kotlin.services.connect.model.StartOutboundVoiceContactResponse.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.connect.model



class StartOutboundVoiceContactResponse private constructor(builder: BuilderImpl) {
    /**
     * The identifier of this contact within the Amazon Connect instance.
     */
    val contactId: String? = builder.contactId

    companion object {
        @JvmStatic
        fun fluentBuilder(): FluentBuilder = BuilderImpl()

        internal fun builder(): DslBuilder = BuilderImpl()

        operator fun invoke(block: DslBuilder.() -> kotlin.Unit): StartOutboundVoiceContactResponse = BuilderImpl().apply(block).build()

    }

    override fun toString(): kotlin.String = buildString {
        append("StartOutboundVoiceContactResponse(")
        append("contactId=$contactId)")
    }

    override fun hashCode(): kotlin.Int {
        var result = contactId?.hashCode() ?: 0
        return result
    }

    override fun equals(other: kotlin.Any?): kotlin.Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false

        other as StartOutboundVoiceContactResponse

        if (contactId != other.contactId) return false

        return true
    }

    fun copy(block: DslBuilder.() -> kotlin.Unit = {}): StartOutboundVoiceContactResponse = BuilderImpl(this).apply(block).build()

    interface FluentBuilder {
        fun build(): StartOutboundVoiceContactResponse
        /**
         * The identifier of this contact within the Amazon Connect instance.
         */
        fun contactId(contactId: String): FluentBuilder
    }

    interface DslBuilder {
        /**
         * The identifier of this contact within the Amazon Connect instance.
         */
        var contactId: String?

        fun build(): StartOutboundVoiceContactResponse
    }

    private class BuilderImpl() : FluentBuilder, DslBuilder {
        override var contactId: String? = null

        constructor(x: StartOutboundVoiceContactResponse) : this() {
            this.contactId = x.contactId
        }

        override fun build(): StartOutboundVoiceContactResponse = StartOutboundVoiceContactResponse(this)
        override fun contactId(contactId: String): FluentBuilder = apply { this.contactId = contactId }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy