commonMain.aws.sdk.kotlin.services.lookoutequipment.model.UnsupportedTimestamps.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lookoutequipment.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Entity that comprises information abount unsupported timestamps in the dataset.
*/
public class UnsupportedTimestamps private constructor(builder: Builder) {
/**
* Indicates the total number of unsupported timestamps across the ingested data.
*/
public val totalNumberOfUnsupportedTimestamps: kotlin.Int = requireNotNull(builder.totalNumberOfUnsupportedTimestamps) { "A non-null value must be provided for totalNumberOfUnsupportedTimestamps" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lookoutequipment.model.UnsupportedTimestamps = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UnsupportedTimestamps(")
append("totalNumberOfUnsupportedTimestamps=$totalNumberOfUnsupportedTimestamps")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = totalNumberOfUnsupportedTimestamps
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 UnsupportedTimestamps
if (totalNumberOfUnsupportedTimestamps != other.totalNumberOfUnsupportedTimestamps) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lookoutequipment.model.UnsupportedTimestamps = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Indicates the total number of unsupported timestamps across the ingested data.
*/
public var totalNumberOfUnsupportedTimestamps: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lookoutequipment.model.UnsupportedTimestamps) : this() {
this.totalNumberOfUnsupportedTimestamps = x.totalNumberOfUnsupportedTimestamps
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lookoutequipment.model.UnsupportedTimestamps = UnsupportedTimestamps(this)
internal fun correctErrors(): Builder {
if (totalNumberOfUnsupportedTimestamps == null) totalNumberOfUnsupportedTimestamps = 0
return this
}
}
}