![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.migrate.kotlin.inputs.VmUptimeArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.migrate.kotlin.inputs
import com.pulumi.azurenative.migrate.inputs.VmUptimeArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Details on the total up-time for the VM.
* @property daysPerMonth Number of days in a month for VM uptime.
* @property hoursPerDay Number of hours per day for VM uptime.
*/
public data class VmUptimeArgs(
public val daysPerMonth: Output? = null,
public val hoursPerDay: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.migrate.inputs.VmUptimeArgs =
com.pulumi.azurenative.migrate.inputs.VmUptimeArgs.builder()
.daysPerMonth(daysPerMonth?.applyValue({ args0 -> args0 }))
.hoursPerDay(hoursPerDay?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [VmUptimeArgs].
*/
@PulumiTagMarker
public class VmUptimeArgsBuilder internal constructor() {
private var daysPerMonth: Output? = null
private var hoursPerDay: Output? = null
/**
* @param value Number of days in a month for VM uptime.
*/
@JvmName("bdkaobocrtdynfvg")
public suspend fun daysPerMonth(`value`: Output) {
this.daysPerMonth = value
}
/**
* @param value Number of hours per day for VM uptime.
*/
@JvmName("elqafirbhybkjfks")
public suspend fun hoursPerDay(`value`: Output) {
this.hoursPerDay = value
}
/**
* @param value Number of days in a month for VM uptime.
*/
@JvmName("fwtdhsylpldkjkrp")
public suspend fun daysPerMonth(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.daysPerMonth = mapped
}
/**
* @param value Number of hours per day for VM uptime.
*/
@JvmName("hsartjoebmfrylni")
public suspend fun hoursPerDay(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.hoursPerDay = mapped
}
internal fun build(): VmUptimeArgs = VmUptimeArgs(
daysPerMonth = daysPerMonth,
hoursPerDay = hoursPerDay,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy