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 Details

    • LoadBalancerHealthPerRuleInner

      public LoadBalancerHealthPerRuleInner()
      Creates an instance of LoadBalancerHealthPerRuleInner class.
  • Method Details

    • up

      public Integer 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

      public Integer down()
      Get the down property: Number of backend instances associated to the LB rule that are considered unhealthy.
      Returns:
      the down value.
    • withDown

      public LoadBalancerHealthPerRuleInner withDown(Integer down)
      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

      public List<LoadBalancerHealthPerRulePerBackendAddressInner> 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.