commonMain.aws.sdk.kotlin.services.gamelift.model.GetInstanceAccessRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.gamelift.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetInstanceAccessRequest private constructor(builder: Builder) {
/**
* A unique identifier for the fleet that contains the instance you want to access. You can request access to instances in EC2 fleets with the following statuses: `ACTIVATING`, `ACTIVE`, or `ERROR`. Use either a fleet ID or an ARN value.
*
* You can access fleets in `ERROR` status for a short period of time before Amazon GameLift deletes them.
*/
public val fleetId: kotlin.String? = builder.fleetId
/**
* A unique identifier for the instance you want to access. You can access an instance in any status.
*/
public val instanceId: kotlin.String? = builder.instanceId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.gamelift.model.GetInstanceAccessRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetInstanceAccessRequest(")
append("fleetId=$fleetId,")
append("instanceId=$instanceId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = fleetId?.hashCode() ?: 0
result = 31 * result + (instanceId?.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 GetInstanceAccessRequest
if (fleetId != other.fleetId) return false
if (instanceId != other.instanceId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.gamelift.model.GetInstanceAccessRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A unique identifier for the fleet that contains the instance you want to access. You can request access to instances in EC2 fleets with the following statuses: `ACTIVATING`, `ACTIVE`, or `ERROR`. Use either a fleet ID or an ARN value.
*
* You can access fleets in `ERROR` status for a short period of time before Amazon GameLift deletes them.
*/
public var fleetId: kotlin.String? = null
/**
* A unique identifier for the instance you want to access. You can access an instance in any status.
*/
public var instanceId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.gamelift.model.GetInstanceAccessRequest) : this() {
this.fleetId = x.fleetId
this.instanceId = x.instanceId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.gamelift.model.GetInstanceAccessRequest = GetInstanceAccessRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy