commonMain.aws.sdk.kotlin.services.gamelift.model.UpdateBuildRequest.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 UpdateBuildRequest private constructor(builder: Builder) {
/**
* A unique identifier for the build to update. You can use either the build ID or ARN value.
*/
public val buildId: kotlin.String? = builder.buildId
/**
* A descriptive label that is associated with a build. Build names do not need to be unique.
*/
public val name: kotlin.String? = builder.name
/**
* Version information that is associated with a build or script. Version strings do not need to be unique.
*/
public val version: kotlin.String? = builder.version
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.gamelift.model.UpdateBuildRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateBuildRequest(")
append("buildId=$buildId,")
append("name=$name,")
append("version=$version")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = buildId?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (version?.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 UpdateBuildRequest
if (buildId != other.buildId) return false
if (name != other.name) return false
if (version != other.version) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.gamelift.model.UpdateBuildRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A unique identifier for the build to update. You can use either the build ID or ARN value.
*/
public var buildId: kotlin.String? = null
/**
* A descriptive label that is associated with a build. Build names do not need to be unique.
*/
public var name: kotlin.String? = null
/**
* Version information that is associated with a build or script. Version strings do not need to be unique.
*/
public var version: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.gamelift.model.UpdateBuildRequest) : this() {
this.buildId = x.buildId
this.name = x.name
this.version = x.version
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.gamelift.model.UpdateBuildRequest = UpdateBuildRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy