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

com.pulumi.digitalocean.kotlin.outputs.GetDropletSnapshotResult.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.digitalocean.kotlin.outputs

import kotlin.Boolean
import kotlin.Double
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * A collection of values returned by getDropletSnapshot.
 * @property createdAt The date and time the Droplet snapshot was created.
 * @property dropletId The ID of the Droplet from which the Droplet snapshot originated.
 * @property id The provider-assigned unique ID for this managed resource.
 * @property minDiskSize The minimum size in gigabytes required for a Droplet to be created based on this Droplet snapshot.
 * @property mostRecent
 * @property name
 * @property nameRegex
 * @property region
 * @property regions A list of DigitalOcean region "slugs" indicating where the Droplet snapshot is available.
 * @property size The billable size of the Droplet snapshot in gigabytes.
 */
public data class GetDropletSnapshotResult(
    public val createdAt: String,
    public val dropletId: String,
    public val id: String,
    public val minDiskSize: Int,
    public val mostRecent: Boolean? = null,
    public val name: String? = null,
    public val nameRegex: String? = null,
    public val region: String? = null,
    public val regions: List,
    public val size: Double,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.GetDropletSnapshotResult): GetDropletSnapshotResult = GetDropletSnapshotResult(
            createdAt = javaType.createdAt(),
            dropletId = javaType.dropletId(),
            id = javaType.id(),
            minDiskSize = javaType.minDiskSize(),
            mostRecent = javaType.mostRecent().map({ args0 -> args0 }).orElse(null),
            name = javaType.name().map({ args0 -> args0 }).orElse(null),
            nameRegex = javaType.nameRegex().map({ args0 -> args0 }).orElse(null),
            region = javaType.region().map({ args0 -> args0 }).orElse(null),
            regions = javaType.regions().map({ args0 -> args0 }),
            size = javaType.size(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy