
commonMain.aws.sdk.kotlin.services.iottwinmaker.model.PropertyValueEntry.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iottwinmaker.model
/**
* An object that specifies information about time series property values. This object is used and consumed by the [BatchPutPropertyValues](https://docs.aws.amazon.com/iot-twinmaker/latest/apireference/API_BatchPutPropertyValues.html) action.
*/
public class PropertyValueEntry private constructor(builder: Builder) {
/**
* An object that contains information about the entity that has the property.
*/
public val entityPropertyReference: aws.sdk.kotlin.services.iottwinmaker.model.EntityPropertyReference? = builder.entityPropertyReference
/**
* A list of objects that specify time series property values.
*/
public val propertyValues: List? = builder.propertyValues
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iottwinmaker.model.PropertyValueEntry = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PropertyValueEntry(")
append("entityPropertyReference=$entityPropertyReference,")
append("propertyValues=$propertyValues")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = entityPropertyReference?.hashCode() ?: 0
result = 31 * result + (propertyValues?.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 PropertyValueEntry
if (entityPropertyReference != other.entityPropertyReference) return false
if (propertyValues != other.propertyValues) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iottwinmaker.model.PropertyValueEntry = Builder(this).apply(block).build()
public class Builder {
/**
* An object that contains information about the entity that has the property.
*/
public var entityPropertyReference: aws.sdk.kotlin.services.iottwinmaker.model.EntityPropertyReference? = null
/**
* A list of objects that specify time series property values.
*/
public var propertyValues: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iottwinmaker.model.PropertyValueEntry) : this() {
this.entityPropertyReference = x.entityPropertyReference
this.propertyValues = x.propertyValues
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iottwinmaker.model.PropertyValueEntry = PropertyValueEntry(this)
/**
* construct an [aws.sdk.kotlin.services.iottwinmaker.model.EntityPropertyReference] inside the given [block]
*/
public fun entityPropertyReference(block: aws.sdk.kotlin.services.iottwinmaker.model.EntityPropertyReference.Builder.() -> kotlin.Unit) {
this.entityPropertyReference = aws.sdk.kotlin.services.iottwinmaker.model.EntityPropertyReference.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy