
commonMain.aws.sdk.kotlin.services.gamelift.model.GetComputeAuthTokenRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.gamelift.model
public class GetComputeAuthTokenRequest private constructor(builder: Builder) {
/**
* The name of the compute resource you are requesting the authentication token for.
*/
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()
public class Builder {
/**
* The name of the compute resource you are requesting the authentication token for.
*/
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