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

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

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

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



/**
 * A profile template choice.
 */
public class ProfileTemplateChoice private constructor(builder: Builder) {
    /**
     * The description of a choice.
     */
    public val choiceDescription: kotlin.String? = builder.choiceDescription
    /**
     * The ID of a choice.
     */
    public val choiceId: kotlin.String? = builder.choiceId
    /**
     * The title of a choice.
     */
    public val choiceTitle: kotlin.String? = builder.choiceTitle

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

    override fun toString(): kotlin.String = buildString {
        append("ProfileTemplateChoice(")
        append("choiceDescription=$choiceDescription,")
        append("choiceId=$choiceId,")
        append("choiceTitle=$choiceTitle")
        append(")")
    }

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

        if (choiceDescription != other.choiceDescription) return false
        if (choiceId != other.choiceId) return false
        if (choiceTitle != other.choiceTitle) return false

        return true
    }

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

    public class Builder {
        /**
         * The description of a choice.
         */
        public var choiceDescription: kotlin.String? = null
        /**
         * The ID of a choice.
         */
        public var choiceId: kotlin.String? = null
        /**
         * The title of a choice.
         */
        public var choiceTitle: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.ProfileTemplateChoice) : this() {
            this.choiceDescription = x.choiceDescription
            this.choiceId = x.choiceId
            this.choiceTitle = x.choiceTitle
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy