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

com.pulumi.digitalocean.kotlin.outputs.GetVolumeSnapshotResult.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 getVolumeSnapshot.
 * @property createdAt The date and time the volume snapshot was created.
 * @property id The provider-assigned unique ID for this managed resource.
 * @property minDiskSize The minimum size in gigabytes required for a volume to be created based on this volume snapshot.
 * @property mostRecent
 * @property name
 * @property nameRegex
 * @property region
 * @property regions A list of DigitalOcean region "slugs" indicating where the volume snapshot is available.
 * @property size The billable size of the volume snapshot in gigabytes.
 * @property tags A list of the tags associated to the volume snapshot.
 * @property volumeId The ID of the volume from which the volume snapshot originated.
 */
public data class GetVolumeSnapshotResult(
    public val createdAt: 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 val tags: List,
    public val volumeId: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.GetVolumeSnapshotResult): GetVolumeSnapshotResult = GetVolumeSnapshotResult(
            createdAt = javaType.createdAt(),
            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(),
            tags = javaType.tags().map({ args0 -> args0 }),
            volumeId = javaType.volumeId(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy