LoadBalancer Class

  • java.lang.Object
    • com.azure.resourcemanager.containerinstance.models.LoadBalancer

Implements

public final class LoadBalancer
implements JsonSerializable<LoadBalancer>

LoadBalancer the CG profile will use to interact with CGs in a backend pool.

Constructor Summary

Constructor Description
LoadBalancer()

Creates an instance of LoadBalancer class.

Method Summary

Modifier and Type Method and Description
List<LoadBalancerBackendAddressPool> backendAddressPools()

Get the backendAddressPools property: List of Load Balancer Backend Address Pools.

static LoadBalancer fromJson(JsonReader jsonReader)

Reads an instance of LoadBalancer from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LoadBalancer withBackendAddressPools(List<LoadBalancerBackendAddressPool> backendAddressPools)

Set the backendAddressPools property: List of Load Balancer Backend Address Pools.

Methods inherited from java.lang.Object

Constructor Details

LoadBalancer

public LoadBalancer()

Creates an instance of LoadBalancer class.

Method Details

backendAddressPools

public List<LoadBalancerBackendAddressPool> backendAddressPools()

Get the backendAddressPools property: List of Load Balancer Backend Address Pools.

Returns:

the backendAddressPools value.

fromJson

public static LoadBalancer fromJson(JsonReader jsonReader)

Reads an instance of LoadBalancer from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of LoadBalancer 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 LoadBalancer.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withBackendAddressPools

public LoadBalancer withBackendAddressPools(List<LoadBalancerBackendAddressPool> backendAddressPools)

Set the backendAddressPools property: List of Load Balancer Backend Address Pools.

Parameters:

backendAddressPools - the backendAddressPools value to set.

Returns:

the LoadBalancer object itself.

Applies to