
commonMain.aws.sdk.kotlin.services.ssm.model.PutInventoryRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
import aws.smithy.kotlin.runtime.SdkDsl
public class PutInventoryRequest private constructor(builder: Builder) {
/**
* An managed node ID where you want to add or update inventory items.
*/
public val instanceId: kotlin.String? = builder.instanceId
/**
* The inventory items that you want to add or update on managed nodes.
*/
public val items: List? = builder.items
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.PutInventoryRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutInventoryRequest(")
append("instanceId=$instanceId,")
append("items=$items")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = instanceId?.hashCode() ?: 0
result = 31 * result + (items?.hashCode() ?: 0)
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 PutInventoryRequest
if (instanceId != other.instanceId) return false
if (items != other.items) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.PutInventoryRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An managed node ID where you want to add or update inventory items.
*/
public var instanceId: kotlin.String? = null
/**
* The inventory items that you want to add or update on managed nodes.
*/
public var items: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.PutInventoryRequest) : this() {
this.instanceId = x.instanceId
this.items = x.items
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.PutInventoryRequest = PutInventoryRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy