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

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

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

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



/**
 * The alphanumeric sender ID in a specific country that you want to describe. For more information on sender IDs see [Requesting sender IDs for SMS messaging with Amazon Pinpoint ](https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-sms-awssupport-sender-id.html) in the *Amazon Pinpoint User Guide*.
 */
public class SenderIdAndCountry private constructor(builder: Builder) {
    /**
     * The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
     */
    public val isoCountryCode: kotlin.String? = builder.isoCountryCode
    /**
     * The unique identifier of the sender.
     */
    public val senderId: kotlin.String? = builder.senderId

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

    override fun toString(): kotlin.String = buildString {
        append("SenderIdAndCountry(")
        append("isoCountryCode=$isoCountryCode,")
        append("senderId=$senderId)")
    }

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

        if (isoCountryCode != other.isoCountryCode) return false
        if (senderId != other.senderId) return false

        return true
    }

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

    public class Builder {
        /**
         * The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
         */
        public var isoCountryCode: kotlin.String? = null
        /**
         * The unique identifier of the sender.
         */
        public var senderId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.pinpointsmsvoicev2.model.SenderIdAndCountry) : this() {
            this.isoCountryCode = x.isoCountryCode
            this.senderId = x.senderId
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy