
commonMain.aws.sdk.kotlin.services.gamelift.model.ResolveAliasResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.gamelift.model
public class ResolveAliasResponse private constructor(builder: Builder) {
/**
* The Amazon Resource Name ([ARN](https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html)) associated with the GameLift fleet resource that this alias points to.
*/
public val fleetArn: kotlin.String? = builder.fleetArn
/**
* The fleet identifier that the alias is pointing 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.ResolveAliasResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ResolveAliasResponse(")
append("fleetArn=$fleetArn,")
append("fleetId=$fleetId")
append(")")
}
override fun hashCode(): kotlin.Int {
var 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 ResolveAliasResponse
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.ResolveAliasResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon Resource Name ([ARN](https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html)) associated with the GameLift fleet resource that this alias points to.
*/
public var fleetArn: kotlin.String? = null
/**
* The fleet identifier that the alias is pointing to.
*/
public var fleetId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.gamelift.model.ResolveAliasResponse) : this() {
this.fleetArn = x.fleetArn
this.fleetId = x.fleetId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.gamelift.model.ResolveAliasResponse = ResolveAliasResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy