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

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

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

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



/**
 * A pillar difference return object.
 */
public class PillarDifference private constructor(builder: Builder) {
    /**
     * Indicates the type of change to the pillar.
     */
    public val differenceStatus: aws.sdk.kotlin.services.wellarchitected.model.DifferenceStatus? = builder.differenceStatus
    /**
     * 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
    /**
     * The name of the pillar.
     */
    public val pillarName: kotlin.String? = builder.pillarName
    /**
     * List of question differences.
     */
    public val questionDifferences: List? = builder.questionDifferences

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

    override fun toString(): kotlin.String = buildString {
        append("PillarDifference(")
        append("differenceStatus=$differenceStatus,")
        append("pillarId=$pillarId,")
        append("pillarName=$pillarName,")
        append("questionDifferences=$questionDifferences")
        append(")")
    }

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

        if (differenceStatus != other.differenceStatus) return false
        if (pillarId != other.pillarId) return false
        if (pillarName != other.pillarName) return false
        if (questionDifferences != other.questionDifferences) return false

        return true
    }

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

    public class Builder {
        /**
         * Indicates the type of change to the pillar.
         */
        public var differenceStatus: aws.sdk.kotlin.services.wellarchitected.model.DifferenceStatus? = null
        /**
         * The ID used to identify a pillar, for example, `security`.
         *
         * A pillar is identified by its PillarReviewSummary$PillarId.
         */
        public var pillarId: kotlin.String? = null
        /**
         * The name of the pillar.
         */
        public var pillarName: kotlin.String? = null
        /**
         * List of question differences.
         */
        public var questionDifferences: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.PillarDifference) : this() {
            this.differenceStatus = x.differenceStatus
            this.pillarId = x.pillarId
            this.pillarName = x.pillarName
            this.questionDifferences = x.questionDifferences
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy