
commonMain.aws.sdk.kotlin.services.iottwinmaker.model.GetSceneResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iottwinmaker.model
import aws.smithy.kotlin.runtime.time.Instant
public class GetSceneResponse private constructor(builder: Builder) {
/**
* The ARN of the scene.
*/
public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
/**
* 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 = requireNotNull(builder.contentLocation) { "A non-null value must be provided for contentLocation" }
/**
* The date and time when the scene was created.
*/
public val creationDateTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.creationDateTime) { "A non-null value must be provided for creationDateTime" }
/**
* The description of the scene.
*/
public val description: kotlin.String? = builder.description
/**
* The SceneResponse error.
*/
public val error: aws.sdk.kotlin.services.iottwinmaker.model.SceneError? = builder.error
/**
* The generated scene metadata.
*/
public val generatedSceneMetadata: Map? = builder.generatedSceneMetadata
/**
* The ID of the scene.
*/
public val sceneId: kotlin.String = requireNotNull(builder.sceneId) { "A non-null value must be provided for sceneId" }
/**
* The response metadata.
*/
public val sceneMetadata: Map? = builder.sceneMetadata
/**
* The date and time when the scene was last updated.
*/
public val updateDateTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.updateDateTime) { "A non-null value must be provided for updateDateTime" }
/**
* 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.GetSceneResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetSceneResponse(")
append("arn=$arn,")
append("capabilities=$capabilities,")
append("contentLocation=$contentLocation,")
append("creationDateTime=$creationDateTime,")
append("description=$description,")
append("error=$error,")
append("generatedSceneMetadata=$generatedSceneMetadata,")
append("sceneId=$sceneId,")
append("sceneMetadata=$sceneMetadata,")
append("updateDateTime=$updateDateTime,")
append("workspaceId=$workspaceId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn.hashCode()
result = 31 * result + (capabilities?.hashCode() ?: 0)
result = 31 * result + (contentLocation.hashCode())
result = 31 * result + (creationDateTime.hashCode())
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (error?.hashCode() ?: 0)
result = 31 * result + (generatedSceneMetadata?.hashCode() ?: 0)
result = 31 * result + (sceneId.hashCode())
result = 31 * result + (sceneMetadata?.hashCode() ?: 0)
result = 31 * result + (updateDateTime.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 GetSceneResponse
if (arn != other.arn) return false
if (capabilities != other.capabilities) return false
if (contentLocation != other.contentLocation) return false
if (creationDateTime != other.creationDateTime) return false
if (description != other.description) return false
if (error != other.error) return false
if (generatedSceneMetadata != other.generatedSceneMetadata) return false
if (sceneId != other.sceneId) return false
if (sceneMetadata != other.sceneMetadata) return false
if (updateDateTime != other.updateDateTime) return false
if (workspaceId != other.workspaceId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iottwinmaker.model.GetSceneResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The ARN of the scene.
*/
public var arn: kotlin.String? = null
/**
* 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 date and time when the scene was created.
*/
public var creationDateTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The description of the scene.
*/
public var description: kotlin.String? = null
/**
* The SceneResponse error.
*/
public var error: aws.sdk.kotlin.services.iottwinmaker.model.SceneError? = null
/**
* The generated scene metadata.
*/
public var generatedSceneMetadata: Map? = null
/**
* The ID of the scene.
*/
public var sceneId: kotlin.String? = null
/**
* The response metadata.
*/
public var sceneMetadata: Map? = null
/**
* The date and time when the scene was last updated.
*/
public var updateDateTime: aws.smithy.kotlin.runtime.time.Instant? = 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.GetSceneResponse) : this() {
this.arn = x.arn
this.capabilities = x.capabilities
this.contentLocation = x.contentLocation
this.creationDateTime = x.creationDateTime
this.description = x.description
this.error = x.error
this.generatedSceneMetadata = x.generatedSceneMetadata
this.sceneId = x.sceneId
this.sceneMetadata = x.sceneMetadata
this.updateDateTime = x.updateDateTime
this.workspaceId = x.workspaceId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iottwinmaker.model.GetSceneResponse = GetSceneResponse(this)
/**
* construct an [aws.sdk.kotlin.services.iottwinmaker.model.SceneError] inside the given [block]
*/
public fun error(block: aws.sdk.kotlin.services.iottwinmaker.model.SceneError.Builder.() -> kotlin.Unit) {
this.error = aws.sdk.kotlin.services.iottwinmaker.model.SceneError.invoke(block)
}
internal fun correctErrors(): Builder {
if (arn == null) arn = ""
if (contentLocation == null) contentLocation = ""
if (creationDateTime == null) creationDateTime = Instant.fromEpochSeconds(0)
if (sceneId == null) sceneId = ""
if (updateDateTime == null) updateDateTime = Instant.fromEpochSeconds(0)
if (workspaceId == null) workspaceId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy