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

commonMain.aws.sdk.kotlin.services.connect.model.NumericQuestionPropertyValueAutomation.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.connect.model



/**
 * Information about the property value used in automation of a numeric questions. Label values are associated with minimum and maximum values for the numeric question.
 * + Sentiment scores have a minimum value of -5 and maximum value of 5.
 * +  Duration labels, such as `NON_TALK_TIME`, `CONTACT_DURATION`, `AGENT_INTERACTION_DURATION`, `CUSTOMER_HOLD_TIME` have a minimum value of 0 and maximum value of 28800.
 * + Percentages have a minimum value of 0 and maximum value of 100.
 * + `NUMBER_OF_INTERRUPTIONS` has a minimum value of 0 and maximum value of 1000.
 */
public class NumericQuestionPropertyValueAutomation private constructor(builder: Builder) {
    /**
     * The property label of the automation.
     */
    public val label: aws.sdk.kotlin.services.connect.model.NumericQuestionPropertyAutomationLabel? = builder.label

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

    override fun toString(): kotlin.String = buildString {
        append("NumericQuestionPropertyValueAutomation(")
        append("label=$label")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = label?.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 NumericQuestionPropertyValueAutomation

        if (label != other.label) return false

        return true
    }

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

    public class Builder {
        /**
         * The property label of the automation.
         */
        public var label: aws.sdk.kotlin.services.connect.model.NumericQuestionPropertyAutomationLabel? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.connect.model.NumericQuestionPropertyValueAutomation) : this() {
            this.label = x.label
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy