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

com.pulumi.azurenative.desktopvirtualization.kotlin.ScalingPlanPooledScheduleArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.desktopvirtualization.kotlin

import com.pulumi.azurenative.desktopvirtualization.ScalingPlanPooledScheduleArgs.builder
import com.pulumi.azurenative.desktopvirtualization.kotlin.enums.DayOfWeek
import com.pulumi.azurenative.desktopvirtualization.kotlin.enums.SessionHostLoadBalancingAlgorithm
import com.pulumi.azurenative.desktopvirtualization.kotlin.enums.StopHostsWhen
import com.pulumi.azurenative.desktopvirtualization.kotlin.inputs.TimeArgs
import com.pulumi.azurenative.desktopvirtualization.kotlin.inputs.TimeArgsBuilder
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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Represents a ScalingPlanPooledSchedule definition.
 * Azure REST API version: 2022-09-09. Prior API version in Azure Native 1.x: 2022-04-01-preview.
 * Other available API versions: 2022-10-14-preview, 2023-07-07-preview, 2023-09-05, 2023-10-04-preview, 2023-11-01-preview, 2024-01-16-preview, 2024-03-06-preview, 2024-04-03, 2024-04-08-preview.
 * ## Example Usage
 * ### ScalingPlanPooledSchedules_Create
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var scalingPlanPooledSchedule = new AzureNative.DesktopVirtualization.ScalingPlanPooledSchedule("scalingPlanPooledSchedule", new()
 *     {
 *         DaysOfWeek = new[]
 *         {
 *             AzureNative.DesktopVirtualization.DayOfWeek.Monday,
 *             AzureNative.DesktopVirtualization.DayOfWeek.Tuesday,
 *             AzureNative.DesktopVirtualization.DayOfWeek.Wednesday,
 *             AzureNative.DesktopVirtualization.DayOfWeek.Thursday,
 *             AzureNative.DesktopVirtualization.DayOfWeek.Friday,
 *         },
 *         OffPeakLoadBalancingAlgorithm = AzureNative.DesktopVirtualization.SessionHostLoadBalancingAlgorithm.DepthFirst,
 *         OffPeakStartTime = new AzureNative.DesktopVirtualization.Inputs.TimeArgs
 *         {
 *             Hour = 20,
 *             Minute = 0,
 *         },
 *         PeakLoadBalancingAlgorithm = AzureNative.DesktopVirtualization.SessionHostLoadBalancingAlgorithm.BreadthFirst,
 *         PeakStartTime = new AzureNative.DesktopVirtualization.Inputs.TimeArgs
 *         {
 *             Hour = 8,
 *             Minute = 0,
 *         },
 *         RampDownCapacityThresholdPct = 50,
 *         RampDownForceLogoffUsers = true,
 *         RampDownLoadBalancingAlgorithm = AzureNative.DesktopVirtualization.SessionHostLoadBalancingAlgorithm.DepthFirst,
 *         RampDownMinimumHostsPct = 20,
 *         RampDownNotificationMessage = "message",
 *         RampDownStartTime = new AzureNative.DesktopVirtualization.Inputs.TimeArgs
 *         {
 *             Hour = 18,
 *             Minute = 0,
 *         },
 *         RampDownWaitTimeMinutes = 30,
 *         RampUpCapacityThresholdPct = 80,
 *         RampUpLoadBalancingAlgorithm = AzureNative.DesktopVirtualization.SessionHostLoadBalancingAlgorithm.DepthFirst,
 *         RampUpMinimumHostsPct = 20,
 *         RampUpStartTime = new AzureNative.DesktopVirtualization.Inputs.TimeArgs
 *         {
 *             Hour = 6,
 *             Minute = 0,
 *         },
 *         ResourceGroupName = "resourceGroup1",
 *         ScalingPlanName = "scalingPlan1",
 *         ScalingPlanScheduleName = "scalingPlanScheduleWeekdays1",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	desktopvirtualization "github.com/pulumi/pulumi-azure-native-sdk/desktopvirtualization/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := desktopvirtualization.NewScalingPlanPooledSchedule(ctx, "scalingPlanPooledSchedule", &desktopvirtualization.ScalingPlanPooledScheduleArgs{
 * 			DaysOfWeek: pulumi.StringArray{
 * 				pulumi.String(desktopvirtualization.DayOfWeekMonday),
 * 				pulumi.String(desktopvirtualization.DayOfWeekTuesday),
 * 				pulumi.String(desktopvirtualization.DayOfWeekWednesday),
 * 				pulumi.String(desktopvirtualization.DayOfWeekThursday),
 * 				pulumi.String(desktopvirtualization.DayOfWeekFriday),
 * 			},
 * 			OffPeakLoadBalancingAlgorithm: pulumi.String(desktopvirtualization.SessionHostLoadBalancingAlgorithmDepthFirst),
 * 			OffPeakStartTime: &desktopvirtualization.TimeArgs{
 * 				Hour:   pulumi.Int(20),
 * 				Minute: pulumi.Int(0),
 * 			},
 * 			PeakLoadBalancingAlgorithm: pulumi.String(desktopvirtualization.SessionHostLoadBalancingAlgorithmBreadthFirst),
 * 			PeakStartTime: &desktopvirtualization.TimeArgs{
 * 				Hour:   pulumi.Int(8),
 * 				Minute: pulumi.Int(0),
 * 			},
 * 			RampDownCapacityThresholdPct:   pulumi.Int(50),
 * 			RampDownForceLogoffUsers:       pulumi.Bool(true),
 * 			RampDownLoadBalancingAlgorithm: pulumi.String(desktopvirtualization.SessionHostLoadBalancingAlgorithmDepthFirst),
 * 			RampDownMinimumHostsPct:        pulumi.Int(20),
 * 			RampDownNotificationMessage:    pulumi.String("message"),
 * 			RampDownStartTime: &desktopvirtualization.TimeArgs{
 * 				Hour:   pulumi.Int(18),
 * 				Minute: pulumi.Int(0),
 * 			},
 * 			RampDownWaitTimeMinutes:      pulumi.Int(30),
 * 			RampUpCapacityThresholdPct:   pulumi.Int(80),
 * 			RampUpLoadBalancingAlgorithm: pulumi.String(desktopvirtualization.SessionHostLoadBalancingAlgorithmDepthFirst),
 * 			RampUpMinimumHostsPct:        pulumi.Int(20),
 * 			RampUpStartTime: &desktopvirtualization.TimeArgs{
 * 				Hour:   pulumi.Int(6),
 * 				Minute: pulumi.Int(0),
 * 			},
 * 			ResourceGroupName:       pulumi.String("resourceGroup1"),
 * 			ScalingPlanName:         pulumi.String("scalingPlan1"),
 * 			ScalingPlanScheduleName: pulumi.String("scalingPlanScheduleWeekdays1"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.desktopvirtualization.ScalingPlanPooledSchedule;
 * import com.pulumi.azurenative.desktopvirtualization.ScalingPlanPooledScheduleArgs;
 * import com.pulumi.azurenative.desktopvirtualization.inputs.TimeArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var scalingPlanPooledSchedule = new ScalingPlanPooledSchedule("scalingPlanPooledSchedule", ScalingPlanPooledScheduleArgs.builder()
 *             .daysOfWeek(
 *                 "Monday",
 *                 "Tuesday",
 *                 "Wednesday",
 *                 "Thursday",
 *                 "Friday")
 *             .offPeakLoadBalancingAlgorithm("DepthFirst")
 *             .offPeakStartTime(TimeArgs.builder()
 *                 .hour(20)
 *                 .minute(0)
 *                 .build())
 *             .peakLoadBalancingAlgorithm("BreadthFirst")
 *             .peakStartTime(TimeArgs.builder()
 *                 .hour(8)
 *                 .minute(0)
 *                 .build())
 *             .rampDownCapacityThresholdPct(50)
 *             .rampDownForceLogoffUsers(true)
 *             .rampDownLoadBalancingAlgorithm("DepthFirst")
 *             .rampDownMinimumHostsPct(20)
 *             .rampDownNotificationMessage("message")
 *             .rampDownStartTime(TimeArgs.builder()
 *                 .hour(18)
 *                 .minute(0)
 *                 .build())
 *             .rampDownWaitTimeMinutes(30)
 *             .rampUpCapacityThresholdPct(80)
 *             .rampUpLoadBalancingAlgorithm("DepthFirst")
 *             .rampUpMinimumHostsPct(20)
 *             .rampUpStartTime(TimeArgs.builder()
 *                 .hour(6)
 *                 .minute(0)
 *                 .build())
 *             .resourceGroupName("resourceGroup1")
 *             .scalingPlanName("scalingPlan1")
 *             .scalingPlanScheduleName("scalingPlanScheduleWeekdays1")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:desktopvirtualization:ScalingPlanPooledSchedule scalingPlanScheduleWeekdays1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}
 * ```
 * @property daysOfWeek Set of days of the week on which this schedule is active.
 * @property offPeakLoadBalancingAlgorithm Load balancing algorithm for off-peak period.
 * @property offPeakStartTime Starting time for off-peak period.
 * @property peakLoadBalancingAlgorithm Load balancing algorithm for peak period.
 * @property peakStartTime Starting time for peak period.
 * @property rampDownCapacityThresholdPct Capacity threshold for ramp down period.
 * @property rampDownForceLogoffUsers Should users be logged off forcefully from hosts.
 * @property rampDownLoadBalancingAlgorithm Load balancing algorithm for ramp down period.
 * @property rampDownMinimumHostsPct Minimum host percentage for ramp down period.
 * @property rampDownNotificationMessage Notification message for users during ramp down period.
 * @property rampDownStartTime Starting time for ramp down period.
 * @property rampDownStopHostsWhen Specifies when to stop hosts during ramp down period.
 * @property rampDownWaitTimeMinutes Number of minutes to wait to stop hosts during ramp down period.
 * @property rampUpCapacityThresholdPct Capacity threshold for ramp up period.
 * @property rampUpLoadBalancingAlgorithm Load balancing algorithm for ramp up period.
 * @property rampUpMinimumHostsPct Minimum host percentage for ramp up period.
 * @property rampUpStartTime Starting time for ramp up period.
 * @property resourceGroupName The name of the resource group. The name is case insensitive.
 * @property scalingPlanName The name of the scaling plan.
 * @property scalingPlanScheduleName The name of the ScalingPlanSchedule
 */
public data class ScalingPlanPooledScheduleArgs(
    public val daysOfWeek: Output>>? = null,
    public val offPeakLoadBalancingAlgorithm: Output>? = null,
    public val offPeakStartTime: Output? = null,
    public val peakLoadBalancingAlgorithm: Output>? =
        null,
    public val peakStartTime: Output? = null,
    public val rampDownCapacityThresholdPct: Output? = null,
    public val rampDownForceLogoffUsers: Output? = null,
    public val rampDownLoadBalancingAlgorithm: Output>? = null,
    public val rampDownMinimumHostsPct: Output? = null,
    public val rampDownNotificationMessage: Output? = null,
    public val rampDownStartTime: Output? = null,
    public val rampDownStopHostsWhen: Output>? = null,
    public val rampDownWaitTimeMinutes: Output? = null,
    public val rampUpCapacityThresholdPct: Output? = null,
    public val rampUpLoadBalancingAlgorithm: Output>? = null,
    public val rampUpMinimumHostsPct: Output? = null,
    public val rampUpStartTime: Output? = null,
    public val resourceGroupName: Output? = null,
    public val scalingPlanName: Output? = null,
    public val scalingPlanScheduleName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.desktopvirtualization.ScalingPlanPooledScheduleArgs = com.pulumi.azurenative.desktopvirtualization.ScalingPlanPooledScheduleArgs.builder()
        .daysOfWeek(
            daysOfWeek?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                })
            }),
        )
        .offPeakLoadBalancingAlgorithm(
            offPeakLoadBalancingAlgorithm?.applyValue({ args0 ->
                args0.transform({ args0 -> args0 }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
            }),
        )
        .offPeakStartTime(offPeakStartTime?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .peakLoadBalancingAlgorithm(
            peakLoadBalancingAlgorithm?.applyValue({ args0 ->
                args0.transform({ args0 -> args0 }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
            }),
        )
        .peakStartTime(peakStartTime?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .rampDownCapacityThresholdPct(rampDownCapacityThresholdPct?.applyValue({ args0 -> args0 }))
        .rampDownForceLogoffUsers(rampDownForceLogoffUsers?.applyValue({ args0 -> args0 }))
        .rampDownLoadBalancingAlgorithm(
            rampDownLoadBalancingAlgorithm?.applyValue({ args0 ->
                args0.transform({ args0 -> args0 }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
            }),
        )
        .rampDownMinimumHostsPct(rampDownMinimumHostsPct?.applyValue({ args0 -> args0 }))
        .rampDownNotificationMessage(rampDownNotificationMessage?.applyValue({ args0 -> args0 }))
        .rampDownStartTime(rampDownStartTime?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .rampDownStopHostsWhen(
            rampDownStopHostsWhen?.applyValue({ args0 ->
                args0.transform({ args0 ->
                    args0
                }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
            }),
        )
        .rampDownWaitTimeMinutes(rampDownWaitTimeMinutes?.applyValue({ args0 -> args0 }))
        .rampUpCapacityThresholdPct(rampUpCapacityThresholdPct?.applyValue({ args0 -> args0 }))
        .rampUpLoadBalancingAlgorithm(
            rampUpLoadBalancingAlgorithm?.applyValue({ args0 ->
                args0.transform({ args0 -> args0 }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
            }),
        )
        .rampUpMinimumHostsPct(rampUpMinimumHostsPct?.applyValue({ args0 -> args0 }))
        .rampUpStartTime(rampUpStartTime?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
        .scalingPlanName(scalingPlanName?.applyValue({ args0 -> args0 }))
        .scalingPlanScheduleName(scalingPlanScheduleName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ScalingPlanPooledScheduleArgs].
 */
@PulumiTagMarker
public class ScalingPlanPooledScheduleArgsBuilder internal constructor() {
    private var daysOfWeek: Output>>? = null

    private var offPeakLoadBalancingAlgorithm:
        Output>? = null

    private var offPeakStartTime: Output? = null

    private var peakLoadBalancingAlgorithm: Output>? =
        null

    private var peakStartTime: Output? = null

    private var rampDownCapacityThresholdPct: Output? = null

    private var rampDownForceLogoffUsers: Output? = null

    private var rampDownLoadBalancingAlgorithm:
        Output>? = null

    private var rampDownMinimumHostsPct: Output? = null

    private var rampDownNotificationMessage: Output? = null

    private var rampDownStartTime: Output? = null

    private var rampDownStopHostsWhen: Output>? = null

    private var rampDownWaitTimeMinutes: Output? = null

    private var rampUpCapacityThresholdPct: Output? = null

    private var rampUpLoadBalancingAlgorithm:
        Output>? = null

    private var rampUpMinimumHostsPct: Output? = null

    private var rampUpStartTime: Output? = null

    private var resourceGroupName: Output? = null

    private var scalingPlanName: Output? = null

    private var scalingPlanScheduleName: Output? = null

    /**
     * @param value Set of days of the week on which this schedule is active.
     */
    @JvmName("glwejxeiydpmtaof")
    public suspend fun daysOfWeek(`value`: Output>>) {
        this.daysOfWeek = value
    }

    @JvmName("drhrhqxpsjfyhoup")
    public suspend fun daysOfWeek(vararg values: Output>) {
        this.daysOfWeek = Output.all(values.asList())
    }

    /**
     * @param values Set of days of the week on which this schedule is active.
     */
    @JvmName("jhflmpykwigljbyd")
    public suspend fun daysOfWeek(values: List>>) {
        this.daysOfWeek = Output.all(values)
    }

    /**
     * @param value Load balancing algorithm for off-peak period.
     */
    @JvmName("pnultpiyoeimirgv")
    public suspend fun offPeakLoadBalancingAlgorithm(`value`: Output>) {
        this.offPeakLoadBalancingAlgorithm = value
    }

    /**
     * @param value Starting time for off-peak period.
     */
    @JvmName("yjwmhmuxpjscalpu")
    public suspend fun offPeakStartTime(`value`: Output) {
        this.offPeakStartTime = value
    }

    /**
     * @param value Load balancing algorithm for peak period.
     */
    @JvmName("jvipyjcoskgsfvmw")
    public suspend fun peakLoadBalancingAlgorithm(`value`: Output>) {
        this.peakLoadBalancingAlgorithm = value
    }

    /**
     * @param value Starting time for peak period.
     */
    @JvmName("dlbkweguhibceely")
    public suspend fun peakStartTime(`value`: Output) {
        this.peakStartTime = value
    }

    /**
     * @param value Capacity threshold for ramp down period.
     */
    @JvmName("buqmetbpajkhudam")
    public suspend fun rampDownCapacityThresholdPct(`value`: Output) {
        this.rampDownCapacityThresholdPct = value
    }

    /**
     * @param value Should users be logged off forcefully from hosts.
     */
    @JvmName("ngxrrftxqyxlwjbg")
    public suspend fun rampDownForceLogoffUsers(`value`: Output) {
        this.rampDownForceLogoffUsers = value
    }

    /**
     * @param value Load balancing algorithm for ramp down period.
     */
    @JvmName("ydgofmmlpmmalhbh")
    public suspend fun rampDownLoadBalancingAlgorithm(`value`: Output>) {
        this.rampDownLoadBalancingAlgorithm = value
    }

    /**
     * @param value Minimum host percentage for ramp down period.
     */
    @JvmName("ypovcdxdkqmylebh")
    public suspend fun rampDownMinimumHostsPct(`value`: Output) {
        this.rampDownMinimumHostsPct = value
    }

    /**
     * @param value Notification message for users during ramp down period.
     */
    @JvmName("ejfgaydvsisvhmmj")
    public suspend fun rampDownNotificationMessage(`value`: Output) {
        this.rampDownNotificationMessage = value
    }

    /**
     * @param value Starting time for ramp down period.
     */
    @JvmName("rxxtcflxkawrgijf")
    public suspend fun rampDownStartTime(`value`: Output) {
        this.rampDownStartTime = value
    }

    /**
     * @param value Specifies when to stop hosts during ramp down period.
     */
    @JvmName("tiigcajlocwvnqbe")
    public suspend fun rampDownStopHostsWhen(`value`: Output>) {
        this.rampDownStopHostsWhen = value
    }

    /**
     * @param value Number of minutes to wait to stop hosts during ramp down period.
     */
    @JvmName("budgddojnmubpeda")
    public suspend fun rampDownWaitTimeMinutes(`value`: Output) {
        this.rampDownWaitTimeMinutes = value
    }

    /**
     * @param value Capacity threshold for ramp up period.
     */
    @JvmName("roiasjdmajsxtkbh")
    public suspend fun rampUpCapacityThresholdPct(`value`: Output) {
        this.rampUpCapacityThresholdPct = value
    }

    /**
     * @param value Load balancing algorithm for ramp up period.
     */
    @JvmName("qcdgbdhlmlwraxnk")
    public suspend fun rampUpLoadBalancingAlgorithm(`value`: Output>) {
        this.rampUpLoadBalancingAlgorithm = value
    }

    /**
     * @param value Minimum host percentage for ramp up period.
     */
    @JvmName("tanjotiemdtiotld")
    public suspend fun rampUpMinimumHostsPct(`value`: Output) {
        this.rampUpMinimumHostsPct = value
    }

    /**
     * @param value Starting time for ramp up period.
     */
    @JvmName("vxaaoqijpyialgxo")
    public suspend fun rampUpStartTime(`value`: Output) {
        this.rampUpStartTime = value
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("yytngxanijtkgpqw")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value The name of the scaling plan.
     */
    @JvmName("sdmivcuqrojgcldd")
    public suspend fun scalingPlanName(`value`: Output) {
        this.scalingPlanName = value
    }

    /**
     * @param value The name of the ScalingPlanSchedule
     */
    @JvmName("vkxrtwcaocabnyjp")
    public suspend fun scalingPlanScheduleName(`value`: Output) {
        this.scalingPlanScheduleName = value
    }

    /**
     * @param value Set of days of the week on which this schedule is active.
     */
    @JvmName("ypqwlbhsrtfhgsdj")
    public suspend fun daysOfWeek(`value`: List>?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.daysOfWeek = mapped
    }

    /**
     * @param values Set of days of the week on which this schedule is active.
     */
    @JvmName("rfdekgjmiviefwkr")
    public suspend fun daysOfWeek(vararg values: Either) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.daysOfWeek = mapped
    }

    /**
     * @param value Load balancing algorithm for off-peak period.
     */
    @JvmName("wpcbgonrggnpnrej")
    public suspend fun offPeakLoadBalancingAlgorithm(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.offPeakLoadBalancingAlgorithm = mapped
    }

    /**
     * @param value Load balancing algorithm for off-peak period.
     */
    @JvmName("vqjxtpfeoenemwxk")
    public fun offPeakLoadBalancingAlgorithm(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.offPeakLoadBalancingAlgorithm = mapped
    }

    /**
     * @param value Load balancing algorithm for off-peak period.
     */
    @JvmName("bbvcfluraqxchypg")
    public fun offPeakLoadBalancingAlgorithm(`value`: SessionHostLoadBalancingAlgorithm) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.offPeakLoadBalancingAlgorithm = mapped
    }

    /**
     * @param value Starting time for off-peak period.
     */
    @JvmName("rvmvpmuxxogryixp")
    public suspend fun offPeakStartTime(`value`: TimeArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.offPeakStartTime = mapped
    }

    /**
     * @param argument Starting time for off-peak period.
     */
    @JvmName("dsrhchonauytbcgy")
    public suspend fun offPeakStartTime(argument: suspend TimeArgsBuilder.() -> Unit) {
        val toBeMapped = TimeArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.offPeakStartTime = mapped
    }

    /**
     * @param value Load balancing algorithm for peak period.
     */
    @JvmName("qmfcbeiycupxgfhl")
    public suspend fun peakLoadBalancingAlgorithm(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.peakLoadBalancingAlgorithm = mapped
    }

    /**
     * @param value Load balancing algorithm for peak period.
     */
    @JvmName("jtvixbpfkmggxite")
    public fun peakLoadBalancingAlgorithm(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.peakLoadBalancingAlgorithm = mapped
    }

    /**
     * @param value Load balancing algorithm for peak period.
     */
    @JvmName("dsqxdigaokajdseo")
    public fun peakLoadBalancingAlgorithm(`value`: SessionHostLoadBalancingAlgorithm) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.peakLoadBalancingAlgorithm = mapped
    }

    /**
     * @param value Starting time for peak period.
     */
    @JvmName("jumobnunwrpacjqr")
    public suspend fun peakStartTime(`value`: TimeArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.peakStartTime = mapped
    }

    /**
     * @param argument Starting time for peak period.
     */
    @JvmName("fossfjwkcqjjwwkc")
    public suspend fun peakStartTime(argument: suspend TimeArgsBuilder.() -> Unit) {
        val toBeMapped = TimeArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.peakStartTime = mapped
    }

    /**
     * @param value Capacity threshold for ramp down period.
     */
    @JvmName("vrpxttbdpqbhmend")
    public suspend fun rampDownCapacityThresholdPct(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rampDownCapacityThresholdPct = mapped
    }

    /**
     * @param value Should users be logged off forcefully from hosts.
     */
    @JvmName("ybektrjsbekwcnob")
    public suspend fun rampDownForceLogoffUsers(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rampDownForceLogoffUsers = mapped
    }

    /**
     * @param value Load balancing algorithm for ramp down period.
     */
    @JvmName("iuxuxnrvrdwvpfhp")
    public suspend fun rampDownLoadBalancingAlgorithm(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rampDownLoadBalancingAlgorithm = mapped
    }

    /**
     * @param value Load balancing algorithm for ramp down period.
     */
    @JvmName("slwvgehmkbkjojeg")
    public fun rampDownLoadBalancingAlgorithm(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rampDownLoadBalancingAlgorithm = mapped
    }

    /**
     * @param value Load balancing algorithm for ramp down period.
     */
    @JvmName("pvjgcarljpehgdgj")
    public fun rampDownLoadBalancingAlgorithm(`value`: SessionHostLoadBalancingAlgorithm) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rampDownLoadBalancingAlgorithm = mapped
    }

    /**
     * @param value Minimum host percentage for ramp down period.
     */
    @JvmName("fpfmtrdmjeeddche")
    public suspend fun rampDownMinimumHostsPct(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rampDownMinimumHostsPct = mapped
    }

    /**
     * @param value Notification message for users during ramp down period.
     */
    @JvmName("dskxqwwhqbuudpno")
    public suspend fun rampDownNotificationMessage(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rampDownNotificationMessage = mapped
    }

    /**
     * @param value Starting time for ramp down period.
     */
    @JvmName("rbjbfxffwpeefdal")
    public suspend fun rampDownStartTime(`value`: TimeArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rampDownStartTime = mapped
    }

    /**
     * @param argument Starting time for ramp down period.
     */
    @JvmName("nnncijytqjobucua")
    public suspend fun rampDownStartTime(argument: suspend TimeArgsBuilder.() -> Unit) {
        val toBeMapped = TimeArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.rampDownStartTime = mapped
    }

    /**
     * @param value Specifies when to stop hosts during ramp down period.
     */
    @JvmName("noaahbkfcvdldath")
    public suspend fun rampDownStopHostsWhen(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rampDownStopHostsWhen = mapped
    }

    /**
     * @param value Specifies when to stop hosts during ramp down period.
     */
    @JvmName("xwdirblgqylwbgij")
    public fun rampDownStopHostsWhen(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rampDownStopHostsWhen = mapped
    }

    /**
     * @param value Specifies when to stop hosts during ramp down period.
     */
    @JvmName("givilnttnniyufju")
    public fun rampDownStopHostsWhen(`value`: StopHostsWhen) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rampDownStopHostsWhen = mapped
    }

    /**
     * @param value Number of minutes to wait to stop hosts during ramp down period.
     */
    @JvmName("iotqpowicynldgnf")
    public suspend fun rampDownWaitTimeMinutes(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rampDownWaitTimeMinutes = mapped
    }

    /**
     * @param value Capacity threshold for ramp up period.
     */
    @JvmName("owuinhwrvnmepoom")
    public suspend fun rampUpCapacityThresholdPct(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rampUpCapacityThresholdPct = mapped
    }

    /**
     * @param value Load balancing algorithm for ramp up period.
     */
    @JvmName("ppuqlpwsikhrgwho")
    public suspend fun rampUpLoadBalancingAlgorithm(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rampUpLoadBalancingAlgorithm = mapped
    }

    /**
     * @param value Load balancing algorithm for ramp up period.
     */
    @JvmName("jmrrkpsmhgewnqvd")
    public fun rampUpLoadBalancingAlgorithm(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rampUpLoadBalancingAlgorithm = mapped
    }

    /**
     * @param value Load balancing algorithm for ramp up period.
     */
    @JvmName("hbmbdcigkhntjbkn")
    public fun rampUpLoadBalancingAlgorithm(`value`: SessionHostLoadBalancingAlgorithm) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rampUpLoadBalancingAlgorithm = mapped
    }

    /**
     * @param value Minimum host percentage for ramp up period.
     */
    @JvmName("sbcbuqkojljkynep")
    public suspend fun rampUpMinimumHostsPct(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rampUpMinimumHostsPct = mapped
    }

    /**
     * @param value Starting time for ramp up period.
     */
    @JvmName("djjskkpjgnfxnbil")
    public suspend fun rampUpStartTime(`value`: TimeArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rampUpStartTime = mapped
    }

    /**
     * @param argument Starting time for ramp up period.
     */
    @JvmName("nxnqmhqjoqqtfbss")
    public suspend fun rampUpStartTime(argument: suspend TimeArgsBuilder.() -> Unit) {
        val toBeMapped = TimeArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.rampUpStartTime = mapped
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("ygxwtyogwjutcdyo")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value The name of the scaling plan.
     */
    @JvmName("boabsuteftcsxxmx")
    public suspend fun scalingPlanName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scalingPlanName = mapped
    }

    /**
     * @param value The name of the ScalingPlanSchedule
     */
    @JvmName("nysgdunwfaxmfnps")
    public suspend fun scalingPlanScheduleName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scalingPlanScheduleName = mapped
    }

    internal fun build(): ScalingPlanPooledScheduleArgs = ScalingPlanPooledScheduleArgs(
        daysOfWeek = daysOfWeek,
        offPeakLoadBalancingAlgorithm = offPeakLoadBalancingAlgorithm,
        offPeakStartTime = offPeakStartTime,
        peakLoadBalancingAlgorithm = peakLoadBalancingAlgorithm,
        peakStartTime = peakStartTime,
        rampDownCapacityThresholdPct = rampDownCapacityThresholdPct,
        rampDownForceLogoffUsers = rampDownForceLogoffUsers,
        rampDownLoadBalancingAlgorithm = rampDownLoadBalancingAlgorithm,
        rampDownMinimumHostsPct = rampDownMinimumHostsPct,
        rampDownNotificationMessage = rampDownNotificationMessage,
        rampDownStartTime = rampDownStartTime,
        rampDownStopHostsWhen = rampDownStopHostsWhen,
        rampDownWaitTimeMinutes = rampDownWaitTimeMinutes,
        rampUpCapacityThresholdPct = rampUpCapacityThresholdPct,
        rampUpLoadBalancingAlgorithm = rampUpLoadBalancingAlgorithm,
        rampUpMinimumHostsPct = rampUpMinimumHostsPct,
        rampUpStartTime = rampUpStartTime,
        resourceGroupName = resourceGroupName,
        scalingPlanName = scalingPlanName,
        scalingPlanScheduleName = scalingPlanScheduleName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy