All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.fsx.model.CopySnapshotAndUpdateVolumeResponse.kt Maven / Gradle / Ivy

There is a newer version: 1.3.34
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.fsx.model

import aws.smithy.kotlin.runtime.SdkDsl

public class CopySnapshotAndUpdateVolumeResponse 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 destination volume.
     */
    public val lifecycle: aws.sdk.kotlin.services.fsx.model.VolumeLifecycle? = builder.lifecycle
    /**
     * The ID of the volume that you copied the snapshot to.
     */
    public val volumeId: kotlin.String? = builder.volumeId

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fsx.model.CopySnapshotAndUpdateVolumeResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CopySnapshotAndUpdateVolumeResponse(")
        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 CopySnapshotAndUpdateVolumeResponse

        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.CopySnapshotAndUpdateVolumeResponse = 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 destination volume.
         */
        public var lifecycle: aws.sdk.kotlin.services.fsx.model.VolumeLifecycle? = null
        /**
         * The ID of the volume that you copied the snapshot to.
         */
        public var volumeId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.fsx.model.CopySnapshotAndUpdateVolumeResponse) : this() {
            this.administrativeActions = x.administrativeActions
            this.lifecycle = x.lifecycle
            this.volumeId = x.volumeId
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.fsx.model.CopySnapshotAndUpdateVolumeResponse = CopySnapshotAndUpdateVolumeResponse(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy