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

com.pulumi.gcp.compute.kotlin.outputs.RegionInstanceTemplateSchedulingMaxRunDuration.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.outputs

import kotlin.Int
import kotlin.Suppress

/**
 *
 * @property nanos Span of time that's a fraction of a second at nanosecond
 * resolution. Durations less than one second are represented with a 0
 * `seconds` field and a positive `nanos` field. Must be from 0 to
 * 999,999,999 inclusive.
 * @property seconds Span of time at a resolution of a second. Must be from 0 to
 * 315,576,000,000 inclusive. Note: these bounds are computed from: 60
 * sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years.
 */
public data class RegionInstanceTemplateSchedulingMaxRunDuration(
    public val nanos: Int? = null,
    public val seconds: Int,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.RegionInstanceTemplateSchedulingMaxRunDuration): RegionInstanceTemplateSchedulingMaxRunDuration =
            RegionInstanceTemplateSchedulingMaxRunDuration(
                nanos = javaType.nanos().map({ args0 -> args0 }).orElse(null),
                seconds = javaType.seconds(),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy