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 Summary
ConstructorsConstructorDescriptionCreates an instance of LoadBalancerHealthPerRulePerBackendAddressInner class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LoadBalancerHealthPerRulePerBackendAddressInner from the JsonReader.Get the ipAddress property: The IP address belonging to the backend address.Get the networkInterfaceIpConfigurationId property: The id of the network interface ip configuration belonging to the backend address.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(NetworkInterfaceIpConfigurationInner networkInterfaceIpConfigurationId) Set the networkInterfaceIpConfigurationId property: The id of the network interface ip configuration belonging to the backend address.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
-
LoadBalancerHealthPerRulePerBackendAddressInner
public LoadBalancerHealthPerRulePerBackendAddressInner()Creates an instance of LoadBalancerHealthPerRulePerBackendAddressInner 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 LoadBalancerHealthPerRulePerBackendAddressInner object itself.
-
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
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
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
- Specified by:
toJsonin interfacecom.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.
-