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

commonMain.aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DeleteKeywordResponse.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 DeleteKeywordResponse private constructor(builder: Builder) {
    /**
     * The keyword that was deleted.
     */
    public val keyword: kotlin.String? = builder.keyword
    /**
     * The action that was associated with the deleted keyword.
     */
    public val keywordAction: aws.sdk.kotlin.services.pinpointsmsvoicev2.model.KeywordAction? = builder.keywordAction
    /**
     * The message that was associated with the deleted keyword.
     */
    public val keywordMessage: kotlin.String? = builder.keywordMessage
    /**
     * The PhoneNumberId or PoolId that the keyword was associated with.
     */
    public val originationIdentity: kotlin.String? = builder.originationIdentity
    /**
     * The PhoneNumberArn or PoolArn that the keyword was associated with.
     */
    public val originationIdentityArn: kotlin.String? = builder.originationIdentityArn

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteKeywordResponse(")
        append("keyword=$keyword,")
        append("keywordAction=$keywordAction,")
        append("keywordMessage=$keywordMessage,")
        append("originationIdentity=$originationIdentity,")
        append("originationIdentityArn=$originationIdentityArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = keyword?.hashCode() ?: 0
        result = 31 * result + (keywordAction?.hashCode() ?: 0)
        result = 31 * result + (keywordMessage?.hashCode() ?: 0)
        result = 31 * result + (originationIdentity?.hashCode() ?: 0)
        result = 31 * result + (originationIdentityArn?.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 DeleteKeywordResponse

        if (keyword != other.keyword) return false
        if (keywordAction != other.keywordAction) return false
        if (keywordMessage != other.keywordMessage) return false
        if (originationIdentity != other.originationIdentity) return false
        if (originationIdentityArn != other.originationIdentityArn) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The keyword that was deleted.
         */
        public var keyword: kotlin.String? = null
        /**
         * The action that was associated with the deleted keyword.
         */
        public var keywordAction: aws.sdk.kotlin.services.pinpointsmsvoicev2.model.KeywordAction? = null
        /**
         * The message that was associated with the deleted keyword.
         */
        public var keywordMessage: kotlin.String? = null
        /**
         * The PhoneNumberId or PoolId that the keyword was associated with.
         */
        public var originationIdentity: kotlin.String? = null
        /**
         * The PhoneNumberArn or PoolArn that the keyword was associated with.
         */
        public var originationIdentityArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DeleteKeywordResponse) : this() {
            this.keyword = x.keyword
            this.keywordAction = x.keywordAction
            this.keywordMessage = x.keywordMessage
            this.originationIdentity = x.originationIdentity
            this.originationIdentityArn = x.originationIdentityArn
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy