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

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

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

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



/**
 * A profile question.
 */
public class ProfileQuestion private constructor(builder: Builder) {
    /**
     * The maximum number of selected choices.
     */
    public val maxSelectedChoices: kotlin.Int = builder.maxSelectedChoices
    /**
     * The minimum number of selected choices.
     */
    public val minSelectedChoices: kotlin.Int = builder.minSelectedChoices
    /**
     * The question choices.
     */
    public val questionChoices: List? = builder.questionChoices
    /**
     * The description of the question.
     */
    public val questionDescription: kotlin.String? = builder.questionDescription
    /**
     * The ID of the question.
     */
    public val questionId: kotlin.String? = builder.questionId
    /**
     * The title of the question.
     */
    public val questionTitle: kotlin.String? = builder.questionTitle
    /**
     * The selected choices.
     */
    public val selectedChoiceIds: List? = builder.selectedChoiceIds

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

    override fun toString(): kotlin.String = buildString {
        append("ProfileQuestion(")
        append("maxSelectedChoices=$maxSelectedChoices,")
        append("minSelectedChoices=$minSelectedChoices,")
        append("questionChoices=$questionChoices,")
        append("questionDescription=$questionDescription,")
        append("questionId=$questionId,")
        append("questionTitle=$questionTitle,")
        append("selectedChoiceIds=$selectedChoiceIds")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = maxSelectedChoices
        result = 31 * result + (minSelectedChoices)
        result = 31 * result + (questionChoices?.hashCode() ?: 0)
        result = 31 * result + (questionDescription?.hashCode() ?: 0)
        result = 31 * result + (questionId?.hashCode() ?: 0)
        result = 31 * result + (questionTitle?.hashCode() ?: 0)
        result = 31 * result + (selectedChoiceIds?.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 ProfileQuestion

        if (maxSelectedChoices != other.maxSelectedChoices) return false
        if (minSelectedChoices != other.minSelectedChoices) return false
        if (questionChoices != other.questionChoices) return false
        if (questionDescription != other.questionDescription) return false
        if (questionId != other.questionId) return false
        if (questionTitle != other.questionTitle) return false
        if (selectedChoiceIds != other.selectedChoiceIds) return false

        return true
    }

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

    public class Builder {
        /**
         * The maximum number of selected choices.
         */
        public var maxSelectedChoices: kotlin.Int = 0
        /**
         * The minimum number of selected choices.
         */
        public var minSelectedChoices: kotlin.Int = 0
        /**
         * The question choices.
         */
        public var questionChoices: List? = null
        /**
         * The description of the question.
         */
        public var questionDescription: kotlin.String? = null
        /**
         * The ID of the question.
         */
        public var questionId: kotlin.String? = null
        /**
         * The title of the question.
         */
        public var questionTitle: kotlin.String? = null
        /**
         * The selected choices.
         */
        public var selectedChoiceIds: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.ProfileQuestion) : this() {
            this.maxSelectedChoices = x.maxSelectedChoices
            this.minSelectedChoices = x.minSelectedChoices
            this.questionChoices = x.questionChoices
            this.questionDescription = x.questionDescription
            this.questionId = x.questionId
            this.questionTitle = x.questionTitle
            this.selectedChoiceIds = x.selectedChoiceIds
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy