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

commonMain.aws.sdk.kotlin.services.wellarchitected.model.ChoiceContent.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.wellarchitected.model



/**
 * The choice content.
 */
public class ChoiceContent private constructor(builder: Builder) {
    /**
     * The display text for the choice content.
     */
    public val displayText: kotlin.String? = builder.displayText
    /**
     * The URL for the choice content.
     */
    public val url: kotlin.String? = builder.url

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

    override fun toString(): kotlin.String = buildString {
        append("ChoiceContent(")
        append("displayText=$displayText,")
        append("url=$url")
        append(")")
    }

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

        if (displayText != other.displayText) return false
        if (url != other.url) return false

        return true
    }

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

    public class Builder {
        /**
         * The display text for the choice content.
         */
        public var displayText: kotlin.String? = null
        /**
         * The URL for the choice content.
         */
        public var url: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.ChoiceContent) : this() {
            this.displayText = x.displayText
            this.url = x.url
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy