commonMain.aws.sdk.kotlin.services.fsx.model.DeleteFileCacheResponse.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 DeleteFileCacheResponse private constructor(builder: Builder) {
/**
* The ID of the cache that's being deleted.
*/
public val fileCacheId: kotlin.String? = builder.fileCacheId
/**
* The cache lifecycle for the deletion request. If the `DeleteFileCache` operation is successful, this status is `DELETING`.
*/
public val lifecycle: aws.sdk.kotlin.services.fsx.model.FileCacheLifecycle? = builder.lifecycle
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fsx.model.DeleteFileCacheResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteFileCacheResponse(")
append("fileCacheId=$fileCacheId,")
append("lifecycle=$lifecycle")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = fileCacheId?.hashCode() ?: 0
result = 31 * result + (lifecycle?.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 DeleteFileCacheResponse
if (fileCacheId != other.fileCacheId) return false
if (lifecycle != other.lifecycle) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fsx.model.DeleteFileCacheResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the cache that's being deleted.
*/
public var fileCacheId: kotlin.String? = null
/**
* The cache lifecycle for the deletion request. If the `DeleteFileCache` operation is successful, this status is `DELETING`.
*/
public var lifecycle: aws.sdk.kotlin.services.fsx.model.FileCacheLifecycle? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fsx.model.DeleteFileCacheResponse) : this() {
this.fileCacheId = x.fileCacheId
this.lifecycle = x.lifecycle
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fsx.model.DeleteFileCacheResponse = DeleteFileCacheResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}