Condividi tramite


LoadBalancerHealthPerRulePerBackendAddress Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.LoadBalancerHealthPerRulePerBackendAddress

Implements

public final class LoadBalancerHealthPerRulePerBackendAddress
implements JsonSerializable<LoadBalancerHealthPerRulePerBackendAddress>

The information about health per rule per backend address.

Constructor Summary

Constructor Description
LoadBalancerHealthPerRulePerBackendAddress()

Creates an instance of LoadBalancerHealthPerRulePerBackendAddress class.

Method Summary

Modifier and Type Method and Description
static LoadBalancerHealthPerRulePerBackendAddress fromJson(JsonReader jsonReader)

Reads an instance of LoadBalancerHealthPerRulePerBackendAddress from the JsonReader.

String ipAddress()

Get the ipAddress property: The IP address belonging to the backend address.

String networkInterfaceIpConfigurationId()

Get the networkInterfaceIpConfigurationId property: Resource ID of the Network Interface IP Configuration.

String reason()

Get the reason property: The explanation of the State.

String state()

Get the state property: The current health of the backend instances that is associated to the LB rule.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LoadBalancerHealthPerRulePerBackendAddress withIpAddress(String ipAddress)

Set the ipAddress property: The IP address belonging to the backend address.

LoadBalancerHealthPerRulePerBackendAddress withNetworkInterfaceIpConfigurationId(String networkInterfaceIpConfigurationId)

Set the networkInterfaceIpConfigurationId property: Resource ID of the Network Interface IP Configuration.

LoadBalancerHealthPerRulePerBackendAddress withReason(String reason)

Set the reason property: The explanation of the State.

LoadBalancerHealthPerRulePerBackendAddress withState(String state)

Set the state property: The current health of the backend instances that is associated to the LB rule.

Methods inherited from java.lang.Object

Constructor Details

LoadBalancerHealthPerRulePerBackendAddress

public LoadBalancerHealthPerRulePerBackendAddress()

Creates an instance of LoadBalancerHealthPerRulePerBackendAddress class.

Method Details

fromJson

public static LoadBalancerHealthPerRulePerBackendAddress fromJson(JsonReader jsonReader)

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.

ipAddress

public String ipAddress()

Get the ipAddress property: The IP address belonging to the backend address.

Returns:

the ipAddress value.

networkInterfaceIpConfigurationId

public String networkInterfaceIpConfigurationId()

Get the networkInterfaceIpConfigurationId property: Resource ID of the Network Interface IP Configuration.

Returns:

the networkInterfaceIpConfigurationId value.

reason

public String reason()

Get the reason property: The explanation of the State.

Returns:

the reason value.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIpAddress

public LoadBalancerHealthPerRulePerBackendAddress withIpAddress(String ipAddress)

Set the ipAddress property: The IP address belonging to the backend address.

Parameters:

ipAddress - the ipAddress value to set.

Returns:

the LoadBalancerHealthPerRulePerBackendAddress object itself.

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.

withReason

public LoadBalancerHealthPerRulePerBackendAddress withReason(String reason)

Set the reason property: The explanation of the State.

Parameters:

reason - the reason value to set.

Returns:

the LoadBalancerHealthPerRulePerBackendAddress object itself.

withState

public LoadBalancerHealthPerRulePerBackendAddress withState(String state)

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.

Applies to