Class ApplicationGatewayLoadDistributionTargetPropertiesFormat
java.lang.Object
com.azure.resourcemanager.network.fluent.models.ApplicationGatewayLoadDistributionTargetPropertiesFormat
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ApplicationGatewayLoadDistributionTargetPropertiesFormat>
public final class ApplicationGatewayLoadDistributionTargetPropertiesFormat
extends Object
implements com.azure.json.JsonSerializable<ApplicationGatewayLoadDistributionTargetPropertiesFormat>
The ApplicationGatewayLoadDistributionTargetPropertiesFormat model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ApplicationGatewayLoadDistributionTargetPropertiesFormat class. -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.management.SubResourceGet the backendAddressPool property: Backend address pool resource of the application gateway.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApplicationGatewayLoadDistributionTargetPropertiesFormat from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the weightPerServer property: Weight per server.withBackendAddressPool(com.azure.core.management.SubResource backendAddressPool) Set the backendAddressPool property: Backend address pool resource of the application gateway.withWeightPerServer(Integer weightPerServer) Set the weightPerServer property: Weight per server.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ApplicationGatewayLoadDistributionTargetPropertiesFormat
public ApplicationGatewayLoadDistributionTargetPropertiesFormat()Creates an instance of ApplicationGatewayLoadDistributionTargetPropertiesFormat class.
-
-
Method Details
-
weightPerServer
Get the weightPerServer property: Weight per server. Range between 1 and 100.- Returns:
- the weightPerServer value.
-
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.
-
backendAddressPool
public com.azure.core.management.SubResource backendAddressPool()Get the backendAddressPool property: Backend address pool resource of the application gateway.- Returns:
- the backendAddressPool value.
-
withBackendAddressPool
public ApplicationGatewayLoadDistributionTargetPropertiesFormat withBackendAddressPool(com.azure.core.management.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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ApplicationGatewayLoadDistributionTargetPropertiesFormat>- Throws:
IOException
-
fromJson
public static ApplicationGatewayLoadDistributionTargetPropertiesFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-