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

commonMain.aws.sdk.kotlin.services.gamelift.model.UpdateRuntimeConfigurationResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.gamelift.model



public class UpdateRuntimeConfigurationResponse private constructor(builder: Builder) {
    /**
     * The runtime configuration currently in use by all instances in the fleet. If the update was successful, all property changes are shown.
     */
    public val runtimeConfiguration: aws.sdk.kotlin.services.gamelift.model.RuntimeConfiguration? = builder.runtimeConfiguration

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

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

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

        if (runtimeConfiguration != other.runtimeConfiguration) return false

        return true
    }

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

    public class Builder {
        /**
         * The runtime configuration currently in use by all instances in the fleet. If the update was successful, all property changes are shown.
         */
        public var runtimeConfiguration: aws.sdk.kotlin.services.gamelift.model.RuntimeConfiguration? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.gamelift.model.UpdateRuntimeConfigurationResponse) : this() {
            this.runtimeConfiguration = x.runtimeConfiguration
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy