commonMain.aws.sdk.kotlin.services.iotsitewise.model.GetAssetPropertyValueRequest.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
public class GetAssetPropertyValueRequest private constructor(builder: Builder) {
/**
* The ID of the asset, in UUID format.
*/
public val assetId: kotlin.String? = builder.assetId
/**
* The alias that identifies the property, such as an OPC-UA server data stream path (for example, `/company/windfarm/3/turbine/7/temperature`). For more information, see [Mapping industrial data streams to asset properties](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/connect-data-streams.html) in the *IoT SiteWise User Guide*.
*/
public val propertyAlias: kotlin.String? = builder.propertyAlias
/**
* The ID of the asset property, in UUID format.
*/
public val propertyId: kotlin.String? = builder.propertyId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotsitewise.model.GetAssetPropertyValueRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetAssetPropertyValueRequest(")
append("assetId=$assetId,")
append("propertyAlias=$propertyAlias,")
append("propertyId=$propertyId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = assetId?.hashCode() ?: 0
result = 31 * result + (propertyAlias?.hashCode() ?: 0)
result = 31 * result + (propertyId?.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 GetAssetPropertyValueRequest
if (assetId != other.assetId) return false
if (propertyAlias != other.propertyAlias) return false
if (propertyId != other.propertyId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotsitewise.model.GetAssetPropertyValueRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the asset, in UUID format.
*/
public var assetId: kotlin.String? = null
/**
* The alias that identifies the property, such as an OPC-UA server data stream path (for example, `/company/windfarm/3/turbine/7/temperature`). For more information, see [Mapping industrial data streams to asset properties](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/connect-data-streams.html) in the *IoT SiteWise User Guide*.
*/
public var propertyAlias: kotlin.String? = null
/**
* The ID of the asset property, in UUID format.
*/
public var propertyId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotsitewise.model.GetAssetPropertyValueRequest) : this() {
this.assetId = x.assetId
this.propertyAlias = x.propertyAlias
this.propertyId = x.propertyId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotsitewise.model.GetAssetPropertyValueRequest = GetAssetPropertyValueRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy