
commonMain.aws.sdk.kotlin.services.iot.model.PutItemInput.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
/**
* The input for the DynamoActionVS action that specifies the DynamoDB table to which the message data will be written.
*/
public class PutItemInput private constructor(builder: Builder) {
/**
* The table where the message data will be written.
*/
public val tableName: kotlin.String = requireNotNull(builder.tableName) { "A non-null value must be provided for tableName" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.PutItemInput = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutItemInput(")
append("tableName=$tableName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = tableName.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 PutItemInput
if (tableName != other.tableName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.PutItemInput = Builder(this).apply(block).build()
public class Builder {
/**
* The table where the message data will be written.
*/
public var tableName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.PutItemInput) : this() {
this.tableName = x.tableName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.PutItemInput = PutItemInput(this)
internal fun correctErrors(): Builder {
if (tableName == null) tableName = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy