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

commonMain.aws.sdk.kotlin.services.gamelift.model.GetComputeAuthTokenRequest.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 GetComputeAuthTokenRequest private constructor(builder: Builder) {
    /**
     * The name of the compute resource you are requesting the authentication token for. For an Anywhere fleet compute, use the registered compute name. For an EC2 fleet instance, use the instance ID.
     */
    public val computeName: kotlin.String? = builder.computeName
    /**
     * A unique identifier for the fleet that the compute is registered to.
     */
    public val fleetId: kotlin.String? = builder.fleetId

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

    override fun toString(): kotlin.String = buildString {
        append("GetComputeAuthTokenRequest(")
        append("computeName=$computeName,")
        append("fleetId=$fleetId")
        append(")")
    }

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

        if (computeName != other.computeName) return false
        if (fleetId != other.fleetId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name of the compute resource you are requesting the authentication token for. For an Anywhere fleet compute, use the registered compute name. For an EC2 fleet instance, use the instance ID.
         */
        public var computeName: kotlin.String? = null
        /**
         * A unique identifier for the fleet that the compute is registered to.
         */
        public var fleetId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.gamelift.model.GetComputeAuthTokenRequest) : this() {
            this.computeName = x.computeName
            this.fleetId = x.fleetId
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy