Partager via


LoadBalancerHealthPerRuleInner Class

  • java.lang.Object
    • com.azure.resourcemanager.network.fluent.models.LoadBalancerHealthPerRuleInner

Implements

public final class LoadBalancerHealthPerRuleInner
implements JsonSerializable<LoadBalancerHealthPerRuleInner>

The response for a Health API.

Constructor Summary

Constructor Description
LoadBalancerHealthPerRuleInner()

Creates an instance of LoadBalancerHealthPerRuleInner class.

Method Summary

Modifier and Type Method and Description
Integer down()

Get the down property: Number of backend instances associated to the LB rule that are considered unhealthy.

static LoadBalancerHealthPerRuleInner fromJson(JsonReader jsonReader)

Reads an instance of LoadBalancerHealthPerRuleInner from the JsonReader.

List<LoadBalancerHealthPerRulePerBackendAddressInner> loadBalancerBackendAddresses()

Get the loadBalancerBackendAddresses property: Information about the health per rule of the backend addresses.

JsonWriter toJson(JsonWriter jsonWriter)
Integer up()

Get the up property: Number of backend instances associated to the LB rule that are considered healthy.

void validate()

Validates the instance.

LoadBalancerHealthPerRuleInner withDown(Integer down)

Set the down property: Number of backend instances associated to the LB rule that are considered unhealthy.

LoadBalancerHealthPerRuleInner withLoadBalancerBackendAddresses(List<LoadBalancerHealthPerRulePerBackendAddressInner> loadBalancerBackendAddresses)

Set the loadBalancerBackendAddresses property: Information about the health per rule of the backend addresses.

LoadBalancerHealthPerRuleInner withUp(Integer up)

Set the up property: Number of backend instances associated to the LB rule that are considered healthy.

Methods inherited from java.lang.Object

Constructor Details

LoadBalancerHealthPerRuleInner

public LoadBalancerHealthPerRuleInner()

Creates an instance of LoadBalancerHealthPerRuleInner class.

Method Details

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.

fromJson

public static LoadBalancerHealthPerRuleInner fromJson(JsonReader jsonReader)

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.

loadBalancerBackendAddresses

public List loadBalancerBackendAddresses()

Get the loadBalancerBackendAddresses property: Information about the health per rule of the backend addresses.

Returns:

the loadBalancerBackendAddresses value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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.

validate

public void validate()

Validates the instance.

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.

withLoadBalancerBackendAddresses

public LoadBalancerHealthPerRuleInner withLoadBalancerBackendAddresses(List 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.

withUp

public LoadBalancerHealthPerRuleInner withUp(Integer up)

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.

Applies to