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

commonMain.aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DisassociateOriginationIdentityResponse.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 DisassociateOriginationIdentityResponse 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 PhoneNumberId or SenderId of the origination identity.
     */
    public val originationIdentity: kotlin.String? = builder.originationIdentity
    /**
     * The PhoneNumberArn or SenderIdArn of the origination identity.
     */
    public val originationIdentityArn: kotlin.String? = builder.originationIdentityArn
    /**
     * The Amazon Resource Name (ARN) of the pool.
     */
    public val poolArn: kotlin.String? = builder.poolArn
    /**
     * The PoolId of the pool no longer associated with the origination identity.
     */
    public val poolId: kotlin.String? = builder.poolId

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

    override fun toString(): kotlin.String = buildString {
        append("DisassociateOriginationIdentityResponse(")
        append("isoCountryCode=$isoCountryCode,")
        append("originationIdentity=$originationIdentity,")
        append("originationIdentityArn=$originationIdentityArn,")
        append("poolArn=$poolArn,")
        append("poolId=$poolId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = isoCountryCode?.hashCode() ?: 0
        result = 31 * result + (originationIdentity?.hashCode() ?: 0)
        result = 31 * result + (originationIdentityArn?.hashCode() ?: 0)
        result = 31 * result + (poolArn?.hashCode() ?: 0)
        result = 31 * result + (poolId?.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 DisassociateOriginationIdentityResponse

        if (isoCountryCode != other.isoCountryCode) return false
        if (originationIdentity != other.originationIdentity) return false
        if (originationIdentityArn != other.originationIdentityArn) return false
        if (poolArn != other.poolArn) return false
        if (poolId != other.poolId) return false

        return true
    }

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

    @SdkDsl
    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 PhoneNumberId or SenderId of the origination identity.
         */
        public var originationIdentity: kotlin.String? = null
        /**
         * The PhoneNumberArn or SenderIdArn of the origination identity.
         */
        public var originationIdentityArn: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the pool.
         */
        public var poolArn: kotlin.String? = null
        /**
         * The PoolId of the pool no longer associated with the origination identity.
         */
        public var poolId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DisassociateOriginationIdentityResponse) : this() {
            this.isoCountryCode = x.isoCountryCode
            this.originationIdentity = x.originationIdentity
            this.originationIdentityArn = x.originationIdentityArn
            this.poolArn = x.poolArn
            this.poolId = x.poolId
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy