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

commonMain.aws.sdk.kotlin.services.iottwinmaker.model.UpdateSceneRequest.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.iottwinmaker.model



public class UpdateSceneRequest private constructor(builder: Builder) {
    /**
     * A list of capabilities that the scene uses to render.
     */
    public val capabilities: List? = builder.capabilities
    /**
     * The relative path that specifies the location of the content definition file.
     */
    public val contentLocation: kotlin.String? = builder.contentLocation
    /**
     * The description of this scene.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The ID of the scene.
     */
    public val sceneId: kotlin.String = requireNotNull(builder.sceneId) { "A non-null value must be provided for sceneId" }
    /**
     * The scene metadata.
     */
    public val sceneMetadata: Map? = builder.sceneMetadata
    /**
     * The ID of the workspace that contains the scene.
     */
    public val workspaceId: kotlin.String = requireNotNull(builder.workspaceId) { "A non-null value must be provided for workspaceId" }

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateSceneRequest(")
        append("capabilities=$capabilities,")
        append("contentLocation=$contentLocation,")
        append("description=$description,")
        append("sceneId=$sceneId,")
        append("sceneMetadata=$sceneMetadata,")
        append("workspaceId=$workspaceId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = capabilities?.hashCode() ?: 0
        result = 31 * result + (contentLocation?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (sceneId.hashCode())
        result = 31 * result + (sceneMetadata?.hashCode() ?: 0)
        result = 31 * result + (workspaceId.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 UpdateSceneRequest

        if (capabilities != other.capabilities) return false
        if (contentLocation != other.contentLocation) return false
        if (description != other.description) return false
        if (sceneId != other.sceneId) return false
        if (sceneMetadata != other.sceneMetadata) return false
        if (workspaceId != other.workspaceId) return false

        return true
    }

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

    public class Builder {
        /**
         * A list of capabilities that the scene uses to render.
         */
        public var capabilities: List? = null
        /**
         * The relative path that specifies the location of the content definition file.
         */
        public var contentLocation: kotlin.String? = null
        /**
         * The description of this scene.
         */
        public var description: kotlin.String? = null
        /**
         * The ID of the scene.
         */
        public var sceneId: kotlin.String? = null
        /**
         * The scene metadata.
         */
        public var sceneMetadata: Map? = null
        /**
         * The ID of the workspace that contains the scene.
         */
        public var workspaceId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iottwinmaker.model.UpdateSceneRequest) : this() {
            this.capabilities = x.capabilities
            this.contentLocation = x.contentLocation
            this.description = x.description
            this.sceneId = x.sceneId
            this.sceneMetadata = x.sceneMetadata
            this.workspaceId = x.workspaceId
        }

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

        internal fun correctErrors(): Builder {
            if (sceneId == null) sceneId = ""
            if (workspaceId == null) workspaceId = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy