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

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

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

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

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The selected pillar.
 */
public class SelectedPillar private constructor(builder: Builder) {
    /**
     * The ID used to identify a pillar, for example, `security`.
     *
     * A pillar is identified by its PillarReviewSummary$PillarId.
     */
    public val pillarId: kotlin.String? = builder.pillarId
    /**
     * Selected question IDs in the selected pillar.
     */
    public val selectedQuestionIds: List? = builder.selectedQuestionIds

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

    override fun toString(): kotlin.String = buildString {
        append("SelectedPillar(")
        append("pillarId=$pillarId,")
        append("selectedQuestionIds=$selectedQuestionIds")
        append(")")
    }

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

        if (pillarId != other.pillarId) return false
        if (selectedQuestionIds != other.selectedQuestionIds) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The ID used to identify a pillar, for example, `security`.
         *
         * A pillar is identified by its PillarReviewSummary$PillarId.
         */
        public var pillarId: kotlin.String? = null
        /**
         * Selected question IDs in the selected pillar.
         */
        public var selectedQuestionIds: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.SelectedPillar) : this() {
            this.pillarId = x.pillarId
            this.selectedQuestionIds = x.selectedQuestionIds
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy