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

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

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

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



public class CreateSceneRequest private constructor(builder: Builder) {
    /**
     * A list of capabilities that the scene uses to render itself.
     */
    public val capabilities: List? = builder.capabilities
    /**
     * The relative path that specifies the location of the content definition file.
     */
    public val contentLocation: kotlin.String = requireNotNull(builder.contentLocation) { "A non-null value must be provided for contentLocation" }
    /**
     * The description for 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 request metadata.
     */
    public val sceneMetadata: Map? = builder.sceneMetadata
    /**
     * Metadata that you can use to manage the scene.
     */
    public val tags: Map? = builder.tags
    /**
     * 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.CreateSceneRequest = Builder().apply(block).build()
    }

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

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

        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 (tags != other.tags) return false
        if (workspaceId != other.workspaceId) return false

        return true
    }

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

    public class Builder {
        /**
         * A list of capabilities that the scene uses to render itself.
         */
        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 for this scene.
         */
        public var description: kotlin.String? = null
        /**
         * The ID of the scene.
         */
        public var sceneId: kotlin.String? = null
        /**
         * The request metadata.
         */
        public var sceneMetadata: Map? = null
        /**
         * Metadata that you can use to manage the scene.
         */
        public var tags: 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.CreateSceneRequest) : this() {
            this.capabilities = x.capabilities
            this.contentLocation = x.contentLocation
            this.description = x.description
            this.sceneId = x.sceneId
            this.sceneMetadata = x.sceneMetadata
            this.tags = x.tags
            this.workspaceId = x.workspaceId
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy