
commonMain.aws.sdk.kotlin.services.ssm.model.InventoryDeletionStatusItem.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.time.Instant
/**
* Status information returned by the `DeleteInventory` operation.
*/
public class InventoryDeletionStatusItem private constructor(builder: Builder) {
/**
* The deletion ID returned by the `DeleteInventory` operation.
*/
public val deletionId: kotlin.String? = builder.deletionId
/**
* The UTC timestamp when the delete operation started.
*/
public val deletionStartTime: aws.smithy.kotlin.runtime.time.Instant? = builder.deletionStartTime
/**
* Information about the delete operation. For more information about this summary, see [Understanding the delete inventory summary](https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-inventory-custom.html#sysman-inventory-delete) in the *Amazon Web Services Systems Manager User Guide*.
*/
public val deletionSummary: aws.sdk.kotlin.services.ssm.model.InventoryDeletionSummary? = builder.deletionSummary
/**
* The status of the operation. Possible values are InProgress and Complete.
*/
public val lastStatus: aws.sdk.kotlin.services.ssm.model.InventoryDeletionStatus? = builder.lastStatus
/**
* Information about the status.
*/
public val lastStatusMessage: kotlin.String? = builder.lastStatusMessage
/**
* The UTC timestamp of when the last status report.
*/
public val lastStatusUpdateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastStatusUpdateTime
/**
* The name of the inventory data type.
*/
public val typeName: kotlin.String? = builder.typeName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.InventoryDeletionStatusItem = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InventoryDeletionStatusItem(")
append("deletionId=$deletionId,")
append("deletionStartTime=$deletionStartTime,")
append("deletionSummary=$deletionSummary,")
append("lastStatus=$lastStatus,")
append("lastStatusMessage=$lastStatusMessage,")
append("lastStatusUpdateTime=$lastStatusUpdateTime,")
append("typeName=$typeName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deletionId?.hashCode() ?: 0
result = 31 * result + (deletionStartTime?.hashCode() ?: 0)
result = 31 * result + (deletionSummary?.hashCode() ?: 0)
result = 31 * result + (lastStatus?.hashCode() ?: 0)
result = 31 * result + (lastStatusMessage?.hashCode() ?: 0)
result = 31 * result + (lastStatusUpdateTime?.hashCode() ?: 0)
result = 31 * result + (typeName?.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 InventoryDeletionStatusItem
if (deletionId != other.deletionId) return false
if (deletionStartTime != other.deletionStartTime) return false
if (deletionSummary != other.deletionSummary) return false
if (lastStatus != other.lastStatus) return false
if (lastStatusMessage != other.lastStatusMessage) return false
if (lastStatusUpdateTime != other.lastStatusUpdateTime) return false
if (typeName != other.typeName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.InventoryDeletionStatusItem = Builder(this).apply(block).build()
public class Builder {
/**
* The deletion ID returned by the `DeleteInventory` operation.
*/
public var deletionId: kotlin.String? = null
/**
* The UTC timestamp when the delete operation started.
*/
public var deletionStartTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Information about the delete operation. For more information about this summary, see [Understanding the delete inventory summary](https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-inventory-custom.html#sysman-inventory-delete) in the *Amazon Web Services Systems Manager User Guide*.
*/
public var deletionSummary: aws.sdk.kotlin.services.ssm.model.InventoryDeletionSummary? = null
/**
* The status of the operation. Possible values are InProgress and Complete.
*/
public var lastStatus: aws.sdk.kotlin.services.ssm.model.InventoryDeletionStatus? = null
/**
* Information about the status.
*/
public var lastStatusMessage: kotlin.String? = null
/**
* The UTC timestamp of when the last status report.
*/
public var lastStatusUpdateTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The name of the inventory data type.
*/
public var typeName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.InventoryDeletionStatusItem) : this() {
this.deletionId = x.deletionId
this.deletionStartTime = x.deletionStartTime
this.deletionSummary = x.deletionSummary
this.lastStatus = x.lastStatus
this.lastStatusMessage = x.lastStatusMessage
this.lastStatusUpdateTime = x.lastStatusUpdateTime
this.typeName = x.typeName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.InventoryDeletionStatusItem = InventoryDeletionStatusItem(this)
/**
* construct an [aws.sdk.kotlin.services.ssm.model.InventoryDeletionSummary] inside the given [block]
*/
public fun deletionSummary(block: aws.sdk.kotlin.services.ssm.model.InventoryDeletionSummary.Builder.() -> kotlin.Unit) {
this.deletionSummary = aws.sdk.kotlin.services.ssm.model.InventoryDeletionSummary.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy