
commonMain.aws.sdk.kotlin.services.gamelift.model.Compute.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.time.Instant
/**
* An Amazon GameLift compute resource for hosting your game servers. A compute can be an EC2instance in a managed EC2 fleet or a registered compute in an Anywhere fleet.
*/
public class Compute private constructor(builder: Builder) {
/**
* The ARN that is assigned to a compute resource and uniquely identifies it. ARNs are unique across locations. Instances in managed EC2 fleets are not assigned a ComputeARN.
*/
public val computeArn: kotlin.String? = builder.computeArn
/**
* A descriptive label for the compute resource. For instances in a managed EC2 fleet, the compute name is an instance ID.
*/
public val computeName: kotlin.String? = builder.computeName
/**
* Current status of the compute. A compute must have an `ACTIVE` status to host game sessions.
*/
public val computeStatus: aws.sdk.kotlin.services.gamelift.model.ComputeStatus? = builder.computeStatus
/**
* A time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example `"1469498468.057"`).
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
/**
* The DNS name of a compute resource. Amazon GameLift requires a DNS name or IP address for a compute.
*/
public val dnsName: kotlin.String? = builder.dnsName
/**
* The Amazon Resource Name (ARN) of the fleet that the compute belongs to.
*/
public val fleetArn: kotlin.String? = builder.fleetArn
/**
* A unique identifier for the fleet that the compute belongs to.
*/
public val fleetId: kotlin.String? = builder.fleetId
/**
* The Amazon GameLift SDK endpoint connection for a registered compute resource in an Anywhere fleet. The game servers on the compute use this endpoint to connect to the Amazon GameLift service.
*/
public val gameLiftServiceSdkEndpoint: kotlin.String? = builder.gameLiftServiceSdkEndpoint
/**
* The IP address of a compute resource. Amazon GameLift requires a DNS name or IP address for a compute.
*/
public val ipAddress: kotlin.String? = builder.ipAddress
/**
* The name of the custom location you added to the fleet that this compute resource resides in.
*/
public val location: kotlin.String? = builder.location
/**
* The type of operating system on the compute resource.
*/
public val operatingSystem: aws.sdk.kotlin.services.gamelift.model.OperatingSystem? = builder.operatingSystem
/**
* The Amazon EC2 instance type that the fleet uses. For registered computes in an Amazon GameLift Anywhere fleet, this property is empty.
*/
public val type: aws.sdk.kotlin.services.gamelift.model.Ec2InstanceType? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.gamelift.model.Compute = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Compute(")
append("computeArn=$computeArn,")
append("computeName=$computeName,")
append("computeStatus=$computeStatus,")
append("creationTime=$creationTime,")
append("dnsName=$dnsName,")
append("fleetArn=$fleetArn,")
append("fleetId=$fleetId,")
append("gameLiftServiceSdkEndpoint=$gameLiftServiceSdkEndpoint,")
append("ipAddress=*** Sensitive Data Redacted ***,")
append("location=$location,")
append("operatingSystem=$operatingSystem,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = computeArn?.hashCode() ?: 0
result = 31 * result + (computeName?.hashCode() ?: 0)
result = 31 * result + (computeStatus?.hashCode() ?: 0)
result = 31 * result + (creationTime?.hashCode() ?: 0)
result = 31 * result + (dnsName?.hashCode() ?: 0)
result = 31 * result + (fleetArn?.hashCode() ?: 0)
result = 31 * result + (fleetId?.hashCode() ?: 0)
result = 31 * result + (gameLiftServiceSdkEndpoint?.hashCode() ?: 0)
result = 31 * result + (ipAddress?.hashCode() ?: 0)
result = 31 * result + (location?.hashCode() ?: 0)
result = 31 * result + (operatingSystem?.hashCode() ?: 0)
result = 31 * result + (type?.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 Compute
if (computeArn != other.computeArn) return false
if (computeName != other.computeName) return false
if (computeStatus != other.computeStatus) return false
if (creationTime != other.creationTime) return false
if (dnsName != other.dnsName) return false
if (fleetArn != other.fleetArn) return false
if (fleetId != other.fleetId) return false
if (gameLiftServiceSdkEndpoint != other.gameLiftServiceSdkEndpoint) return false
if (ipAddress != other.ipAddress) return false
if (location != other.location) return false
if (operatingSystem != other.operatingSystem) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.gamelift.model.Compute = Builder(this).apply(block).build()
public class Builder {
/**
* The ARN that is assigned to a compute resource and uniquely identifies it. ARNs are unique across locations. Instances in managed EC2 fleets are not assigned a ComputeARN.
*/
public var computeArn: kotlin.String? = null
/**
* A descriptive label for the compute resource. For instances in a managed EC2 fleet, the compute name is an instance ID.
*/
public var computeName: kotlin.String? = null
/**
* Current status of the compute. A compute must have an `ACTIVE` status to host game sessions.
*/
public var computeStatus: aws.sdk.kotlin.services.gamelift.model.ComputeStatus? = null
/**
* A time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example `"1469498468.057"`).
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The DNS name of a compute resource. Amazon GameLift requires a DNS name or IP address for a compute.
*/
public var dnsName: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the fleet that the compute belongs to.
*/
public var fleetArn: kotlin.String? = null
/**
* A unique identifier for the fleet that the compute belongs to.
*/
public var fleetId: kotlin.String? = null
/**
* The Amazon GameLift SDK endpoint connection for a registered compute resource in an Anywhere fleet. The game servers on the compute use this endpoint to connect to the Amazon GameLift service.
*/
public var gameLiftServiceSdkEndpoint: kotlin.String? = null
/**
* The IP address of a compute resource. Amazon GameLift requires a DNS name or IP address for a compute.
*/
public var ipAddress: kotlin.String? = null
/**
* The name of the custom location you added to the fleet that this compute resource resides in.
*/
public var location: kotlin.String? = null
/**
* The type of operating system on the compute resource.
*/
public var operatingSystem: aws.sdk.kotlin.services.gamelift.model.OperatingSystem? = null
/**
* The Amazon EC2 instance type that the fleet uses. For registered computes in an Amazon GameLift Anywhere fleet, this property is empty.
*/
public var type: aws.sdk.kotlin.services.gamelift.model.Ec2InstanceType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.gamelift.model.Compute) : this() {
this.computeArn = x.computeArn
this.computeName = x.computeName
this.computeStatus = x.computeStatus
this.creationTime = x.creationTime
this.dnsName = x.dnsName
this.fleetArn = x.fleetArn
this.fleetId = x.fleetId
this.gameLiftServiceSdkEndpoint = x.gameLiftServiceSdkEndpoint
this.ipAddress = x.ipAddress
this.location = x.location
this.operatingSystem = x.operatingSystem
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.gamelift.model.Compute = Compute(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy