
commonMain.aws.sdk.kotlin.services.iottwinmaker.model.GetSceneRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iottwinmaker.model
public class GetSceneRequest private constructor(builder: Builder) {
/**
* The ID of the scene.
*/
public val sceneId: kotlin.String = requireNotNull(builder.sceneId) { "A non-null value must be provided for sceneId" }
/**
* 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.GetSceneRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetSceneRequest(")
append("sceneId=$sceneId,")
append("workspaceId=$workspaceId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = sceneId.hashCode()
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 GetSceneRequest
if (sceneId != other.sceneId) return false
if (workspaceId != other.workspaceId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iottwinmaker.model.GetSceneRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of the scene.
*/
public var sceneId: kotlin.String? = 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.GetSceneRequest) : this() {
this.sceneId = x.sceneId
this.workspaceId = x.workspaceId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iottwinmaker.model.GetSceneRequest = GetSceneRequest(this)
internal fun correctErrors(): Builder {
if (sceneId == null) sceneId = ""
if (workspaceId == null) workspaceId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy