Class ScalingPlanPooledSchedulePatch
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.desktopvirtualization.models.ScalingPlanPooledSchedulePatch
public final class ScalingPlanPooledSchedulePatch
extends com.azure.core.management.ProxyResource
ScalingPlanPooledSchedule properties that can be patched.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ScalingPlanPooledSchedulePatch class. -
Method Summary
Modifier and TypeMethodDescriptionGet the daysOfWeek property: Set of days of the week on which this schedule is active.Get the offPeakLoadBalancingAlgorithm property: Load balancing algorithm for off-peak period.Get the offPeakStartTime property: Starting time for off-peak period.Get the peakLoadBalancingAlgorithm property: Load balancing algorithm for peak period.Get the peakStartTime property: Starting time for peak period.Get the rampDownCapacityThresholdPct property: Capacity threshold for ramp down period.Get the rampDownForceLogoffUsers property: Should users be logged off forcefully from hosts.Get the rampDownLoadBalancingAlgorithm property: Load balancing algorithm for ramp down period.Get the rampDownMinimumHostsPct property: Minimum host percentage for ramp down period.Get the rampDownNotificationMessage property: Notification message for users during ramp down period.Get the rampDownStartTime property: Starting time for ramp down period.Get the rampDownStopHostsWhen property: Specifies when to stop hosts during ramp down period.Get the rampDownWaitTimeMinutes property: Number of minutes to wait to stop hosts during ramp down period.Get the rampUpCapacityThresholdPct property: Capacity threshold for ramp up period.Get the rampUpLoadBalancingAlgorithm property: Load balancing algorithm for ramp up period.Get the rampUpMinimumHostsPct property: Minimum host percentage for ramp up period.Get the rampUpStartTime property: Starting time for ramp up period.voidvalidate()Validates the instance.withDaysOfWeek(List<DayOfWeek> daysOfWeek) Set the daysOfWeek property: Set of days of the week on which this schedule is active.withOffPeakLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm offPeakLoadBalancingAlgorithm) Set the offPeakLoadBalancingAlgorithm property: Load balancing algorithm for off-peak period.withOffPeakStartTime(Time offPeakStartTime) Set the offPeakStartTime property: Starting time for off-peak period.withPeakLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm peakLoadBalancingAlgorithm) Set the peakLoadBalancingAlgorithm property: Load balancing algorithm for peak period.withPeakStartTime(Time peakStartTime) Set the peakStartTime property: Starting time for peak period.withRampDownCapacityThresholdPct(Integer rampDownCapacityThresholdPct) Set the rampDownCapacityThresholdPct property: Capacity threshold for ramp down period.withRampDownForceLogoffUsers(Boolean rampDownForceLogoffUsers) Set the rampDownForceLogoffUsers property: Should users be logged off forcefully from hosts.withRampDownLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm rampDownLoadBalancingAlgorithm) Set the rampDownLoadBalancingAlgorithm property: Load balancing algorithm for ramp down period.withRampDownMinimumHostsPct(Integer rampDownMinimumHostsPct) Set the rampDownMinimumHostsPct property: Minimum host percentage for ramp down period.withRampDownNotificationMessage(String rampDownNotificationMessage) Set the rampDownNotificationMessage property: Notification message for users during ramp down period.withRampDownStartTime(Time rampDownStartTime) Set the rampDownStartTime property: Starting time for ramp down period.withRampDownStopHostsWhen(StopHostsWhen rampDownStopHostsWhen) Set the rampDownStopHostsWhen property: Specifies when to stop hosts during ramp down period.withRampDownWaitTimeMinutes(Integer rampDownWaitTimeMinutes) Set the rampDownWaitTimeMinutes property: Number of minutes to wait to stop hosts during ramp down period.withRampUpCapacityThresholdPct(Integer rampUpCapacityThresholdPct) Set the rampUpCapacityThresholdPct property: Capacity threshold for ramp up period.withRampUpLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm rampUpLoadBalancingAlgorithm) Set the rampUpLoadBalancingAlgorithm property: Load balancing algorithm for ramp up period.withRampUpMinimumHostsPct(Integer rampUpMinimumHostsPct) Set the rampUpMinimumHostsPct property: Minimum host percentage for ramp up period.withRampUpStartTime(Time rampUpStartTime) Set the rampUpStartTime property: Starting time for ramp up period.Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
ScalingPlanPooledSchedulePatch
public ScalingPlanPooledSchedulePatch()Creates an instance of ScalingPlanPooledSchedulePatch class.
-
-
Method Details
-
daysOfWeek
Get the daysOfWeek property: Set of days of the week on which this schedule is active.- Returns:
- the daysOfWeek value.
-
withDaysOfWeek
Set the daysOfWeek property: Set of days of the week on which this schedule is active.- Parameters:
daysOfWeek- the daysOfWeek value to set.- Returns:
- the ScalingPlanPooledSchedulePatch object itself.
-
rampUpStartTime
Get the rampUpStartTime property: Starting time for ramp up period.- Returns:
- the rampUpStartTime value.
-
withRampUpStartTime
Set the rampUpStartTime property: Starting time for ramp up period.- Parameters:
rampUpStartTime- the rampUpStartTime value to set.- Returns:
- the ScalingPlanPooledSchedulePatch object itself.
-
rampUpLoadBalancingAlgorithm
Get the rampUpLoadBalancingAlgorithm property: Load balancing algorithm for ramp up period.- Returns:
- the rampUpLoadBalancingAlgorithm value.
-
withRampUpLoadBalancingAlgorithm
public ScalingPlanPooledSchedulePatch withRampUpLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm rampUpLoadBalancingAlgorithm) Set the rampUpLoadBalancingAlgorithm property: Load balancing algorithm for ramp up period.- Parameters:
rampUpLoadBalancingAlgorithm- the rampUpLoadBalancingAlgorithm value to set.- Returns:
- the ScalingPlanPooledSchedulePatch object itself.
-
rampUpMinimumHostsPct
Get the rampUpMinimumHostsPct property: Minimum host percentage for ramp up period.- Returns:
- the rampUpMinimumHostsPct value.
-
withRampUpMinimumHostsPct
Set the rampUpMinimumHostsPct property: Minimum host percentage for ramp up period.- Parameters:
rampUpMinimumHostsPct- the rampUpMinimumHostsPct value to set.- Returns:
- the ScalingPlanPooledSchedulePatch object itself.
-
rampUpCapacityThresholdPct
Get the rampUpCapacityThresholdPct property: Capacity threshold for ramp up period.- Returns:
- the rampUpCapacityThresholdPct value.
-
withRampUpCapacityThresholdPct
public ScalingPlanPooledSchedulePatch withRampUpCapacityThresholdPct(Integer rampUpCapacityThresholdPct) Set the rampUpCapacityThresholdPct property: Capacity threshold for ramp up period.- Parameters:
rampUpCapacityThresholdPct- the rampUpCapacityThresholdPct value to set.- Returns:
- the ScalingPlanPooledSchedulePatch object itself.
-
peakStartTime
Get the peakStartTime property: Starting time for peak period.- Returns:
- the peakStartTime value.
-
withPeakStartTime
Set the peakStartTime property: Starting time for peak period.- Parameters:
peakStartTime- the peakStartTime value to set.- Returns:
- the ScalingPlanPooledSchedulePatch object itself.
-
peakLoadBalancingAlgorithm
Get the peakLoadBalancingAlgorithm property: Load balancing algorithm for peak period.- Returns:
- the peakLoadBalancingAlgorithm value.
-
withPeakLoadBalancingAlgorithm
public ScalingPlanPooledSchedulePatch withPeakLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm peakLoadBalancingAlgorithm) Set the peakLoadBalancingAlgorithm property: Load balancing algorithm for peak period.- Parameters:
peakLoadBalancingAlgorithm- the peakLoadBalancingAlgorithm value to set.- Returns:
- the ScalingPlanPooledSchedulePatch object itself.
-
rampDownStartTime
Get the rampDownStartTime property: Starting time for ramp down period.- Returns:
- the rampDownStartTime value.
-
withRampDownStartTime
Set the rampDownStartTime property: Starting time for ramp down period.- Parameters:
rampDownStartTime- the rampDownStartTime value to set.- Returns:
- the ScalingPlanPooledSchedulePatch object itself.
-
rampDownLoadBalancingAlgorithm
Get the rampDownLoadBalancingAlgorithm property: Load balancing algorithm for ramp down period.- Returns:
- the rampDownLoadBalancingAlgorithm value.
-
withRampDownLoadBalancingAlgorithm
public ScalingPlanPooledSchedulePatch withRampDownLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm rampDownLoadBalancingAlgorithm) Set the rampDownLoadBalancingAlgorithm property: Load balancing algorithm for ramp down period.- Parameters:
rampDownLoadBalancingAlgorithm- the rampDownLoadBalancingAlgorithm value to set.- Returns:
- the ScalingPlanPooledSchedulePatch object itself.
-
rampDownMinimumHostsPct
Get the rampDownMinimumHostsPct property: Minimum host percentage for ramp down period.- Returns:
- the rampDownMinimumHostsPct value.
-
withRampDownMinimumHostsPct
Set the rampDownMinimumHostsPct property: Minimum host percentage for ramp down period.- Parameters:
rampDownMinimumHostsPct- the rampDownMinimumHostsPct value to set.- Returns:
- the ScalingPlanPooledSchedulePatch object itself.
-
rampDownCapacityThresholdPct
Get the rampDownCapacityThresholdPct property: Capacity threshold for ramp down period.- Returns:
- the rampDownCapacityThresholdPct value.
-
withRampDownCapacityThresholdPct
public ScalingPlanPooledSchedulePatch withRampDownCapacityThresholdPct(Integer rampDownCapacityThresholdPct) Set the rampDownCapacityThresholdPct property: Capacity threshold for ramp down period.- Parameters:
rampDownCapacityThresholdPct- the rampDownCapacityThresholdPct value to set.- Returns:
- the ScalingPlanPooledSchedulePatch object itself.
-
rampDownForceLogoffUsers
Get the rampDownForceLogoffUsers property: Should users be logged off forcefully from hosts.- Returns:
- the rampDownForceLogoffUsers value.
-
withRampDownForceLogoffUsers
public ScalingPlanPooledSchedulePatch withRampDownForceLogoffUsers(Boolean rampDownForceLogoffUsers) Set the rampDownForceLogoffUsers property: Should users be logged off forcefully from hosts.- Parameters:
rampDownForceLogoffUsers- the rampDownForceLogoffUsers value to set.- Returns:
- the ScalingPlanPooledSchedulePatch object itself.
-
rampDownStopHostsWhen
Get the rampDownStopHostsWhen property: Specifies when to stop hosts during ramp down period.- Returns:
- the rampDownStopHostsWhen value.
-
withRampDownStopHostsWhen
public ScalingPlanPooledSchedulePatch withRampDownStopHostsWhen(StopHostsWhen rampDownStopHostsWhen) Set the rampDownStopHostsWhen property: Specifies when to stop hosts during ramp down period.- Parameters:
rampDownStopHostsWhen- the rampDownStopHostsWhen value to set.- Returns:
- the ScalingPlanPooledSchedulePatch object itself.
-
rampDownWaitTimeMinutes
Get the rampDownWaitTimeMinutes property: Number of minutes to wait to stop hosts during ramp down period.- Returns:
- the rampDownWaitTimeMinutes value.
-
withRampDownWaitTimeMinutes
Set the rampDownWaitTimeMinutes property: Number of minutes to wait to stop hosts during ramp down period.- Parameters:
rampDownWaitTimeMinutes- the rampDownWaitTimeMinutes value to set.- Returns:
- the ScalingPlanPooledSchedulePatch object itself.
-
rampDownNotificationMessage
Get the rampDownNotificationMessage property: Notification message for users during ramp down period.- Returns:
- the rampDownNotificationMessage value.
-
withRampDownNotificationMessage
public ScalingPlanPooledSchedulePatch withRampDownNotificationMessage(String rampDownNotificationMessage) Set the rampDownNotificationMessage property: Notification message for users during ramp down period.- Parameters:
rampDownNotificationMessage- the rampDownNotificationMessage value to set.- Returns:
- the ScalingPlanPooledSchedulePatch object itself.
-
offPeakStartTime
Get the offPeakStartTime property: Starting time for off-peak period.- Returns:
- the offPeakStartTime value.
-
withOffPeakStartTime
Set the offPeakStartTime property: Starting time for off-peak period.- Parameters:
offPeakStartTime- the offPeakStartTime value to set.- Returns:
- the ScalingPlanPooledSchedulePatch object itself.
-
offPeakLoadBalancingAlgorithm
Get the offPeakLoadBalancingAlgorithm property: Load balancing algorithm for off-peak period.- Returns:
- the offPeakLoadBalancingAlgorithm value.
-
withOffPeakLoadBalancingAlgorithm
public ScalingPlanPooledSchedulePatch withOffPeakLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm offPeakLoadBalancingAlgorithm) Set the offPeakLoadBalancingAlgorithm property: Load balancing algorithm for off-peak period.- Parameters:
offPeakLoadBalancingAlgorithm- the offPeakLoadBalancingAlgorithm value to set.- Returns:
- the ScalingPlanPooledSchedulePatch object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-