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

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

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

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



public class UpdateProfileRequest private constructor(builder: Builder) {
    /**
     * The profile ARN.
     */
    public val profileArn: kotlin.String? = requireNotNull(builder.profileArn) { "A non-null value must be provided for profileArn" }
    /**
     * The profile description.
     */
    public val profileDescription: kotlin.String? = builder.profileDescription
    /**
     * Profile questions.
     */
    public val profileQuestions: List? = builder.profileQuestions

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateProfileRequest(")
        append("profileArn=$profileArn,")
        append("profileDescription=$profileDescription,")
        append("profileQuestions=$profileQuestions")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = profileArn?.hashCode() ?: 0
        result = 31 * result + (profileDescription?.hashCode() ?: 0)
        result = 31 * result + (profileQuestions?.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 UpdateProfileRequest

        if (profileArn != other.profileArn) return false
        if (profileDescription != other.profileDescription) return false
        if (profileQuestions != other.profileQuestions) return false

        return true
    }

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

    public class Builder {
        /**
         * The profile ARN.
         */
        public var profileArn: kotlin.String? = null
        /**
         * The profile description.
         */
        public var profileDescription: kotlin.String? = null
        /**
         * Profile questions.
         */
        public var profileQuestions: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.UpdateProfileRequest) : this() {
            this.profileArn = x.profileArn
            this.profileDescription = x.profileDescription
            this.profileQuestions = x.profileQuestions
        }

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

        internal fun correctErrors(): Builder {
            if (profileArn == null) profileArn = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy