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

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

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

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



public class UpdateProfileResponse private constructor(builder: Builder) {
    /**
     * The profile.
     */
    public val profile: aws.sdk.kotlin.services.wellarchitected.model.Profile? = builder.profile

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateProfileResponse(")
        append("profile=$profile")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = profile?.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 UpdateProfileResponse

        if (profile != other.profile) return false

        return true
    }

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

    public class Builder {
        /**
         * The profile.
         */
        public var profile: aws.sdk.kotlin.services.wellarchitected.model.Profile? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.UpdateProfileResponse) : this() {
            this.profile = x.profile
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.wellarchitected.model.Profile] inside the given [block]
         */
        public fun profile(block: aws.sdk.kotlin.services.wellarchitected.model.Profile.Builder.() -> kotlin.Unit) {
            this.profile = aws.sdk.kotlin.services.wellarchitected.model.Profile.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy