ScalingPlanPooledScheduleInner Class

public final class ScalingPlanPooledScheduleInner
extends ProxyResource

Represents a ScalingPlanPooledSchedule definition.

Constructor Summary

Constructor Description
ScalingPlanPooledScheduleInner()

Creates an instance of ScalingPlanPooledScheduleInner class.

Method Summary

Modifier and Type Method and Description
List<DayOfWeek> daysOfWeek()

Get the daysOfWeek property: Set of days of the week on which this schedule is active.

static ScalingPlanPooledScheduleInner fromJson(JsonReader jsonReader)

Reads an instance of ScalingPlanPooledScheduleInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

SessionHostLoadBalancingAlgorithm offPeakLoadBalancingAlgorithm()

Get the offPeakLoadBalancingAlgorithm property: Load balancing algorithm for off-peak period.

Time offPeakStartTime()

Get the offPeakStartTime property: Starting time for off-peak period.

SessionHostLoadBalancingAlgorithm peakLoadBalancingAlgorithm()

Get the peakLoadBalancingAlgorithm property: Load balancing algorithm for peak period.

Time peakStartTime()

Get the peakStartTime property: Starting time for peak period.

Integer rampDownCapacityThresholdPct()

Get the rampDownCapacityThresholdPct property: Capacity threshold for ramp down period.

Boolean rampDownForceLogoffUsers()

Get the rampDownForceLogoffUsers property: Should users be logged off forcefully from hosts.

SessionHostLoadBalancingAlgorithm rampDownLoadBalancingAlgorithm()

Get the rampDownLoadBalancingAlgorithm property: Load balancing algorithm for ramp down period.

Integer rampDownMinimumHostsPct()

Get the rampDownMinimumHostsPct property: Minimum host percentage for ramp down period.

String rampDownNotificationMessage()

Get the rampDownNotificationMessage property: Notification message for users during ramp down period.

Time rampDownStartTime()

Get the rampDownStartTime property: Starting time for ramp down period.

StopHostsWhen rampDownStopHostsWhen()

Get the rampDownStopHostsWhen property: Specifies when to stop hosts during ramp down period.

Integer rampDownWaitTimeMinutes()

Get the rampDownWaitTimeMinutes property: Number of minutes to wait to stop hosts during ramp down period.

Integer rampUpCapacityThresholdPct()

Get the rampUpCapacityThresholdPct property: Capacity threshold for ramp up period.

SessionHostLoadBalancingAlgorithm rampUpLoadBalancingAlgorithm()

Get the rampUpLoadBalancingAlgorithm property: Load balancing algorithm for ramp up period.

Integer rampUpMinimumHostsPct()

Get the rampUpMinimumHostsPct property: Minimum host percentage for ramp up period.

Time rampUpStartTime()

Get the rampUpStartTime property: Starting time for ramp up period.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ScalingPlanPooledScheduleInner withDaysOfWeek(List<DayOfWeek> daysOfWeek)

Set the daysOfWeek property: Set of days of the week on which this schedule is active.

ScalingPlanPooledScheduleInner withOffPeakLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm offPeakLoadBalancingAlgorithm)

Set the offPeakLoadBalancingAlgorithm property: Load balancing algorithm for off-peak period.

ScalingPlanPooledScheduleInner withOffPeakStartTime(Time offPeakStartTime)

Set the offPeakStartTime property: Starting time for off-peak period.

ScalingPlanPooledScheduleInner withPeakLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm peakLoadBalancingAlgorithm)

Set the peakLoadBalancingAlgorithm property: Load balancing algorithm for peak period.

ScalingPlanPooledScheduleInner withPeakStartTime(Time peakStartTime)

Set the peakStartTime property: Starting time for peak period.

ScalingPlanPooledScheduleInner withRampDownCapacityThresholdPct(Integer rampDownCapacityThresholdPct)

Set the rampDownCapacityThresholdPct property: Capacity threshold for ramp down period.

ScalingPlanPooledScheduleInner withRampDownForceLogoffUsers(Boolean rampDownForceLogoffUsers)

Set the rampDownForceLogoffUsers property: Should users be logged off forcefully from hosts.

ScalingPlanPooledScheduleInner withRampDownLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm rampDownLoadBalancingAlgorithm)

Set the rampDownLoadBalancingAlgorithm property: Load balancing algorithm for ramp down period.

ScalingPlanPooledScheduleInner withRampDownMinimumHostsPct(Integer rampDownMinimumHostsPct)

Set the rampDownMinimumHostsPct property: Minimum host percentage for ramp down period.

ScalingPlanPooledScheduleInner withRampDownNotificationMessage(String rampDownNotificationMessage)

Set the rampDownNotificationMessage property: Notification message for users during ramp down period.

ScalingPlanPooledScheduleInner withRampDownStartTime(Time rampDownStartTime)

Set the rampDownStartTime property: Starting time for ramp down period.

ScalingPlanPooledScheduleInner withRampDownStopHostsWhen(StopHostsWhen rampDownStopHostsWhen)

Set the rampDownStopHostsWhen property: Specifies when to stop hosts during ramp down period.

ScalingPlanPooledScheduleInner withRampDownWaitTimeMinutes(Integer rampDownWaitTimeMinutes)

Set the rampDownWaitTimeMinutes property: Number of minutes to wait to stop hosts during ramp down period.

ScalingPlanPooledScheduleInner withRampUpCapacityThresholdPct(Integer rampUpCapacityThresholdPct)

Set the rampUpCapacityThresholdPct property: Capacity threshold for ramp up period.

ScalingPlanPooledScheduleInner withRampUpLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm rampUpLoadBalancingAlgorithm)

Set the rampUpLoadBalancingAlgorithm property: Load balancing algorithm for ramp up period.

ScalingPlanPooledScheduleInner withRampUpMinimumHostsPct(Integer rampUpMinimumHostsPct)

Set the rampUpMinimumHostsPct property: Minimum host percentage for ramp up period.

ScalingPlanPooledScheduleInner withRampUpStartTime(Time rampUpStartTime)

Set the rampUpStartTime property: Starting time for ramp up period.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ScalingPlanPooledScheduleInner

public ScalingPlanPooledScheduleInner()

Creates an instance of ScalingPlanPooledScheduleInner class.

Method Details

daysOfWeek

public List<DayOfWeek> daysOfWeek()

Get the daysOfWeek property: Set of days of the week on which this schedule is active.

Returns:

the daysOfWeek value.

fromJson

public static ScalingPlanPooledScheduleInner fromJson(JsonReader jsonReader)

Reads an instance of ScalingPlanPooledScheduleInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ScalingPlanPooledScheduleInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ScalingPlanPooledScheduleInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ScalingPlanPooledScheduleInner.name()

Returns:

the name value.

offPeakLoadBalancingAlgorithm

public SessionHostLoadBalancingAlgorithm offPeakLoadBalancingAlgorithm()

Get the offPeakLoadBalancingAlgorithm property: Load balancing algorithm for off-peak period.

Returns:

the offPeakLoadBalancingAlgorithm value.

offPeakStartTime

public Time offPeakStartTime()

Get the offPeakStartTime property: Starting time for off-peak period.

Returns:

the offPeakStartTime value.

peakLoadBalancingAlgorithm

public SessionHostLoadBalancingAlgorithm peakLoadBalancingAlgorithm()

Get the peakLoadBalancingAlgorithm property: Load balancing algorithm for peak period.

Returns:

the peakLoadBalancingAlgorithm value.

peakStartTime

public Time peakStartTime()

Get the peakStartTime property: Starting time for peak period.

Returns:

the peakStartTime value.

rampDownCapacityThresholdPct

public Integer rampDownCapacityThresholdPct()

Get the rampDownCapacityThresholdPct property: Capacity threshold for ramp down period.

Returns:

the rampDownCapacityThresholdPct value.

rampDownForceLogoffUsers

public Boolean rampDownForceLogoffUsers()

Get the rampDownForceLogoffUsers property: Should users be logged off forcefully from hosts.

Returns:

the rampDownForceLogoffUsers value.

rampDownLoadBalancingAlgorithm

public SessionHostLoadBalancingAlgorithm rampDownLoadBalancingAlgorithm()

Get the rampDownLoadBalancingAlgorithm property: Load balancing algorithm for ramp down period.

Returns:

the rampDownLoadBalancingAlgorithm value.

rampDownMinimumHostsPct

public Integer rampDownMinimumHostsPct()

Get the rampDownMinimumHostsPct property: Minimum host percentage for ramp down period.

Returns:

the rampDownMinimumHostsPct value.

rampDownNotificationMessage

public String rampDownNotificationMessage()

Get the rampDownNotificationMessage property: Notification message for users during ramp down period.

Returns:

the rampDownNotificationMessage value.

rampDownStartTime

public Time rampDownStartTime()

Get the rampDownStartTime property: Starting time for ramp down period.

Returns:

the rampDownStartTime value.

rampDownStopHostsWhen

public StopHostsWhen rampDownStopHostsWhen()

Get the rampDownStopHostsWhen property: Specifies when to stop hosts during ramp down period.

Returns:

the rampDownStopHostsWhen value.

rampDownWaitTimeMinutes

public Integer rampDownWaitTimeMinutes()

Get the rampDownWaitTimeMinutes property: Number of minutes to wait to stop hosts during ramp down period.

Returns:

the rampDownWaitTimeMinutes value.

rampUpCapacityThresholdPct

public Integer rampUpCapacityThresholdPct()

Get the rampUpCapacityThresholdPct property: Capacity threshold for ramp up period.

Returns:

the rampUpCapacityThresholdPct value.

rampUpLoadBalancingAlgorithm

public SessionHostLoadBalancingAlgorithm rampUpLoadBalancingAlgorithm()

Get the rampUpLoadBalancingAlgorithm property: Load balancing algorithm for ramp up period.

Returns:

the rampUpLoadBalancingAlgorithm value.

rampUpMinimumHostsPct

public Integer rampUpMinimumHostsPct()

Get the rampUpMinimumHostsPct property: Minimum host percentage for ramp up period.

Returns:

the rampUpMinimumHostsPct value.

rampUpStartTime

public Time rampUpStartTime()

Get the rampUpStartTime property: Starting time for ramp up period.

Returns:

the rampUpStartTime value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ScalingPlanPooledScheduleInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ScalingPlanPooledScheduleInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDaysOfWeek

public ScalingPlanPooledScheduleInner withDaysOfWeek(List<DayOfWeek> 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 ScalingPlanPooledScheduleInner object itself.

withOffPeakLoadBalancingAlgorithm

public ScalingPlanPooledScheduleInner withOffPeakLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm offPeakLoadBalancingAlgorithm)

Set the offPeakLoadBalancingAlgorithm property: Load balancing algorithm for off-peak period.

Parameters:

offPeakLoadBalancingAlgorithm - the offPeakLoadBalancingAlgorithm value to set.

Returns:

the ScalingPlanPooledScheduleInner object itself.

withOffPeakStartTime

public ScalingPlanPooledScheduleInner withOffPeakStartTime(Time offPeakStartTime)

Set the offPeakStartTime property: Starting time for off-peak period.

Parameters:

offPeakStartTime - the offPeakStartTime value to set.

Returns:

the ScalingPlanPooledScheduleInner object itself.

withPeakLoadBalancingAlgorithm

public ScalingPlanPooledScheduleInner withPeakLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm peakLoadBalancingAlgorithm)

Set the peakLoadBalancingAlgorithm property: Load balancing algorithm for peak period.

Parameters:

peakLoadBalancingAlgorithm - the peakLoadBalancingAlgorithm value to set.

Returns:

the ScalingPlanPooledScheduleInner object itself.

withPeakStartTime

public ScalingPlanPooledScheduleInner withPeakStartTime(Time peakStartTime)

Set the peakStartTime property: Starting time for peak period.

Parameters:

peakStartTime - the peakStartTime value to set.

Returns:

the ScalingPlanPooledScheduleInner object itself.

withRampDownCapacityThresholdPct

public ScalingPlanPooledScheduleInner withRampDownCapacityThresholdPct(Integer rampDownCapacityThresholdPct)

Set the rampDownCapacityThresholdPct property: Capacity threshold for ramp down period.

Parameters:

rampDownCapacityThresholdPct - the rampDownCapacityThresholdPct value to set.

Returns:

the ScalingPlanPooledScheduleInner object itself.

withRampDownForceLogoffUsers

public ScalingPlanPooledScheduleInner withRampDownForceLogoffUsers(Boolean rampDownForceLogoffUsers)

Set the rampDownForceLogoffUsers property: Should users be logged off forcefully from hosts.

Parameters:

rampDownForceLogoffUsers - the rampDownForceLogoffUsers value to set.

Returns:

the ScalingPlanPooledScheduleInner object itself.

withRampDownLoadBalancingAlgorithm

public ScalingPlanPooledScheduleInner withRampDownLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm rampDownLoadBalancingAlgorithm)

Set the rampDownLoadBalancingAlgorithm property: Load balancing algorithm for ramp down period.

Parameters:

rampDownLoadBalancingAlgorithm - the rampDownLoadBalancingAlgorithm value to set.

Returns:

the ScalingPlanPooledScheduleInner object itself.

withRampDownMinimumHostsPct

public ScalingPlanPooledScheduleInner withRampDownMinimumHostsPct(Integer rampDownMinimumHostsPct)

Set the rampDownMinimumHostsPct property: Minimum host percentage for ramp down period.

Parameters:

rampDownMinimumHostsPct - the rampDownMinimumHostsPct value to set.

Returns:

the ScalingPlanPooledScheduleInner object itself.

withRampDownNotificationMessage

public ScalingPlanPooledScheduleInner withRampDownNotificationMessage(String rampDownNotificationMessage)

Set the rampDownNotificationMessage property: Notification message for users during ramp down period.

Parameters:

rampDownNotificationMessage - the rampDownNotificationMessage value to set.

Returns:

the ScalingPlanPooledScheduleInner object itself.

withRampDownStartTime

public ScalingPlanPooledScheduleInner withRampDownStartTime(Time rampDownStartTime)

Set the rampDownStartTime property: Starting time for ramp down period.

Parameters:

rampDownStartTime - the rampDownStartTime value to set.

Returns:

the ScalingPlanPooledScheduleInner object itself.

withRampDownStopHostsWhen

public ScalingPlanPooledScheduleInner 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 ScalingPlanPooledScheduleInner object itself.

withRampDownWaitTimeMinutes

public ScalingPlanPooledScheduleInner 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 ScalingPlanPooledScheduleInner object itself.

withRampUpCapacityThresholdPct

public ScalingPlanPooledScheduleInner withRampUpCapacityThresholdPct(Integer rampUpCapacityThresholdPct)

Set the rampUpCapacityThresholdPct property: Capacity threshold for ramp up period.

Parameters:

rampUpCapacityThresholdPct - the rampUpCapacityThresholdPct value to set.

Returns:

the ScalingPlanPooledScheduleInner object itself.

withRampUpLoadBalancingAlgorithm

public ScalingPlanPooledScheduleInner withRampUpLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm rampUpLoadBalancingAlgorithm)

Set the rampUpLoadBalancingAlgorithm property: Load balancing algorithm for ramp up period.

Parameters:

rampUpLoadBalancingAlgorithm - the rampUpLoadBalancingAlgorithm value to set.

Returns:

the ScalingPlanPooledScheduleInner object itself.

withRampUpMinimumHostsPct

public ScalingPlanPooledScheduleInner withRampUpMinimumHostsPct(Integer rampUpMinimumHostsPct)

Set the rampUpMinimumHostsPct property: Minimum host percentage for ramp up period.

Parameters:

rampUpMinimumHostsPct - the rampUpMinimumHostsPct value to set.

Returns:

the ScalingPlanPooledScheduleInner object itself.

withRampUpStartTime

public ScalingPlanPooledScheduleInner withRampUpStartTime(Time rampUpStartTime)

Set the rampUpStartTime property: Starting time for ramp up period.

Parameters:

rampUpStartTime - the rampUpStartTime value to set.

Returns:

the ScalingPlanPooledScheduleInner object itself.

Applies to