Partilhar via


ApplicationGatewayAutoscaleConfiguration Class

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

Implements

public final class ApplicationGatewayAutoscaleConfiguration
implements JsonSerializable<ApplicationGatewayAutoscaleConfiguration>

Application Gateway autoscale configuration.

Constructor Summary

Constructor Description
ApplicationGatewayAutoscaleConfiguration()

Creates an instance of ApplicationGatewayAutoscaleConfiguration class.

Method Summary

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

Reads an instance of ApplicationGatewayAutoscaleConfiguration from the JsonReader.

Integer maxCapacity()

Get the maxCapacity property: Upper bound on number of Application Gateway capacity.

int minCapacity()

Get the minCapacity property: Lower bound on number of Application Gateway capacity.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApplicationGatewayAutoscaleConfiguration withMaxCapacity(Integer maxCapacity)

Set the maxCapacity property: Upper bound on number of Application Gateway capacity.

ApplicationGatewayAutoscaleConfiguration withMinCapacity(int minCapacity)

Set the minCapacity property: Lower bound on number of Application Gateway capacity.

Methods inherited from java.lang.Object

Constructor Details

ApplicationGatewayAutoscaleConfiguration

public ApplicationGatewayAutoscaleConfiguration()

Creates an instance of ApplicationGatewayAutoscaleConfiguration class.

Method Details

fromJson

public static ApplicationGatewayAutoscaleConfiguration fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayAutoscaleConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

maxCapacity

public Integer maxCapacity()

Get the maxCapacity property: Upper bound on number of Application Gateway capacity.

Returns:

the maxCapacity value.

minCapacity

public int minCapacity()

Get the minCapacity property: Lower bound on number of Application Gateway capacity.

Returns:

the minCapacity value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMaxCapacity

public ApplicationGatewayAutoscaleConfiguration withMaxCapacity(Integer maxCapacity)

Set the maxCapacity property: Upper bound on number of Application Gateway capacity.

Parameters:

maxCapacity - the maxCapacity value to set.

Returns:

the ApplicationGatewayAutoscaleConfiguration object itself.

withMinCapacity

public ApplicationGatewayAutoscaleConfiguration withMinCapacity(int minCapacity)

Set the minCapacity property: Lower bound on number of Application Gateway capacity.

Parameters:

minCapacity - the minCapacity value to set.

Returns:

the ApplicationGatewayAutoscaleConfiguration object itself.

Applies to