commonMain.aws.sdk.kotlin.services.gamelift.model.UpdateAliasRequest.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 UpdateAliasRequest private constructor(builder: Builder) {
/**
* A unique identifier for the alias that you want to update. You can use either the alias ID or ARN value.
*/
public val aliasId: kotlin.String? = builder.aliasId
/**
* A human-readable description of the alias.
*/
public val description: kotlin.String? = builder.description
/**
* A descriptive label that is associated with an alias. Alias names do not need to be unique.
*/
public val name: kotlin.String? = builder.name
/**
* The routing configuration, including routing type and fleet target, for the alias.
*/
public val routingStrategy: aws.sdk.kotlin.services.gamelift.model.RoutingStrategy? = builder.routingStrategy
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.gamelift.model.UpdateAliasRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateAliasRequest(")
append("aliasId=$aliasId,")
append("description=$description,")
append("name=$name,")
append("routingStrategy=$routingStrategy")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = aliasId?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (routingStrategy?.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 UpdateAliasRequest
if (aliasId != other.aliasId) return false
if (description != other.description) return false
if (name != other.name) return false
if (routingStrategy != other.routingStrategy) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.gamelift.model.UpdateAliasRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A unique identifier for the alias that you want to update. You can use either the alias ID or ARN value.
*/
public var aliasId: kotlin.String? = null
/**
* A human-readable description of the alias.
*/
public var description: kotlin.String? = null
/**
* A descriptive label that is associated with an alias. Alias names do not need to be unique.
*/
public var name: kotlin.String? = null
/**
* The routing configuration, including routing type and fleet target, for the alias.
*/
public var routingStrategy: aws.sdk.kotlin.services.gamelift.model.RoutingStrategy? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.gamelift.model.UpdateAliasRequest) : this() {
this.aliasId = x.aliasId
this.description = x.description
this.name = x.name
this.routingStrategy = x.routingStrategy
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.gamelift.model.UpdateAliasRequest = UpdateAliasRequest(this)
/**
* construct an [aws.sdk.kotlin.services.gamelift.model.RoutingStrategy] inside the given [block]
*/
public fun routingStrategy(block: aws.sdk.kotlin.services.gamelift.model.RoutingStrategy.Builder.() -> kotlin.Unit) {
this.routingStrategy = aws.sdk.kotlin.services.gamelift.model.RoutingStrategy.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy