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

commonMain.aws.sdk.kotlin.services.sns.model.VerifySmsSandboxPhoneNumberRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.sns.model



public class VerifySmsSandboxPhoneNumberRequest private constructor(builder: Builder) {
    /**
     * The OTP sent to the destination number from the `CreateSMSSandBoxPhoneNumber` call.
     */
    public val oneTimePassword: kotlin.String? = builder.oneTimePassword
    /**
     * The destination phone number to verify.
     */
    public val phoneNumber: kotlin.String? = builder.phoneNumber

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

    override fun toString(): kotlin.String = buildString {
        append("VerifySmsSandboxPhoneNumberRequest(")
        append("oneTimePassword=$oneTimePassword,")
        append("phoneNumber=*** Sensitive Data Redacted ***")
        append(")")
    }

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

        if (oneTimePassword != other.oneTimePassword) return false
        if (phoneNumber != other.phoneNumber) return false

        return true
    }

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

    public class Builder {
        /**
         * The OTP sent to the destination number from the `CreateSMSSandBoxPhoneNumber` call.
         */
        public var oneTimePassword: kotlin.String? = null
        /**
         * The destination phone number to verify.
         */
        public var phoneNumber: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.sns.model.VerifySmsSandboxPhoneNumberRequest) : this() {
            this.oneTimePassword = x.oneTimePassword
            this.phoneNumber = x.phoneNumber
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy