ApplicationGatewayLoadDistributionTargetPropertiesFormat Class

  • java.lang.Object
    • com.azure.resourcemanager.network.fluent.models.ApplicationGatewayLoadDistributionTargetPropertiesFormat

Implements

public final class ApplicationGatewayLoadDistributionTargetPropertiesFormat
implements JsonSerializable<ApplicationGatewayLoadDistributionTargetPropertiesFormat>

The ApplicationGatewayLoadDistributionTargetPropertiesFormat model.

Constructor Summary

Constructor Description
ApplicationGatewayLoadDistributionTargetPropertiesFormat()

Creates an instance of ApplicationGatewayLoadDistributionTargetPropertiesFormat class.

Method Summary

Modifier and Type Method and Description
SubResource backendAddressPool()

Get the backendAddressPool property: Backend address pool resource of the application gateway.

static ApplicationGatewayLoadDistributionTargetPropertiesFormat fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayLoadDistributionTargetPropertiesFormat from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Integer weightPerServer()

Get the weightPerServer property: Weight per server.

ApplicationGatewayLoadDistributionTargetPropertiesFormat withBackendAddressPool(SubResource backendAddressPool)

Set the backendAddressPool property: Backend address pool resource of the application gateway.

ApplicationGatewayLoadDistributionTargetPropertiesFormat withWeightPerServer(Integer weightPerServer)

Set the weightPerServer property: Weight per server.

Methods inherited from java.lang.Object

Constructor Details

ApplicationGatewayLoadDistributionTargetPropertiesFormat

public ApplicationGatewayLoadDistributionTargetPropertiesFormat()

Creates an instance of ApplicationGatewayLoadDistributionTargetPropertiesFormat class.

Method Details

backendAddressPool

public SubResource backendAddressPool()

Get the backendAddressPool property: Backend address pool resource of the application gateway.

Returns:

the backendAddressPool value.

fromJson

public static ApplicationGatewayLoadDistributionTargetPropertiesFormat fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayLoadDistributionTargetPropertiesFormat from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

weightPerServer

public Integer weightPerServer()

Get the weightPerServer property: Weight per server. Range between 1 and 100.

Returns:

the weightPerServer value.

withBackendAddressPool

public ApplicationGatewayLoadDistributionTargetPropertiesFormat withBackendAddressPool(SubResource backendAddressPool)

Set the backendAddressPool property: Backend address pool resource of the application gateway.

Parameters:

backendAddressPool - the backendAddressPool value to set.

Returns:

the ApplicationGatewayLoadDistributionTargetPropertiesFormat object itself.

withWeightPerServer

public ApplicationGatewayLoadDistributionTargetPropertiesFormat withWeightPerServer(Integer weightPerServer)

Set the weightPerServer property: Weight per server. Range between 1 and 100.

Parameters:

weightPerServer - the weightPerServer value to set.

Returns:

the ApplicationGatewayLoadDistributionTargetPropertiesFormat object itself.

Applies to