Class LoadBalancerHealthPerRuleInner
java.lang.Object
com.azure.resourcemanager.network.fluent.models.LoadBalancerHealthPerRuleInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LoadBalancerHealthPerRuleInner>
public final class LoadBalancerHealthPerRuleInner
extends Object
implements com.azure.json.JsonSerializable<LoadBalancerHealthPerRuleInner>
The response for a Health API.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of LoadBalancerHealthPerRuleInner class. -
Method Summary
Modifier and TypeMethodDescriptiondown()Get the down property: Number of backend instances associated to the LB rule that are considered unhealthy.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LoadBalancerHealthPerRuleInner from the JsonReader.Get the loadBalancerBackendAddresses property: Information about the health per rule of the backend addresses.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) up()Get the up property: Number of backend instances associated to the LB rule that are considered healthy.voidvalidate()Validates the instance.Set the down property: Number of backend instances associated to the LB rule that are considered unhealthy.withLoadBalancerBackendAddresses(List<LoadBalancerHealthPerRulePerBackendAddressInner> loadBalancerBackendAddresses) Set the loadBalancerBackendAddresses property: Information about the health per rule of the backend addresses.Set the up property: Number of backend instances associated to the LB rule that are considered healthy.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
-
LoadBalancerHealthPerRuleInner
public LoadBalancerHealthPerRuleInner()Creates an instance of LoadBalancerHealthPerRuleInner class.
-
-
Method Details
-
up
Get the up property: Number of backend instances associated to the LB rule that are considered healthy.- Returns:
- the up value.
-
withUp
Set the up property: Number of backend instances associated to the LB rule that are considered healthy.- Parameters:
up- the up value to set.- Returns:
- the LoadBalancerHealthPerRuleInner object itself.
-
down
Get the down property: Number of backend instances associated to the LB rule that are considered unhealthy.- Returns:
- the down value.
-
withDown
Set the down property: Number of backend instances associated to the LB rule that are considered unhealthy.- Parameters:
down- the down value to set.- Returns:
- the LoadBalancerHealthPerRuleInner object itself.
-
loadBalancerBackendAddresses
Get the loadBalancerBackendAddresses property: Information about the health per rule of the backend addresses.- Returns:
- the loadBalancerBackendAddresses value.
-
withLoadBalancerBackendAddresses
public LoadBalancerHealthPerRuleInner withLoadBalancerBackendAddresses(List<LoadBalancerHealthPerRulePerBackendAddressInner> loadBalancerBackendAddresses) Set the loadBalancerBackendAddresses property: Information about the health per rule of the backend addresses.- Parameters:
loadBalancerBackendAddresses- the loadBalancerBackendAddresses value to set.- Returns:
- the LoadBalancerHealthPerRuleInner 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<LoadBalancerHealthPerRuleInner>- Throws:
IOException
-
fromJson
public static LoadBalancerHealthPerRuleInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of LoadBalancerHealthPerRuleInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of LoadBalancerHealthPerRuleInner 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 LoadBalancerHealthPerRuleInner.
-