commonMain.aws.sdk.kotlin.services.fsx.model.DeleteSnapshotResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fsx-jvm Show documentation
Show all versions of fsx-jvm Show documentation
The AWS SDK for Kotlin client for FSx
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fsx.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DeleteSnapshotResponse private constructor(builder: Builder) {
/**
* The lifecycle status of the snapshot. If the `DeleteSnapshot` operation is successful, this status is `DELETING`.
*/
public val lifecycle: aws.sdk.kotlin.services.fsx.model.SnapshotLifecycle? = builder.lifecycle
/**
* The ID of the deleted snapshot.
*/
public val snapshotId: kotlin.String? = builder.snapshotId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fsx.model.DeleteSnapshotResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteSnapshotResponse(")
append("lifecycle=$lifecycle,")
append("snapshotId=$snapshotId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = lifecycle?.hashCode() ?: 0
result = 31 * result + (snapshotId?.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 DeleteSnapshotResponse
if (lifecycle != other.lifecycle) return false
if (snapshotId != other.snapshotId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fsx.model.DeleteSnapshotResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The lifecycle status of the snapshot. If the `DeleteSnapshot` operation is successful, this status is `DELETING`.
*/
public var lifecycle: aws.sdk.kotlin.services.fsx.model.SnapshotLifecycle? = null
/**
* The ID of the deleted snapshot.
*/
public var snapshotId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fsx.model.DeleteSnapshotResponse) : this() {
this.lifecycle = x.lifecycle
this.snapshotId = x.snapshotId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fsx.model.DeleteSnapshotResponse = DeleteSnapshotResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}