
commonMain.aws.sdk.kotlin.services.iottwinmaker.model.PropertyLatestValue.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iottwinmaker.model
/**
* The latest value of the property.
*/
public class PropertyLatestValue private constructor(builder: Builder) {
/**
* An object that specifies information about a property.
*/
public val propertyReference: aws.sdk.kotlin.services.iottwinmaker.model.EntityPropertyReference? = builder.propertyReference
/**
* The value of the property.
*/
public val propertyValue: aws.sdk.kotlin.services.iottwinmaker.model.DataValue? = builder.propertyValue
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iottwinmaker.model.PropertyLatestValue = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PropertyLatestValue(")
append("propertyReference=$propertyReference,")
append("propertyValue=$propertyValue")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = propertyReference?.hashCode() ?: 0
result = 31 * result + (propertyValue?.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 PropertyLatestValue
if (propertyReference != other.propertyReference) return false
if (propertyValue != other.propertyValue) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iottwinmaker.model.PropertyLatestValue = Builder(this).apply(block).build()
public class Builder {
/**
* An object that specifies information about a property.
*/
public var propertyReference: aws.sdk.kotlin.services.iottwinmaker.model.EntityPropertyReference? = null
/**
* The value of the property.
*/
public var propertyValue: aws.sdk.kotlin.services.iottwinmaker.model.DataValue? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iottwinmaker.model.PropertyLatestValue) : this() {
this.propertyReference = x.propertyReference
this.propertyValue = x.propertyValue
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iottwinmaker.model.PropertyLatestValue = PropertyLatestValue(this)
/**
* construct an [aws.sdk.kotlin.services.iottwinmaker.model.EntityPropertyReference] inside the given [block]
*/
public fun propertyReference(block: aws.sdk.kotlin.services.iottwinmaker.model.EntityPropertyReference.Builder.() -> kotlin.Unit) {
this.propertyReference = aws.sdk.kotlin.services.iottwinmaker.model.EntityPropertyReference.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.iottwinmaker.model.DataValue] inside the given [block]
*/
public fun propertyValue(block: aws.sdk.kotlin.services.iottwinmaker.model.DataValue.Builder.() -> kotlin.Unit) {
this.propertyValue = aws.sdk.kotlin.services.iottwinmaker.model.DataValue.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy