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

commonMain.aws.sdk.kotlin.services.lightsail.model.GetAutoSnapshotsResponse.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.lightsail.model



public class GetAutoSnapshotsResponse private constructor(builder: Builder) {
    /**
     * An array of objects that describe the automatic snapshots that are available for the specified source instance or disk.
     */
    public val autoSnapshots: List? = builder.autoSnapshots
    /**
     * The name of the source instance or disk for the automatic snapshots.
     */
    public val resourceName: kotlin.String? = builder.resourceName
    /**
     * The resource type (e.g., `Instance` or `Disk`).
     */
    public val resourceType: aws.sdk.kotlin.services.lightsail.model.ResourceType? = builder.resourceType

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

    override fun toString(): kotlin.String = buildString {
        append("GetAutoSnapshotsResponse(")
        append("autoSnapshots=$autoSnapshots,")
        append("resourceName=$resourceName,")
        append("resourceType=$resourceType)")
    }

    override fun hashCode(): kotlin.Int {
        var result = autoSnapshots?.hashCode() ?: 0
        result = 31 * result + (resourceName?.hashCode() ?: 0)
        result = 31 * result + (resourceType?.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 GetAutoSnapshotsResponse

        if (autoSnapshots != other.autoSnapshots) return false
        if (resourceName != other.resourceName) return false
        if (resourceType != other.resourceType) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lightsail.model.GetAutoSnapshotsResponse = Builder(this).apply(block).build()

    public class Builder {
        /**
         * An array of objects that describe the automatic snapshots that are available for the specified source instance or disk.
         */
        public var autoSnapshots: List? = null
        /**
         * The name of the source instance or disk for the automatic snapshots.
         */
        public var resourceName: kotlin.String? = null
        /**
         * The resource type (e.g., `Instance` or `Disk`).
         */
        public var resourceType: aws.sdk.kotlin.services.lightsail.model.ResourceType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lightsail.model.GetAutoSnapshotsResponse) : this() {
            this.autoSnapshots = x.autoSnapshots
            this.resourceName = x.resourceName
            this.resourceType = x.resourceType
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.lightsail.model.GetAutoSnapshotsResponse = GetAutoSnapshotsResponse(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy