Class ScalingSchedule
- java.lang.Object
-
- com.azure.resourcemanager.desktopvirtualization.models.ScalingSchedule
-
public final class ScalingSchedule extends Object
Scaling plan schedule.
-
-
Constructor Summary
Constructors Constructor Description ScalingSchedule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ScalingScheduleDaysOfWeekItem>daysOfWeek()Get the daysOfWeek property: Set of days of the week on which this schedule is active.Stringname()Get the name property: Name of the scaling schedule.SessionHostLoadBalancingAlgorithmoffPeakLoadBalancingAlgorithm()Get the offPeakLoadBalancingAlgorithm property: Load balancing algorithm for off-peak period.TimeoffPeakStartTime()Get the offPeakStartTime property: Starting time for off-peak period.SessionHostLoadBalancingAlgorithmpeakLoadBalancingAlgorithm()Get the peakLoadBalancingAlgorithm property: Load balancing algorithm for peak period.TimepeakStartTime()Get the peakStartTime property: Starting time for peak period.IntegerrampDownCapacityThresholdPct()Get the rampDownCapacityThresholdPct property: Capacity threshold for ramp down period.BooleanrampDownForceLogoffUsers()Get the rampDownForceLogoffUsers property: Should users be logged off forcefully from hosts.SessionHostLoadBalancingAlgorithmrampDownLoadBalancingAlgorithm()Get the rampDownLoadBalancingAlgorithm property: Load balancing algorithm for ramp down period.IntegerrampDownMinimumHostsPct()Get the rampDownMinimumHostsPct property: Minimum host percentage for ramp down period.StringrampDownNotificationMessage()Get the rampDownNotificationMessage property: Notification message for users during ramp down period.TimerampDownStartTime()Get the rampDownStartTime property: Starting time for ramp down period.StopHostsWhenrampDownStopHostsWhen()Get the rampDownStopHostsWhen property: Specifies when to stop hosts during ramp down period.IntegerrampDownWaitTimeMinutes()Get the rampDownWaitTimeMinutes property: Number of minutes to wait to stop hosts during ramp down period.IntegerrampUpCapacityThresholdPct()Get the rampUpCapacityThresholdPct property: Capacity threshold for ramp up period.SessionHostLoadBalancingAlgorithmrampUpLoadBalancingAlgorithm()Get the rampUpLoadBalancingAlgorithm property: Load balancing algorithm for ramp up period.IntegerrampUpMinimumHostsPct()Get the rampUpMinimumHostsPct property: Minimum host percentage for ramp up period.TimerampUpStartTime()Get the rampUpStartTime property: Starting time for ramp up period.voidvalidate()Validates the instance.ScalingSchedulewithDaysOfWeek(List<ScalingScheduleDaysOfWeekItem> daysOfWeek)Set the daysOfWeek property: Set of days of the week on which this schedule is active.ScalingSchedulewithName(String name)Set the name property: Name of the scaling schedule.ScalingSchedulewithOffPeakLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm offPeakLoadBalancingAlgorithm)Set the offPeakLoadBalancingAlgorithm property: Load balancing algorithm for off-peak period.ScalingSchedulewithOffPeakStartTime(Time offPeakStartTime)Set the offPeakStartTime property: Starting time for off-peak period.ScalingSchedulewithPeakLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm peakLoadBalancingAlgorithm)Set the peakLoadBalancingAlgorithm property: Load balancing algorithm for peak period.ScalingSchedulewithPeakStartTime(Time peakStartTime)Set the peakStartTime property: Starting time for peak period.ScalingSchedulewithRampDownCapacityThresholdPct(Integer rampDownCapacityThresholdPct)Set the rampDownCapacityThresholdPct property: Capacity threshold for ramp down period.ScalingSchedulewithRampDownForceLogoffUsers(Boolean rampDownForceLogoffUsers)Set the rampDownForceLogoffUsers property: Should users be logged off forcefully from hosts.ScalingSchedulewithRampDownLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm rampDownLoadBalancingAlgorithm)Set the rampDownLoadBalancingAlgorithm property: Load balancing algorithm for ramp down period.ScalingSchedulewithRampDownMinimumHostsPct(Integer rampDownMinimumHostsPct)Set the rampDownMinimumHostsPct property: Minimum host percentage for ramp down period.ScalingSchedulewithRampDownNotificationMessage(String rampDownNotificationMessage)Set the rampDownNotificationMessage property: Notification message for users during ramp down period.ScalingSchedulewithRampDownStartTime(Time rampDownStartTime)Set the rampDownStartTime property: Starting time for ramp down period.ScalingSchedulewithRampDownStopHostsWhen(StopHostsWhen rampDownStopHostsWhen)Set the rampDownStopHostsWhen property: Specifies when to stop hosts during ramp down period.ScalingSchedulewithRampDownWaitTimeMinutes(Integer rampDownWaitTimeMinutes)Set the rampDownWaitTimeMinutes property: Number of minutes to wait to stop hosts during ramp down period.ScalingSchedulewithRampUpCapacityThresholdPct(Integer rampUpCapacityThresholdPct)Set the rampUpCapacityThresholdPct property: Capacity threshold for ramp up period.ScalingSchedulewithRampUpLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm rampUpLoadBalancingAlgorithm)Set the rampUpLoadBalancingAlgorithm property: Load balancing algorithm for ramp up period.ScalingSchedulewithRampUpMinimumHostsPct(Integer rampUpMinimumHostsPct)Set the rampUpMinimumHostsPct property: Minimum host percentage for ramp up period.ScalingSchedulewithRampUpStartTime(Time rampUpStartTime)Set the rampUpStartTime property: Starting time for ramp up period.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Name of the scaling schedule.- Returns:
- the name value.
-
withName
public ScalingSchedule withName(String name)
Set the name property: Name of the scaling schedule.- Parameters:
name- the name value to set.- Returns:
- the ScalingSchedule object itself.
-
daysOfWeek
public List<ScalingScheduleDaysOfWeekItem> daysOfWeek()
Get the daysOfWeek property: Set of days of the week on which this schedule is active.- Returns:
- the daysOfWeek value.
-
withDaysOfWeek
public ScalingSchedule withDaysOfWeek(List<ScalingScheduleDaysOfWeekItem> daysOfWeek)
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 ScalingSchedule object itself.
-
rampUpStartTime
public Time rampUpStartTime()
Get the rampUpStartTime property: Starting time for ramp up period.- Returns:
- the rampUpStartTime value.
-
withRampUpStartTime
public ScalingSchedule withRampUpStartTime(Time rampUpStartTime)
Set the rampUpStartTime property: Starting time for ramp up period.- Parameters:
rampUpStartTime- the rampUpStartTime value to set.- Returns:
- the ScalingSchedule object itself.
-
rampUpLoadBalancingAlgorithm
public SessionHostLoadBalancingAlgorithm rampUpLoadBalancingAlgorithm()
Get the rampUpLoadBalancingAlgorithm property: Load balancing algorithm for ramp up period.- Returns:
- the rampUpLoadBalancingAlgorithm value.
-
withRampUpLoadBalancingAlgorithm
public ScalingSchedule withRampUpLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm rampUpLoadBalancingAlgorithm)
Set the rampUpLoadBalancingAlgorithm property: Load balancing algorithm for ramp up period.- Parameters:
rampUpLoadBalancingAlgorithm- the rampUpLoadBalancingAlgorithm value to set.- Returns:
- the ScalingSchedule object itself.
-
rampUpMinimumHostsPct
public Integer rampUpMinimumHostsPct()
Get the rampUpMinimumHostsPct property: Minimum host percentage for ramp up period.- Returns:
- the rampUpMinimumHostsPct value.
-
withRampUpMinimumHostsPct
public ScalingSchedule withRampUpMinimumHostsPct(Integer rampUpMinimumHostsPct)
Set the rampUpMinimumHostsPct property: Minimum host percentage for ramp up period.- Parameters:
rampUpMinimumHostsPct- the rampUpMinimumHostsPct value to set.- Returns:
- the ScalingSchedule object itself.
-
rampUpCapacityThresholdPct
public Integer rampUpCapacityThresholdPct()
Get the rampUpCapacityThresholdPct property: Capacity threshold for ramp up period.- Returns:
- the rampUpCapacityThresholdPct value.
-
withRampUpCapacityThresholdPct
public ScalingSchedule withRampUpCapacityThresholdPct(Integer rampUpCapacityThresholdPct)
Set the rampUpCapacityThresholdPct property: Capacity threshold for ramp up period.- Parameters:
rampUpCapacityThresholdPct- the rampUpCapacityThresholdPct value to set.- Returns:
- the ScalingSchedule object itself.
-
peakStartTime
public Time peakStartTime()
Get the peakStartTime property: Starting time for peak period.- Returns:
- the peakStartTime value.
-
withPeakStartTime
public ScalingSchedule withPeakStartTime(Time peakStartTime)
Set the peakStartTime property: Starting time for peak period.- Parameters:
peakStartTime- the peakStartTime value to set.- Returns:
- the ScalingSchedule object itself.
-
peakLoadBalancingAlgorithm
public SessionHostLoadBalancingAlgorithm peakLoadBalancingAlgorithm()
Get the peakLoadBalancingAlgorithm property: Load balancing algorithm for peak period.- Returns:
- the peakLoadBalancingAlgorithm value.
-
withPeakLoadBalancingAlgorithm
public ScalingSchedule withPeakLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm peakLoadBalancingAlgorithm)
Set the peakLoadBalancingAlgorithm property: Load balancing algorithm for peak period.- Parameters:
peakLoadBalancingAlgorithm- the peakLoadBalancingAlgorithm value to set.- Returns:
- the ScalingSchedule object itself.
-
rampDownStartTime
public Time rampDownStartTime()
Get the rampDownStartTime property: Starting time for ramp down period.- Returns:
- the rampDownStartTime value.
-
withRampDownStartTime
public ScalingSchedule withRampDownStartTime(Time rampDownStartTime)
Set the rampDownStartTime property: Starting time for ramp down period.- Parameters:
rampDownStartTime- the rampDownStartTime value to set.- Returns:
- the ScalingSchedule object itself.
-
rampDownLoadBalancingAlgorithm
public SessionHostLoadBalancingAlgorithm rampDownLoadBalancingAlgorithm()
Get the rampDownLoadBalancingAlgorithm property: Load balancing algorithm for ramp down period.- Returns:
- the rampDownLoadBalancingAlgorithm value.
-
withRampDownLoadBalancingAlgorithm
public ScalingSchedule withRampDownLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm rampDownLoadBalancingAlgorithm)
Set the rampDownLoadBalancingAlgorithm property: Load balancing algorithm for ramp down period.- Parameters:
rampDownLoadBalancingAlgorithm- the rampDownLoadBalancingAlgorithm value to set.- Returns:
- the ScalingSchedule object itself.
-
rampDownMinimumHostsPct
public Integer rampDownMinimumHostsPct()
Get the rampDownMinimumHostsPct property: Minimum host percentage for ramp down period.- Returns:
- the rampDownMinimumHostsPct value.
-
withRampDownMinimumHostsPct
public ScalingSchedule withRampDownMinimumHostsPct(Integer rampDownMinimumHostsPct)
Set the rampDownMinimumHostsPct property: Minimum host percentage for ramp down period.- Parameters:
rampDownMinimumHostsPct- the rampDownMinimumHostsPct value to set.- Returns:
- the ScalingSchedule object itself.
-
rampDownCapacityThresholdPct
public Integer rampDownCapacityThresholdPct()
Get the rampDownCapacityThresholdPct property: Capacity threshold for ramp down period.- Returns:
- the rampDownCapacityThresholdPct value.
-
withRampDownCapacityThresholdPct
public ScalingSchedule withRampDownCapacityThresholdPct(Integer rampDownCapacityThresholdPct)
Set the rampDownCapacityThresholdPct property: Capacity threshold for ramp down period.- Parameters:
rampDownCapacityThresholdPct- the rampDownCapacityThresholdPct value to set.- Returns:
- the ScalingSchedule object itself.
-
rampDownForceLogoffUsers
public Boolean rampDownForceLogoffUsers()
Get the rampDownForceLogoffUsers property: Should users be logged off forcefully from hosts.- Returns:
- the rampDownForceLogoffUsers value.
-
withRampDownForceLogoffUsers
public ScalingSchedule withRampDownForceLogoffUsers(Boolean rampDownForceLogoffUsers)
Set the rampDownForceLogoffUsers property: Should users be logged off forcefully from hosts.- Parameters:
rampDownForceLogoffUsers- the rampDownForceLogoffUsers value to set.- Returns:
- the ScalingSchedule object itself.
-
rampDownStopHostsWhen
public StopHostsWhen rampDownStopHostsWhen()
Get the rampDownStopHostsWhen property: Specifies when to stop hosts during ramp down period.- Returns:
- the rampDownStopHostsWhen value.
-
withRampDownStopHostsWhen
public ScalingSchedule 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 ScalingSchedule object itself.
-
rampDownWaitTimeMinutes
public Integer rampDownWaitTimeMinutes()
Get the rampDownWaitTimeMinutes property: Number of minutes to wait to stop hosts during ramp down period.- Returns:
- the rampDownWaitTimeMinutes value.
-
withRampDownWaitTimeMinutes
public ScalingSchedule withRampDownWaitTimeMinutes(Integer rampDownWaitTimeMinutes)
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 ScalingSchedule object itself.
-
rampDownNotificationMessage
public String rampDownNotificationMessage()
Get the rampDownNotificationMessage property: Notification message for users during ramp down period.- Returns:
- the rampDownNotificationMessage value.
-
withRampDownNotificationMessage
public ScalingSchedule withRampDownNotificationMessage(String rampDownNotificationMessage)
Set the rampDownNotificationMessage property: Notification message for users during ramp down period.- Parameters:
rampDownNotificationMessage- the rampDownNotificationMessage value to set.- Returns:
- the ScalingSchedule object itself.
-
offPeakStartTime
public Time offPeakStartTime()
Get the offPeakStartTime property: Starting time for off-peak period.- Returns:
- the offPeakStartTime value.
-
withOffPeakStartTime
public ScalingSchedule withOffPeakStartTime(Time offPeakStartTime)
Set the offPeakStartTime property: Starting time for off-peak period.- Parameters:
offPeakStartTime- the offPeakStartTime value to set.- Returns:
- the ScalingSchedule object itself.
-
offPeakLoadBalancingAlgorithm
public SessionHostLoadBalancingAlgorithm offPeakLoadBalancingAlgorithm()
Get the offPeakLoadBalancingAlgorithm property: Load balancing algorithm for off-peak period.- Returns:
- the offPeakLoadBalancingAlgorithm value.
-
withOffPeakLoadBalancingAlgorithm
public ScalingSchedule withOffPeakLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm offPeakLoadBalancingAlgorithm)
Set the offPeakLoadBalancingAlgorithm property: Load balancing algorithm for off-peak period.- Parameters:
offPeakLoadBalancingAlgorithm- the offPeakLoadBalancingAlgorithm value to set.- Returns:
- the ScalingSchedule object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-