commonMain.aws.sdk.kotlin.services.gamelift.model.StartFleetActionsRequest.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 StartFleetActionsRequest private constructor(builder: Builder) {
/**
* List of actions to restart on the fleet.
*/
public val actions: List? = builder.actions
/**
* A unique identifier for the fleet to restart actions on. You can use either the fleet ID or ARN value.
*/
public val fleetId: kotlin.String? = builder.fleetId
/**
* The fleet location to restart fleet actions for. Specify a location in the form of an Amazon Web Services Region code, such as `us-west-2`.
*/
public val location: kotlin.String? = builder.location
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.gamelift.model.StartFleetActionsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartFleetActionsRequest(")
append("actions=$actions,")
append("fleetId=$fleetId,")
append("location=$location")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = actions?.hashCode() ?: 0
result = 31 * result + (fleetId?.hashCode() ?: 0)
result = 31 * result + (location?.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 StartFleetActionsRequest
if (actions != other.actions) return false
if (fleetId != other.fleetId) return false
if (location != other.location) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.gamelift.model.StartFleetActionsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* List of actions to restart on the fleet.
*/
public var actions: List? = null
/**
* A unique identifier for the fleet to restart actions on. You can use either the fleet ID or ARN value.
*/
public var fleetId: kotlin.String? = null
/**
* The fleet location to restart fleet actions for. Specify a location in the form of an Amazon Web Services Region code, such as `us-west-2`.
*/
public var location: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.gamelift.model.StartFleetActionsRequest) : this() {
this.actions = x.actions
this.fleetId = x.fleetId
this.location = x.location
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.gamelift.model.StartFleetActionsRequest = StartFleetActionsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy