commonMain.aws.sdk.kotlin.services.gamelift.model.GetComputeAccessRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gamelift-jvm Show documentation
Show all versions of gamelift-jvm Show documentation
The AWS SDK for Kotlin client for GameLift
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.gamelift.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetComputeAccessRequest private constructor(builder: Builder) {
/**
* A unique identifier for the compute resource that you want to connect to. For an EC2 fleet compute, use the instance ID. Use ListCompute to retrieve compute identifiers.
*/
public val computeName: kotlin.String? = builder.computeName
/**
* A unique identifier for the fleet that holds the compute resource that you want to connect to. You can use either the fleet ID or ARN value.
*/
public val fleetId: kotlin.String? = builder.fleetId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.gamelift.model.GetComputeAccessRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetComputeAccessRequest(")
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 GetComputeAccessRequest
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.GetComputeAccessRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A unique identifier for the compute resource that you want to connect to. For an EC2 fleet compute, use the instance ID. Use ListCompute to retrieve compute identifiers.
*/
public var computeName: kotlin.String? = null
/**
* A unique identifier for the fleet that holds the compute resource that you want to connect to. You can use either the fleet ID or ARN value.
*/
public var fleetId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.gamelift.model.GetComputeAccessRequest) : this() {
this.computeName = x.computeName
this.fleetId = x.fleetId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.gamelift.model.GetComputeAccessRequest = GetComputeAccessRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy