
com.pulumi.azurenative.desktopvirtualization.kotlin.inputs.AgentUpdatePropertiesArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.desktopvirtualization.kotlin.inputs
import com.pulumi.azurenative.desktopvirtualization.inputs.AgentUpdatePropertiesArgs.builder
import com.pulumi.azurenative.desktopvirtualization.kotlin.enums.SessionHostComponentUpdateType
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* The session host configuration for updating agent, monitoring agent, and stack component.
* @property maintenanceWindowTimeZone Time zone for maintenance as defined in https://docs.microsoft.com/en-us/dotnet/api/system.timezoneinfo.findsystemtimezonebyid?view=net-5.0. Must be set if useLocalTime is true.
* @property maintenanceWindows List of maintenance windows. Maintenance windows are 2 hours long.
* @property type The type of maintenance for session host components.
* @property useSessionHostLocalTime Whether to use localTime of the virtual machine.
*/
public data class AgentUpdatePropertiesArgs(
public val maintenanceWindowTimeZone: Output? = null,
public val maintenanceWindows: Output>? = null,
public val type: Output>? = null,
public val useSessionHostLocalTime: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.desktopvirtualization.inputs.AgentUpdatePropertiesArgs =
com.pulumi.azurenative.desktopvirtualization.inputs.AgentUpdatePropertiesArgs.builder()
.maintenanceWindowTimeZone(maintenanceWindowTimeZone?.applyValue({ args0 -> args0 }))
.maintenanceWindows(
maintenanceWindows?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.type(
type?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.useSessionHostLocalTime(useSessionHostLocalTime?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AgentUpdatePropertiesArgs].
*/
@PulumiTagMarker
public class AgentUpdatePropertiesArgsBuilder internal constructor() {
private var maintenanceWindowTimeZone: Output? = null
private var maintenanceWindows: Output>? = null
private var type: Output>? = null
private var useSessionHostLocalTime: Output? = null
/**
* @param value Time zone for maintenance as defined in https://docs.microsoft.com/en-us/dotnet/api/system.timezoneinfo.findsystemtimezonebyid?view=net-5.0. Must be set if useLocalTime is true.
*/
@JvmName("moxjflnijbdhhoeb")
public suspend fun maintenanceWindowTimeZone(`value`: Output) {
this.maintenanceWindowTimeZone = value
}
/**
* @param value List of maintenance windows. Maintenance windows are 2 hours long.
*/
@JvmName("oyqenrybtcuriwrc")
public suspend fun maintenanceWindows(`value`: Output>) {
this.maintenanceWindows = value
}
@JvmName("edhxxiixwfvjydnd")
public suspend fun maintenanceWindows(vararg values: Output) {
this.maintenanceWindows = Output.all(values.asList())
}
/**
* @param values List of maintenance windows. Maintenance windows are 2 hours long.
*/
@JvmName("yiqwkvxhrcaldltj")
public suspend fun maintenanceWindows(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy