Class LoadBalancerHealthPerRulePerBackendAddress
java.lang.Object
com.azure.resourcemanager.network.models.LoadBalancerHealthPerRulePerBackendAddress
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LoadBalancerHealthPerRulePerBackendAddress>
public final class LoadBalancerHealthPerRulePerBackendAddress
extends Object
implements com.azure.json.JsonSerializable<LoadBalancerHealthPerRulePerBackendAddress>
The information about health per rule per backend address.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of LoadBalancerHealthPerRulePerBackendAddress class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LoadBalancerHealthPerRulePerBackendAddress from the JsonReader.Get the ipAddress property: The IP address belonging to the backend address.Get the networkInterfaceIpConfigurationId property: Resource ID of the Network Interface IP Configuration.reason()Get the reason property: The explanation of the State.state()Get the state property: The current health of the backend instances that is associated to the LB rule.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withIpAddress(String ipAddress) Set the ipAddress property: The IP address belonging to the backend address.withNetworkInterfaceIpConfigurationId(String networkInterfaceIpConfigurationId) Set the networkInterfaceIpConfigurationId property: Resource ID of the Network Interface IP Configuration.withReason(String reason) Set the reason property: The explanation of the State.Set the state property: The current health of the backend instances that is associated to the LB rule.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
-
LoadBalancerHealthPerRulePerBackendAddress
public LoadBalancerHealthPerRulePerBackendAddress()Creates an instance of LoadBalancerHealthPerRulePerBackendAddress class.
-
-
Method Details
-
ipAddress
Get the ipAddress property: The IP address belonging to the backend address.- Returns:
- the ipAddress value.
-
withIpAddress
Set the ipAddress property: The IP address belonging to the backend address.- Parameters:
ipAddress- the ipAddress value to set.- Returns:
- the LoadBalancerHealthPerRulePerBackendAddress object itself.
-
networkInterfaceIpConfigurationId
Get the networkInterfaceIpConfigurationId property: Resource ID of the Network Interface IP Configuration.- Returns:
- the networkInterfaceIpConfigurationId value.
-
withNetworkInterfaceIpConfigurationId
public LoadBalancerHealthPerRulePerBackendAddress withNetworkInterfaceIpConfigurationId(String networkInterfaceIpConfigurationId) Set the networkInterfaceIpConfigurationId property: Resource ID of the Network Interface IP Configuration.- Parameters:
networkInterfaceIpConfigurationId- the networkInterfaceIpConfigurationId value to set.- Returns:
- the LoadBalancerHealthPerRulePerBackendAddress object itself.
-
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 LoadBalancerHealthPerRulePerBackendAddress object itself.
-
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 LoadBalancerHealthPerRulePerBackendAddress 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<LoadBalancerHealthPerRulePerBackendAddress>- Throws:
IOException
-
fromJson
public static LoadBalancerHealthPerRulePerBackendAddress fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of LoadBalancerHealthPerRulePerBackendAddress from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of LoadBalancerHealthPerRulePerBackendAddress 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 LoadBalancerHealthPerRulePerBackendAddress.
-