All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.iotsitewise.model.DescribeAssetCompositeModelResponse.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.iotsitewise.model

import aws.smithy.kotlin.runtime.SdkDsl

public class DescribeAssetCompositeModelResponse private constructor(builder: Builder) {
    /**
     * The available actions for a composite model on this asset.
     */
    public val actionDefinitions: List? = builder.actionDefinitions
    /**
     * A description for the composite model.
     */
    public val assetCompositeModelDescription: kotlin.String = requireNotNull(builder.assetCompositeModelDescription) { "A non-null value must be provided for assetCompositeModelDescription" }
    /**
     * An external ID to assign to the asset model.
     *
     * If the composite model is a component-based composite model, or one nested inside a component model, you can only set the external ID using `UpdateAssetModelCompositeModel` and specifying the derived ID of the model or property from the created model it's a part of.
     */
    public val assetCompositeModelExternalId: kotlin.String? = builder.assetCompositeModelExternalId
    /**
     * The ID of a composite model on this asset.
     */
    public val assetCompositeModelId: kotlin.String = requireNotNull(builder.assetCompositeModelId) { "A non-null value must be provided for assetCompositeModelId" }
    /**
     * The unique, friendly name for the composite model.
     */
    public val assetCompositeModelName: kotlin.String = requireNotNull(builder.assetCompositeModelName) { "A non-null value must be provided for assetCompositeModelName" }
    /**
     * The path to the composite model listing the parent composite models.
     */
    public val assetCompositeModelPath: List = requireNotNull(builder.assetCompositeModelPath) { "A non-null value must be provided for assetCompositeModelPath" }
    /**
     * The property definitions of the composite model that was used to create the asset.
     */
    public val assetCompositeModelProperties: List = requireNotNull(builder.assetCompositeModelProperties) { "A non-null value must be provided for assetCompositeModelProperties" }
    /**
     * The list of composite model summaries.
     */
    public val assetCompositeModelSummaries: List = requireNotNull(builder.assetCompositeModelSummaries) { "A non-null value must be provided for assetCompositeModelSummaries" }
    /**
     * The composite model type. Valid values are `AWS/ALARM`, `CUSTOM`, or ` AWS/L4E_ANOMALY`.
     */
    public val assetCompositeModelType: kotlin.String = requireNotNull(builder.assetCompositeModelType) { "A non-null value must be provided for assetCompositeModelType" }
    /**
     * The ID of the asset, in UUID format. This ID uniquely identifies the asset within IoT SiteWise and can be used with other IoT SiteWise APIs.
     */
    public val assetId: kotlin.String = requireNotNull(builder.assetId) { "A non-null value must be provided for assetId" }

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotsitewise.model.DescribeAssetCompositeModelResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("DescribeAssetCompositeModelResponse(")
        append("actionDefinitions=$actionDefinitions,")
        append("assetCompositeModelDescription=$assetCompositeModelDescription,")
        append("assetCompositeModelExternalId=$assetCompositeModelExternalId,")
        append("assetCompositeModelId=$assetCompositeModelId,")
        append("assetCompositeModelName=$assetCompositeModelName,")
        append("assetCompositeModelPath=$assetCompositeModelPath,")
        append("assetCompositeModelProperties=$assetCompositeModelProperties,")
        append("assetCompositeModelSummaries=$assetCompositeModelSummaries,")
        append("assetCompositeModelType=$assetCompositeModelType,")
        append("assetId=$assetId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = actionDefinitions?.hashCode() ?: 0
        result = 31 * result + (assetCompositeModelDescription.hashCode())
        result = 31 * result + (assetCompositeModelExternalId?.hashCode() ?: 0)
        result = 31 * result + (assetCompositeModelId.hashCode())
        result = 31 * result + (assetCompositeModelName.hashCode())
        result = 31 * result + (assetCompositeModelPath.hashCode())
        result = 31 * result + (assetCompositeModelProperties.hashCode())
        result = 31 * result + (assetCompositeModelSummaries.hashCode())
        result = 31 * result + (assetCompositeModelType.hashCode())
        result = 31 * result + (assetId.hashCode())
        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 DescribeAssetCompositeModelResponse

        if (actionDefinitions != other.actionDefinitions) return false
        if (assetCompositeModelDescription != other.assetCompositeModelDescription) return false
        if (assetCompositeModelExternalId != other.assetCompositeModelExternalId) return false
        if (assetCompositeModelId != other.assetCompositeModelId) return false
        if (assetCompositeModelName != other.assetCompositeModelName) return false
        if (assetCompositeModelPath != other.assetCompositeModelPath) return false
        if (assetCompositeModelProperties != other.assetCompositeModelProperties) return false
        if (assetCompositeModelSummaries != other.assetCompositeModelSummaries) return false
        if (assetCompositeModelType != other.assetCompositeModelType) return false
        if (assetId != other.assetId) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotsitewise.model.DescribeAssetCompositeModelResponse = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The available actions for a composite model on this asset.
         */
        public var actionDefinitions: List? = null
        /**
         * A description for the composite model.
         */
        public var assetCompositeModelDescription: kotlin.String? = null
        /**
         * An external ID to assign to the asset model.
         *
         * If the composite model is a component-based composite model, or one nested inside a component model, you can only set the external ID using `UpdateAssetModelCompositeModel` and specifying the derived ID of the model or property from the created model it's a part of.
         */
        public var assetCompositeModelExternalId: kotlin.String? = null
        /**
         * The ID of a composite model on this asset.
         */
        public var assetCompositeModelId: kotlin.String? = null
        /**
         * The unique, friendly name for the composite model.
         */
        public var assetCompositeModelName: kotlin.String? = null
        /**
         * The path to the composite model listing the parent composite models.
         */
        public var assetCompositeModelPath: List? = null
        /**
         * The property definitions of the composite model that was used to create the asset.
         */
        public var assetCompositeModelProperties: List? = null
        /**
         * The list of composite model summaries.
         */
        public var assetCompositeModelSummaries: List? = null
        /**
         * The composite model type. Valid values are `AWS/ALARM`, `CUSTOM`, or ` AWS/L4E_ANOMALY`.
         */
        public var assetCompositeModelType: kotlin.String? = null
        /**
         * The ID of the asset, in UUID format. This ID uniquely identifies the asset within IoT SiteWise and can be used with other IoT SiteWise APIs.
         */
        public var assetId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotsitewise.model.DescribeAssetCompositeModelResponse) : this() {
            this.actionDefinitions = x.actionDefinitions
            this.assetCompositeModelDescription = x.assetCompositeModelDescription
            this.assetCompositeModelExternalId = x.assetCompositeModelExternalId
            this.assetCompositeModelId = x.assetCompositeModelId
            this.assetCompositeModelName = x.assetCompositeModelName
            this.assetCompositeModelPath = x.assetCompositeModelPath
            this.assetCompositeModelProperties = x.assetCompositeModelProperties
            this.assetCompositeModelSummaries = x.assetCompositeModelSummaries
            this.assetCompositeModelType = x.assetCompositeModelType
            this.assetId = x.assetId
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.iotsitewise.model.DescribeAssetCompositeModelResponse = DescribeAssetCompositeModelResponse(this)

        internal fun correctErrors(): Builder {
            if (assetCompositeModelDescription == null) assetCompositeModelDescription = ""
            if (assetCompositeModelId == null) assetCompositeModelId = ""
            if (assetCompositeModelName == null) assetCompositeModelName = ""
            if (assetCompositeModelPath == null) assetCompositeModelPath = emptyList()
            if (assetCompositeModelProperties == null) assetCompositeModelProperties = emptyList()
            if (assetCompositeModelSummaries == null) assetCompositeModelSummaries = emptyList()
            if (assetCompositeModelType == null) assetCompositeModelType = ""
            if (assetId == null) assetId = ""
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy