commonMain.aws.sdk.kotlin.services.gamelift.model.GetComputeAuthTokenResponse.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
import aws.smithy.kotlin.runtime.time.Instant
public class GetComputeAuthTokenResponse private constructor(builder: Builder) {
/**
* A valid temporary authentication token.
*/
public val authToken: kotlin.String? = builder.authToken
/**
* The Amazon Resource Name ([ARN](https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html)) that is assigned to an Amazon GameLift compute resource and uniquely identifies it. ARNs are unique across all Regions. Format is `arn:aws:gamelift:::compute/compute-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912`.
*/
public val computeArn: kotlin.String? = builder.computeArn
/**
* The name of the compute resource that the authentication token is issued to.
*/
public val computeName: kotlin.String? = builder.computeName
/**
* The amount of time until the authentication token is no longer valid.
*/
public val expirationTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.expirationTimestamp
/**
* The Amazon Resource Name ([ARN](https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html)) that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format is `arn:aws:gamelift:::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912`.
*/
public val fleetArn: kotlin.String? = builder.fleetArn
/**
* 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.GetComputeAuthTokenResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetComputeAuthTokenResponse(")
append("authToken=$authToken,")
append("computeArn=$computeArn,")
append("computeName=$computeName,")
append("expirationTimestamp=$expirationTimestamp,")
append("fleetArn=$fleetArn,")
append("fleetId=$fleetId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = authToken?.hashCode() ?: 0
result = 31 * result + (computeArn?.hashCode() ?: 0)
result = 31 * result + (computeName?.hashCode() ?: 0)
result = 31 * result + (expirationTimestamp?.hashCode() ?: 0)
result = 31 * result + (fleetArn?.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 GetComputeAuthTokenResponse
if (authToken != other.authToken) return false
if (computeArn != other.computeArn) return false
if (computeName != other.computeName) return false
if (expirationTimestamp != other.expirationTimestamp) return false
if (fleetArn != other.fleetArn) return false
if (fleetId != other.fleetId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.gamelift.model.GetComputeAuthTokenResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A valid temporary authentication token.
*/
public var authToken: kotlin.String? = null
/**
* The Amazon Resource Name ([ARN](https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html)) that is assigned to an Amazon GameLift compute resource and uniquely identifies it. ARNs are unique across all Regions. Format is `arn:aws:gamelift:::compute/compute-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912`.
*/
public var computeArn: kotlin.String? = null
/**
* The name of the compute resource that the authentication token is issued to.
*/
public var computeName: kotlin.String? = null
/**
* The amount of time until the authentication token is no longer valid.
*/
public var expirationTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The Amazon Resource Name ([ARN](https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html)) that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format is `arn:aws:gamelift:::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912`.
*/
public var fleetArn: 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.GetComputeAuthTokenResponse) : this() {
this.authToken = x.authToken
this.computeArn = x.computeArn
this.computeName = x.computeName
this.expirationTimestamp = x.expirationTimestamp
this.fleetArn = x.fleetArn
this.fleetId = x.fleetId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.gamelift.model.GetComputeAuthTokenResponse = GetComputeAuthTokenResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy