commonMain.aws.sdk.kotlin.services.iotsitewise.model.BatchGetAssetPropertyAggregatesSuccessEntry.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iotsitewise-jvm Show documentation
Show all versions of iotsitewise-jvm Show documentation
The AWS SDK for Kotlin client for IoTSiteWise
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iotsitewise.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Contains success information for an entry that is associated with the [BatchGetAssetPropertyAggregates](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_BatchGetAssetPropertyAggregates.html) API.
*/
public class BatchGetAssetPropertyAggregatesSuccessEntry private constructor(builder: Builder) {
/**
* The requested aggregated asset property values (for example, average, minimum, and maximum).
*/
public val aggregatedValues: List = requireNotNull(builder.aggregatedValues) { "A non-null value must be provided for aggregatedValues" }
/**
* The ID of the entry.
*/
public val entryId: kotlin.String = requireNotNull(builder.entryId) { "A non-null value must be provided for entryId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotsitewise.model.BatchGetAssetPropertyAggregatesSuccessEntry = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchGetAssetPropertyAggregatesSuccessEntry(")
append("aggregatedValues=$aggregatedValues,")
append("entryId=$entryId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = aggregatedValues.hashCode()
result = 31 * result + (entryId.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 BatchGetAssetPropertyAggregatesSuccessEntry
if (aggregatedValues != other.aggregatedValues) return false
if (entryId != other.entryId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotsitewise.model.BatchGetAssetPropertyAggregatesSuccessEntry = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The requested aggregated asset property values (for example, average, minimum, and maximum).
*/
public var aggregatedValues: List? = null
/**
* The ID of the entry.
*/
public var entryId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotsitewise.model.BatchGetAssetPropertyAggregatesSuccessEntry) : this() {
this.aggregatedValues = x.aggregatedValues
this.entryId = x.entryId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotsitewise.model.BatchGetAssetPropertyAggregatesSuccessEntry = BatchGetAssetPropertyAggregatesSuccessEntry(this)
internal fun correctErrors(): Builder {
if (aggregatedValues == null) aggregatedValues = emptyList()
if (entryId == null) entryId = ""
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy