Class ApplicationGatewayLoadDistributionTarget
- java.lang.Object
-
- com.azure.core.management.SubResource
-
- com.azure.resourcemanager.network.models.ApplicationGatewayLoadDistributionTarget
-
public final class ApplicationGatewayLoadDistributionTarget extends com.azure.core.management.SubResourceLoad Distribution Target of an application gateway.
-
-
Constructor Summary
Constructors Constructor Description ApplicationGatewayLoadDistributionTarget()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.azure.core.management.SubResourcebackendAddressPool()Get the backendAddressPool property: Backend address pool resource of the application gateway.Stringetag()Get the etag property: A unique read-only string that changes whenever the resource is updated.Stringname()Get the name property: Name of the load distribution policy that is unique within an Application Gateway.Stringtype()Get the type property: Type of the resource.voidvalidate()Validates the instance.IntegerweightPerServer()Get the weightPerServer property: Weight per server.ApplicationGatewayLoadDistributionTargetwithBackendAddressPool(com.azure.core.management.SubResource backendAddressPool)Set the backendAddressPool property: Backend address pool resource of the application gateway.ApplicationGatewayLoadDistributionTargetwithId(String id)ApplicationGatewayLoadDistributionTargetwithName(String name)Set the name property: Name of the load distribution policy that is unique within an Application Gateway.ApplicationGatewayLoadDistributionTargetwithWeightPerServer(Integer weightPerServer)Set the weightPerServer property: Weight per server.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Name of the load distribution policy that is unique within an Application Gateway.- Returns:
- the name value.
-
withName
public ApplicationGatewayLoadDistributionTarget withName(String name)
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
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
type
public String type()
Get the type property: Type of the resource.- Returns:
- the type value.
-
withId
public ApplicationGatewayLoadDistributionTarget withId(String id)
- Overrides:
withIdin classcom.azure.core.management.SubResource
-
weightPerServer
public Integer weightPerServer()
Get the weightPerServer property: Weight per server. Range between 1 and 100.- Returns:
- the weightPerServer value.
-
withWeightPerServer
public ApplicationGatewayLoadDistributionTarget withWeightPerServer(Integer weightPerServer)
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.
-
-