commonMain.aws.sdk.kotlin.services.iotsitewise.model.BatchGetAssetPropertyValueSuccessEntry.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 [BatchGetAssetPropertyValue](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_BatchGetAssetPropertyValue.html) API.
*/
public class BatchGetAssetPropertyValueSuccessEntry private constructor(builder: Builder) {
/**
* Contains asset property value information.
*/
public val assetPropertyValue: aws.sdk.kotlin.services.iotsitewise.model.AssetPropertyValue? = builder.assetPropertyValue
/**
* 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.BatchGetAssetPropertyValueSuccessEntry = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchGetAssetPropertyValueSuccessEntry(")
append("assetPropertyValue=$assetPropertyValue,")
append("entryId=$entryId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = assetPropertyValue?.hashCode() ?: 0
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 BatchGetAssetPropertyValueSuccessEntry
if (assetPropertyValue != other.assetPropertyValue) return false
if (entryId != other.entryId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotsitewise.model.BatchGetAssetPropertyValueSuccessEntry = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Contains asset property value information.
*/
public var assetPropertyValue: aws.sdk.kotlin.services.iotsitewise.model.AssetPropertyValue? = 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.BatchGetAssetPropertyValueSuccessEntry) : this() {
this.assetPropertyValue = x.assetPropertyValue
this.entryId = x.entryId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotsitewise.model.BatchGetAssetPropertyValueSuccessEntry = BatchGetAssetPropertyValueSuccessEntry(this)
/**
* construct an [aws.sdk.kotlin.services.iotsitewise.model.AssetPropertyValue] inside the given [block]
*/
public fun assetPropertyValue(block: aws.sdk.kotlin.services.iotsitewise.model.AssetPropertyValue.Builder.() -> kotlin.Unit) {
this.assetPropertyValue = aws.sdk.kotlin.services.iotsitewise.model.AssetPropertyValue.invoke(block)
}
internal fun correctErrors(): Builder {
if (entryId == null) entryId = ""
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy