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

commonMain.aws.sdk.kotlin.services.honeycode.model.VariableValue.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.honeycode.model



/**
 * The input variables to the app to be used by the InvokeScreenAutomation action request.
 */
public class VariableValue private constructor(builder: Builder) {
    /**
     * Raw value of the variable.
     */
    public val rawValue: kotlin.String = requireNotNull(builder.rawValue) { "A non-null value must be provided for rawValue" }

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

    override fun toString(): kotlin.String = buildString {
        append("VariableValue(")
        append("*** Sensitive Data Redacted ***")
        append(")")
    }

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

        if (rawValue != other.rawValue) return false

        return true
    }

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

    public class Builder {
        /**
         * Raw value of the variable.
         */
        public var rawValue: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.honeycode.model.VariableValue) : this() {
            this.rawValue = x.rawValue
        }

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

        internal fun correctErrors(): Builder {
            if (rawValue == null) rawValue = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy