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