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

commonMain.aws.sdk.kotlin.services.proton.model.UpdateServiceResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.proton.model

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateServiceResponse private constructor(builder: Builder) {
    /**
     * The service detail data that's returned by Proton.
     */
    public val service: aws.sdk.kotlin.services.proton.model.Service? = builder.service

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

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

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

        if (service != other.service) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The service detail data that's returned by Proton.
         */
        public var service: aws.sdk.kotlin.services.proton.model.Service? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.proton.model.UpdateServiceResponse) : this() {
            this.service = x.service
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy