VirtualNetworkGatewayAutoScaleBounds Class

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

Implements

public final class VirtualNetworkGatewayAutoScaleBounds
implements JsonSerializable<VirtualNetworkGatewayAutoScaleBounds>

The VirtualNetworkGatewayAutoScaleBounds model.

Constructor Summary

Constructor Description
VirtualNetworkGatewayAutoScaleBounds()

Creates an instance of VirtualNetworkGatewayAutoScaleBounds class.

Method Summary

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

Reads an instance of VirtualNetworkGatewayAutoScaleBounds from the JsonReader.

Integer max()

Get the max property: Maximum Scale Units for Autoscale configuration.

Integer min()

Get the min property: Minimum scale Units for Autoscale configuration.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualNetworkGatewayAutoScaleBounds withMax(Integer max)

Set the max property: Maximum Scale Units for Autoscale configuration.

VirtualNetworkGatewayAutoScaleBounds withMin(Integer min)

Set the min property: Minimum scale Units for Autoscale configuration.

Methods inherited from java.lang.Object

Constructor Details

VirtualNetworkGatewayAutoScaleBounds

public VirtualNetworkGatewayAutoScaleBounds()

Creates an instance of VirtualNetworkGatewayAutoScaleBounds class.

Method Details

fromJson

public static VirtualNetworkGatewayAutoScaleBounds fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkGatewayAutoScaleBounds from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

max

public Integer max()

Get the max property: Maximum Scale Units for Autoscale configuration.

Returns:

the max value.

min

public Integer min()

Get the min property: Minimum scale Units for Autoscale configuration.

Returns:

the min value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMax

public VirtualNetworkGatewayAutoScaleBounds withMax(Integer max)

Set the max property: Maximum Scale Units for Autoscale configuration.

Parameters:

max - the max value to set.

Returns:

the VirtualNetworkGatewayAutoScaleBounds object itself.

withMin

public VirtualNetworkGatewayAutoScaleBounds withMin(Integer min)

Set the min property: Minimum scale Units for Autoscale configuration.

Parameters:

min - the min value to set.

Returns:

the VirtualNetworkGatewayAutoScaleBounds object itself.

Applies to