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