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

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

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

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



/**
 * A choice summary that has been answered on a question in your workload.
 */
public class ChoiceAnswerSummary private constructor(builder: Builder) {
    /**
     * The ID of a choice.
     */
    public val choiceId: kotlin.String? = builder.choiceId
    /**
     * The reason why a choice is non-applicable to a question in your workload.
     */
    public val reason: aws.sdk.kotlin.services.wellarchitected.model.ChoiceReason? = builder.reason
    /**
     * The status of a choice.
     */
    public val status: aws.sdk.kotlin.services.wellarchitected.model.ChoiceStatus? = builder.status

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

    override fun toString(): kotlin.String = buildString {
        append("ChoiceAnswerSummary(")
        append("choiceId=$choiceId,")
        append("reason=$reason,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = choiceId?.hashCode() ?: 0
        result = 31 * result + (reason?.hashCode() ?: 0)
        result = 31 * result + (status?.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 ChoiceAnswerSummary

        if (choiceId != other.choiceId) return false
        if (reason != other.reason) return false
        if (status != other.status) return false

        return true
    }

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

    public class Builder {
        /**
         * The ID of a choice.
         */
        public var choiceId: kotlin.String? = null
        /**
         * The reason why a choice is non-applicable to a question in your workload.
         */
        public var reason: aws.sdk.kotlin.services.wellarchitected.model.ChoiceReason? = null
        /**
         * The status of a choice.
         */
        public var status: aws.sdk.kotlin.services.wellarchitected.model.ChoiceStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.ChoiceAnswerSummary) : this() {
            this.choiceId = x.choiceId
            this.reason = x.reason
            this.status = x.status
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy