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

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

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

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



public class UpdateShareInvitationResponse private constructor(builder: Builder) {
    /**
     * The updated workload or custom lens share invitation.
     */
    public val shareInvitation: aws.sdk.kotlin.services.wellarchitected.model.ShareInvitation? = builder.shareInvitation

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

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

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

        if (shareInvitation != other.shareInvitation) return false

        return true
    }

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

    public class Builder {
        /**
         * The updated workload or custom lens share invitation.
         */
        public var shareInvitation: aws.sdk.kotlin.services.wellarchitected.model.ShareInvitation? = null

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy