Class LoadBalancerHealthPerRulePerBackendAddressInner

java.lang.Object
com.azure.resourcemanager.network.fluent.models.LoadBalancerHealthPerRulePerBackendAddressInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<LoadBalancerHealthPerRulePerBackendAddressInner>

public final class LoadBalancerHealthPerRulePerBackendAddressInner extends Object implements com.azure.json.JsonSerializable<LoadBalancerHealthPerRulePerBackendAddressInner>
The information about health per rule per backend address.
  • Constructor Details

    • LoadBalancerHealthPerRulePerBackendAddressInner

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

    • ipAddress

      public String ipAddress()
      Get the ipAddress property: The IP address belonging to the backend address.
      Returns:
      the ipAddress value.
    • withIpAddress

      public LoadBalancerHealthPerRulePerBackendAddressInner withIpAddress(String ipAddress)
      Set the ipAddress property: The IP address belonging to the backend address.
      Parameters:
      ipAddress - the ipAddress value to set.
      Returns:
      the LoadBalancerHealthPerRulePerBackendAddressInner object itself.
    • networkInterfaceIpConfigurationId

      public NetworkInterfaceIpConfigurationInner networkInterfaceIpConfigurationId()
      Get the networkInterfaceIpConfigurationId property: The id of the network interface ip configuration belonging to the backend address.
      Returns:
      the networkInterfaceIpConfigurationId value.
    • withNetworkInterfaceIpConfigurationId

      public LoadBalancerHealthPerRulePerBackendAddressInner withNetworkInterfaceIpConfigurationId(NetworkInterfaceIpConfigurationInner networkInterfaceIpConfigurationId)
      Set the networkInterfaceIpConfigurationId property: The id of the network interface ip configuration belonging to the backend address.
      Parameters:
      networkInterfaceIpConfigurationId - the networkInterfaceIpConfigurationId value to set.
      Returns:
      the LoadBalancerHealthPerRulePerBackendAddressInner object itself.
    • state

      public String state()
      Get the state property: The current health of the backend instances that is associated to the LB rule.
      Returns:
      the state value.
    • withState

      Set the state property: The current health of the backend instances that is associated to the LB rule.
      Parameters:
      state - the state value to set.
      Returns:
      the LoadBalancerHealthPerRulePerBackendAddressInner object itself.
    • reason

      public String reason()
      Get the reason property: The explanation of the State.
      Returns:
      the reason value.
    • withReason

      Set the reason property: The explanation of the State.
      Parameters:
      reason - the reason value to set.
      Returns:
      the LoadBalancerHealthPerRulePerBackendAddressInner 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<LoadBalancerHealthPerRulePerBackendAddressInner>
      Throws:
      IOException
    • fromJson

      public static LoadBalancerHealthPerRulePerBackendAddressInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of LoadBalancerHealthPerRulePerBackendAddressInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of LoadBalancerHealthPerRulePerBackendAddressInner 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 LoadBalancerHealthPerRulePerBackendAddressInner.