commonMain.aws.sdk.kotlin.services.fsx.model.DeleteBackupResponse.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
/**
* The response object for the `DeleteBackup` operation.
*/
public class DeleteBackupResponse private constructor(builder: Builder) {
/**
* The ID of the backup that was deleted.
*/
public val backupId: kotlin.String? = builder.backupId
/**
* The lifecycle status of the backup. If the `DeleteBackup` operation is successful, the status is `DELETED`.
*/
public val lifecycle: aws.sdk.kotlin.services.fsx.model.BackupLifecycle? = builder.lifecycle
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fsx.model.DeleteBackupResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteBackupResponse(")
append("backupId=$backupId,")
append("lifecycle=$lifecycle")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = backupId?.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 DeleteBackupResponse
if (backupId != other.backupId) return false
if (lifecycle != other.lifecycle) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fsx.model.DeleteBackupResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the backup that was deleted.
*/
public var backupId: kotlin.String? = null
/**
* The lifecycle status of the backup. If the `DeleteBackup` operation is successful, the status is `DELETED`.
*/
public var lifecycle: aws.sdk.kotlin.services.fsx.model.BackupLifecycle? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fsx.model.DeleteBackupResponse) : this() {
this.backupId = x.backupId
this.lifecycle = x.lifecycle
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fsx.model.DeleteBackupResponse = DeleteBackupResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}