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

commonMain.aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DeleteKeywordRequest.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 DeleteKeywordRequest private constructor(builder: Builder) {
    /**
     * The keyword to delete.
     */
    public val keyword: kotlin.String? = builder.keyword
    /**
     * The origination identity to use such as a PhoneNumberId, PhoneNumberArn, PoolId or PoolArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn and DescribePools to find the values of PoolId and PoolArn.
     */
    public val originationIdentity: kotlin.String? = builder.originationIdentity

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteKeywordRequest(")
        append("keyword=$keyword,")
        append("originationIdentity=$originationIdentity")
        append(")")
    }

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

        if (keyword != other.keyword) return false
        if (originationIdentity != other.originationIdentity) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The keyword to delete.
         */
        public var keyword: kotlin.String? = null
        /**
         * The origination identity to use such as a PhoneNumberId, PhoneNumberArn, PoolId or PoolArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn and DescribePools to find the values of PoolId and PoolArn.
         */
        public var originationIdentity: kotlin.String? = null

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy