ScalingHostPoolReference Class

  • java.lang.Object
    • com.azure.resourcemanager.desktopvirtualization.models.ScalingHostPoolReference

Implements

public final class ScalingHostPoolReference
implements JsonSerializable<ScalingHostPoolReference>

Scaling plan reference to hostpool.

Constructor Summary

Constructor Description
ScalingHostPoolReference()

Creates an instance of ScalingHostPoolReference class.

Method Summary

Modifier and Type Method and Description
static ScalingHostPoolReference fromJson(JsonReader jsonReader)

Reads an instance of ScalingHostPoolReference from the JsonReader.

String hostPoolArmPath()

Get the hostPoolArmPath property: Arm path of referenced hostpool.

Boolean scalingPlanEnabled()

Get the scalingPlanEnabled property: Is the scaling plan enabled for this hostpool.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ScalingHostPoolReference withHostPoolArmPath(String hostPoolArmPath)

Set the hostPoolArmPath property: Arm path of referenced hostpool.

ScalingHostPoolReference withScalingPlanEnabled(Boolean scalingPlanEnabled)

Set the scalingPlanEnabled property: Is the scaling plan enabled for this hostpool.

Methods inherited from java.lang.Object

Constructor Details

ScalingHostPoolReference

public ScalingHostPoolReference()

Creates an instance of ScalingHostPoolReference class.

Method Details

fromJson

public static ScalingHostPoolReference fromJson(JsonReader jsonReader)

Reads an instance of ScalingHostPoolReference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the ScalingHostPoolReference.

hostPoolArmPath

public String hostPoolArmPath()

Get the hostPoolArmPath property: Arm path of referenced hostpool.

Returns:

the hostPoolArmPath value.

scalingPlanEnabled

public Boolean scalingPlanEnabled()

Get the scalingPlanEnabled property: Is the scaling plan enabled for this hostpool.

Returns:

the scalingPlanEnabled value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withHostPoolArmPath

public ScalingHostPoolReference withHostPoolArmPath(String hostPoolArmPath)

Set the hostPoolArmPath property: Arm path of referenced hostpool.

Parameters:

hostPoolArmPath - the hostPoolArmPath value to set.

Returns:

the ScalingHostPoolReference object itself.

withScalingPlanEnabled

public ScalingHostPoolReference withScalingPlanEnabled(Boolean scalingPlanEnabled)

Set the scalingPlanEnabled property: Is the scaling plan enabled for this hostpool.

Parameters:

scalingPlanEnabled - the scalingPlanEnabled value to set.

Returns:

the ScalingHostPoolReference object itself.

Applies to