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