commonMain.aws.sdk.kotlin.services.iotsitewise.model.DescribeAssetRequest.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 DescribeAssetRequest private constructor(builder: Builder) {
/**
* The ID of the asset. This can be either the actual ID in UUID format, or else `externalId:` followed by the external ID, if it has one. For more information, see [Referencing objects with external IDs](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/object-ids.html#external-id-references) in the *IoT SiteWise User Guide*.
*/
public val assetId: kotlin.String? = builder.assetId
/**
* Whether or not to exclude asset properties from the response.
*/
public val excludeProperties: kotlin.Boolean? = builder.excludeProperties
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotsitewise.model.DescribeAssetRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeAssetRequest(")
append("assetId=$assetId,")
append("excludeProperties=$excludeProperties")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = assetId?.hashCode() ?: 0
result = 31 * result + (excludeProperties?.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 DescribeAssetRequest
if (assetId != other.assetId) return false
if (excludeProperties != other.excludeProperties) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotsitewise.model.DescribeAssetRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the asset. This can be either the actual ID in UUID format, or else `externalId:` followed by the external ID, if it has one. For more information, see [Referencing objects with external IDs](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/object-ids.html#external-id-references) in the *IoT SiteWise User Guide*.
*/
public var assetId: kotlin.String? = null
/**
* Whether or not to exclude asset properties from the response.
*/
public var excludeProperties: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotsitewise.model.DescribeAssetRequest) : this() {
this.assetId = x.assetId
this.excludeProperties = x.excludeProperties
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotsitewise.model.DescribeAssetRequest = DescribeAssetRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy