commonMain.aws.sdk.kotlin.services.iotsitewise.model.DescribeAssetCompositeModelRequest.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 DescribeAssetCompositeModelRequest private constructor(builder: Builder) {
/**
* The ID of a composite model on this 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 assetCompositeModelId: kotlin.String? = builder.assetCompositeModelId
/**
* 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
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotsitewise.model.DescribeAssetCompositeModelRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeAssetCompositeModelRequest(")
append("assetCompositeModelId=$assetCompositeModelId,")
append("assetId=$assetId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = assetCompositeModelId?.hashCode() ?: 0
result = 31 * result + (assetId?.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 DescribeAssetCompositeModelRequest
if (assetCompositeModelId != other.assetCompositeModelId) return false
if (assetId != other.assetId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotsitewise.model.DescribeAssetCompositeModelRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of a composite model on this 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 assetCompositeModelId: kotlin.String? = null
/**
* 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
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotsitewise.model.DescribeAssetCompositeModelRequest) : this() {
this.assetCompositeModelId = x.assetCompositeModelId
this.assetId = x.assetId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotsitewise.model.DescribeAssetCompositeModelRequest = DescribeAssetCompositeModelRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy