
commonMain.aws.sdk.kotlin.services.iottwinmaker.model.UpdateSceneResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iottwinmaker.model
import aws.smithy.kotlin.runtime.time.Instant
public class UpdateSceneResponse private constructor(builder: Builder) {
/**
* The date and time when the scene was last updated.
*/
public val updateDateTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.updateDateTime) { "A non-null value must be provided for updateDateTime" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iottwinmaker.model.UpdateSceneResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateSceneResponse(")
append("updateDateTime=$updateDateTime")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = updateDateTime.hashCode()
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 UpdateSceneResponse
if (updateDateTime != other.updateDateTime) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iottwinmaker.model.UpdateSceneResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The date and time when the scene was last updated.
*/
public var updateDateTime: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iottwinmaker.model.UpdateSceneResponse) : this() {
this.updateDateTime = x.updateDateTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iottwinmaker.model.UpdateSceneResponse = UpdateSceneResponse(this)
internal fun correctErrors(): Builder {
if (updateDateTime == null) updateDateTime = Instant.fromEpochSeconds(0)
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy