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

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

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

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

import aws.smithy.kotlin.runtime.SdkDsl

public class DescribeFleetDeploymentResponse private constructor(builder: Builder) {
    /**
     * The requested deployment information.
     */
    public val fleetDeployment: aws.sdk.kotlin.services.gamelift.model.FleetDeployment? = builder.fleetDeployment
    /**
     * If the deployment is for a multi-location fleet, the requests returns the deployment status in each fleet location.
     */
    public val locationalDeployments: Map? = builder.locationalDeployments

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeFleetDeploymentResponse(")
        append("fleetDeployment=$fleetDeployment,")
        append("locationalDeployments=$locationalDeployments")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = fleetDeployment?.hashCode() ?: 0
        result = 31 * result + (locationalDeployments?.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 DescribeFleetDeploymentResponse

        if (fleetDeployment != other.fleetDeployment) return false
        if (locationalDeployments != other.locationalDeployments) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The requested deployment information.
         */
        public var fleetDeployment: aws.sdk.kotlin.services.gamelift.model.FleetDeployment? = null
        /**
         * If the deployment is for a multi-location fleet, the requests returns the deployment status in each fleet location.
         */
        public var locationalDeployments: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.gamelift.model.DescribeFleetDeploymentResponse) : this() {
            this.fleetDeployment = x.fleetDeployment
            this.locationalDeployments = x.locationalDeployments
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy