commonMain.aws.sdk.kotlin.services.fsx.model.RestoreVolumeFromSnapshotResponse.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 RestoreVolumeFromSnapshotResponse private constructor(builder: Builder) {
/**
* A list of administrative actions for the file system that are in process or waiting to be processed. Administrative actions describe changes to the Amazon FSx system.
*/
public val administrativeActions: List? = builder.administrativeActions
/**
* The lifecycle state of the volume being restored.
*/
public val lifecycle: aws.sdk.kotlin.services.fsx.model.VolumeLifecycle? = builder.lifecycle
/**
* The ID of the volume that you restored.
*/
public val volumeId: kotlin.String? = builder.volumeId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fsx.model.RestoreVolumeFromSnapshotResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RestoreVolumeFromSnapshotResponse(")
append("administrativeActions=$administrativeActions,")
append("lifecycle=$lifecycle,")
append("volumeId=$volumeId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = administrativeActions?.hashCode() ?: 0
result = 31 * result + (lifecycle?.hashCode() ?: 0)
result = 31 * result + (volumeId?.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 RestoreVolumeFromSnapshotResponse
if (administrativeActions != other.administrativeActions) return false
if (lifecycle != other.lifecycle) return false
if (volumeId != other.volumeId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fsx.model.RestoreVolumeFromSnapshotResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list of administrative actions for the file system that are in process or waiting to be processed. Administrative actions describe changes to the Amazon FSx system.
*/
public var administrativeActions: List? = null
/**
* The lifecycle state of the volume being restored.
*/
public var lifecycle: aws.sdk.kotlin.services.fsx.model.VolumeLifecycle? = null
/**
* The ID of the volume that you restored.
*/
public var volumeId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fsx.model.RestoreVolumeFromSnapshotResponse) : this() {
this.administrativeActions = x.administrativeActions
this.lifecycle = x.lifecycle
this.volumeId = x.volumeId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fsx.model.RestoreVolumeFromSnapshotResponse = RestoreVolumeFromSnapshotResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}