Class ApplicationGatewayLoadDistributionTarget
java.lang.Object
com.azure.core.management.SubResource
com.azure.resourcemanager.network.models.ApplicationGatewayLoadDistributionTarget
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.SubResource>
public final class ApplicationGatewayLoadDistributionTarget
extends com.azure.core.management.SubResource
Load Distribution Target of an application gateway.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ApplicationGatewayLoadDistributionTarget class. -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.management.SubResourceGet the backendAddressPool property: Backend address pool resource of the application gateway.etag()Get the etag property: A unique read-only string that changes whenever the resource is updated.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApplicationGatewayLoadDistributionTarget from the JsonReader.name()Get the name property: Name of the load distribution policy that is unique within an Application Gateway.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Type of the resource.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.Set the name property: Name of the load distribution policy that is unique within an Application Gateway.withWeightPerServer(Integer weightPerServer) Set the weightPerServer property: Weight per server.Methods inherited from class com.azure.core.management.SubResource
idMethods 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
-
ApplicationGatewayLoadDistributionTarget
public ApplicationGatewayLoadDistributionTarget()Creates an instance of ApplicationGatewayLoadDistributionTarget class.
-
-
Method Details
-
name
Get the name property: Name of the load distribution policy that is unique within an Application Gateway.- Returns:
- the name value.
-
withName
Set the name property: Name of the load distribution policy that is unique within an Application Gateway.- Parameters:
name- the name value to set.- Returns:
- the ApplicationGatewayLoadDistributionTarget object itself.
-
etag
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
type
Get the type property: Type of the resource.- Returns:
- the type value.
-
withId
- Overrides:
withIdin classcom.azure.core.management.SubResource
-
weightPerServer
Get the weightPerServer property: Weight per server. Range between 1 and 100.- Returns:
- the weightPerServer value.
-
withWeightPerServer
Set the weightPerServer property: Weight per server. Range between 1 and 100.- Parameters:
weightPerServer- the weightPerServer value to set.- Returns:
- the ApplicationGatewayLoadDistributionTarget 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 ApplicationGatewayLoadDistributionTarget 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 ApplicationGatewayLoadDistributionTarget 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<com.azure.core.management.SubResource>- Overrides:
toJsonin classcom.azure.core.management.SubResource- Throws:
IOException
-
fromJson
public static ApplicationGatewayLoadDistributionTarget fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ApplicationGatewayLoadDistributionTarget from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ApplicationGatewayLoadDistributionTarget 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 ApplicationGatewayLoadDistributionTarget.
-