VirtualRouterAutoScaleConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.VirtualRouterAutoScaleConfiguration

Implements

public final class VirtualRouterAutoScaleConfiguration
implements JsonSerializable<VirtualRouterAutoScaleConfiguration>

The VirtualHub Router autoscale configuration.

Constructor Summary

Constructor Description
VirtualRouterAutoScaleConfiguration()

Creates an instance of VirtualRouterAutoScaleConfiguration class.

Method Summary

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

Reads an instance of VirtualRouterAutoScaleConfiguration from the JsonReader.

Integer minCapacity()

Get the minCapacity property: The minimum number of scale units for VirtualHub Router.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualRouterAutoScaleConfiguration withMinCapacity(Integer minCapacity)

Set the minCapacity property: The minimum number of scale units for VirtualHub Router.

Methods inherited from java.lang.Object

Constructor Details

VirtualRouterAutoScaleConfiguration

public VirtualRouterAutoScaleConfiguration()

Creates an instance of VirtualRouterAutoScaleConfiguration class.

Method Details

fromJson

public static VirtualRouterAutoScaleConfiguration fromJson(JsonReader jsonReader)

Reads an instance of VirtualRouterAutoScaleConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualRouterAutoScaleConfiguration 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 VirtualRouterAutoScaleConfiguration.

minCapacity

public Integer minCapacity()

Get the minCapacity property: The minimum number of scale units for VirtualHub Router.

Returns:

the minCapacity value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMinCapacity

public VirtualRouterAutoScaleConfiguration withMinCapacity(Integer minCapacity)

Set the minCapacity property: The minimum number of scale units for VirtualHub Router.

Parameters:

minCapacity - the minCapacity value to set.

Returns:

the VirtualRouterAutoScaleConfiguration object itself.

Applies to