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

commonMain.aws.sdk.kotlin.services.pinpointsmsvoicev2.model.VerifyDestinationNumberRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.pinpointsmsvoicev2.model

import aws.smithy.kotlin.runtime.SdkDsl

public class VerifyDestinationNumberRequest private constructor(builder: Builder) {
    /**
     * The verification code that was received by the verified destination phone number.
     */
    public val verificationCode: kotlin.String? = builder.verificationCode
    /**
     * The unique identifier for the verififed destination phone number.
     */
    public val verifiedDestinationNumberId: kotlin.String? = builder.verifiedDestinationNumberId

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

    override fun toString(): kotlin.String = buildString {
        append("VerifyDestinationNumberRequest(")
        append("verificationCode=$verificationCode,")
        append("verifiedDestinationNumberId=$verifiedDestinationNumberId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = verificationCode?.hashCode() ?: 0
        result = 31 * result + (verifiedDestinationNumberId?.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 VerifyDestinationNumberRequest

        if (verificationCode != other.verificationCode) return false
        if (verifiedDestinationNumberId != other.verifiedDestinationNumberId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The verification code that was received by the verified destination phone number.
         */
        public var verificationCode: kotlin.String? = null
        /**
         * The unique identifier for the verififed destination phone number.
         */
        public var verifiedDestinationNumberId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.pinpointsmsvoicev2.model.VerifyDestinationNumberRequest) : this() {
            this.verificationCode = x.verificationCode
            this.verifiedDestinationNumberId = x.verifiedDestinationNumberId
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy