
commonMain.aws.sdk.kotlin.services.iot.model.OtaUpdateSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* An OTA update summary.
*/
public class OtaUpdateSummary private constructor(builder: Builder) {
/**
* The date when the OTA update was created.
*/
public val creationDate: aws.smithy.kotlin.runtime.time.Instant? = builder.creationDate
/**
* The OTA update ARN.
*/
public val otaUpdateArn: kotlin.String? = builder.otaUpdateArn
/**
* The OTA update ID.
*/
public val otaUpdateId: kotlin.String? = builder.otaUpdateId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.OtaUpdateSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("OtaUpdateSummary(")
append("creationDate=$creationDate,")
append("otaUpdateArn=$otaUpdateArn,")
append("otaUpdateId=$otaUpdateId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = creationDate?.hashCode() ?: 0
result = 31 * result + (otaUpdateArn?.hashCode() ?: 0)
result = 31 * result + (otaUpdateId?.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 OtaUpdateSummary
if (creationDate != other.creationDate) return false
if (otaUpdateArn != other.otaUpdateArn) return false
if (otaUpdateId != other.otaUpdateId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.OtaUpdateSummary = Builder(this).apply(block).build()
public class Builder {
/**
* The date when the OTA update was created.
*/
public var creationDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The OTA update ARN.
*/
public var otaUpdateArn: kotlin.String? = null
/**
* The OTA update ID.
*/
public var otaUpdateId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.OtaUpdateSummary) : this() {
this.creationDate = x.creationDate
this.otaUpdateArn = x.otaUpdateArn
this.otaUpdateId = x.otaUpdateId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.OtaUpdateSummary = OtaUpdateSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy