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

commonMain.aws.sdk.kotlin.services.pinpointsmsvoicev2.model.UpdatePoolRequest.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 UpdatePoolRequest private constructor(builder: Builder) {
    /**
     * When set to true the pool can't be deleted.
     */
    public val deletionProtectionEnabled: kotlin.Boolean? = builder.deletionProtectionEnabled
    /**
     * The OptOutList to associate with the pool. Valid values are either OptOutListName or OptOutListArn.
     *
     * If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).
     */
    public val optOutListName: kotlin.String? = builder.optOutListName
    /**
     * The unique identifier of the pool to update. Valid values are either the PoolId or PoolArn.
     *
     * If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).
     */
    public val poolId: kotlin.String? = builder.poolId
    /**
     * By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.
     */
    public val selfManagedOptOutsEnabled: kotlin.Boolean? = builder.selfManagedOptOutsEnabled
    /**
     * Indicates whether shared routes are enabled for the pool.
     */
    public val sharedRoutesEnabled: kotlin.Boolean? = builder.sharedRoutesEnabled
    /**
     * The Amazon Resource Name (ARN) of the two way channel.
     */
    public val twoWayChannelArn: kotlin.String? = builder.twoWayChannelArn
    /**
     * An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.
     */
    public val twoWayChannelRole: kotlin.String? = builder.twoWayChannelRole
    /**
     * By default this is set to false. When set to true you can receive incoming text messages from your end recipients.
     */
    public val twoWayEnabled: kotlin.Boolean? = builder.twoWayEnabled

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

    override fun toString(): kotlin.String = buildString {
        append("UpdatePoolRequest(")
        append("deletionProtectionEnabled=$deletionProtectionEnabled,")
        append("optOutListName=$optOutListName,")
        append("poolId=$poolId,")
        append("selfManagedOptOutsEnabled=$selfManagedOptOutsEnabled,")
        append("sharedRoutesEnabled=$sharedRoutesEnabled,")
        append("twoWayChannelArn=$twoWayChannelArn,")
        append("twoWayChannelRole=$twoWayChannelRole,")
        append("twoWayEnabled=$twoWayEnabled")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = deletionProtectionEnabled?.hashCode() ?: 0
        result = 31 * result + (optOutListName?.hashCode() ?: 0)
        result = 31 * result + (poolId?.hashCode() ?: 0)
        result = 31 * result + (selfManagedOptOutsEnabled?.hashCode() ?: 0)
        result = 31 * result + (sharedRoutesEnabled?.hashCode() ?: 0)
        result = 31 * result + (twoWayChannelArn?.hashCode() ?: 0)
        result = 31 * result + (twoWayChannelRole?.hashCode() ?: 0)
        result = 31 * result + (twoWayEnabled?.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 UpdatePoolRequest

        if (deletionProtectionEnabled != other.deletionProtectionEnabled) return false
        if (optOutListName != other.optOutListName) return false
        if (poolId != other.poolId) return false
        if (selfManagedOptOutsEnabled != other.selfManagedOptOutsEnabled) return false
        if (sharedRoutesEnabled != other.sharedRoutesEnabled) return false
        if (twoWayChannelArn != other.twoWayChannelArn) return false
        if (twoWayChannelRole != other.twoWayChannelRole) return false
        if (twoWayEnabled != other.twoWayEnabled) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * When set to true the pool can't be deleted.
         */
        public var deletionProtectionEnabled: kotlin.Boolean? = null
        /**
         * The OptOutList to associate with the pool. Valid values are either OptOutListName or OptOutListArn.
         *
         * If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).
         */
        public var optOutListName: kotlin.String? = null
        /**
         * The unique identifier of the pool to update. Valid values are either the PoolId or PoolArn.
         *
         * If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).
         */
        public var poolId: kotlin.String? = null
        /**
         * By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.
         */
        public var selfManagedOptOutsEnabled: kotlin.Boolean? = null
        /**
         * Indicates whether shared routes are enabled for the pool.
         */
        public var sharedRoutesEnabled: kotlin.Boolean? = null
        /**
         * The Amazon Resource Name (ARN) of the two way channel.
         */
        public var twoWayChannelArn: kotlin.String? = null
        /**
         * An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.
         */
        public var twoWayChannelRole: kotlin.String? = null
        /**
         * By default this is set to false. When set to true you can receive incoming text messages from your end recipients.
         */
        public var twoWayEnabled: kotlin.Boolean? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.pinpointsmsvoicev2.model.UpdatePoolRequest) : this() {
            this.deletionProtectionEnabled = x.deletionProtectionEnabled
            this.optOutListName = x.optOutListName
            this.poolId = x.poolId
            this.selfManagedOptOutsEnabled = x.selfManagedOptOutsEnabled
            this.sharedRoutesEnabled = x.sharedRoutesEnabled
            this.twoWayChannelArn = x.twoWayChannelArn
            this.twoWayChannelRole = x.twoWayChannelRole
            this.twoWayEnabled = x.twoWayEnabled
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy