Partager via


LoadBalancerConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.LoadBalancerConfiguration

Implements

public final class LoadBalancerConfiguration
implements JsonSerializable<LoadBalancerConfiguration>

Describes the load balancer configuration.

Constructor Summary

Constructor Description
LoadBalancerConfiguration()

Creates an instance of LoadBalancerConfiguration class.

Method Summary

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

Reads an instance of LoadBalancerConfiguration from the JsonReader.

String id()

Get the id property: Resource Id.

String name()

Get the name property: The name of the Load balancer.

LoadBalancerConfigurationProperties properties()

Get the properties property: Properties of the load balancer configuration.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LoadBalancerConfiguration withId(String id)

Set the id property: Resource Id.

LoadBalancerConfiguration withName(String name)

Set the name property: The name of the Load balancer.

LoadBalancerConfiguration withProperties(LoadBalancerConfigurationProperties properties)

Set the properties property: Properties of the load balancer configuration.

Methods inherited from java.lang.Object

Constructor Details

LoadBalancerConfiguration

public LoadBalancerConfiguration()

Creates an instance of LoadBalancerConfiguration class.

Method Details

fromJson

public static LoadBalancerConfiguration fromJson(JsonReader jsonReader)

Reads an instance of LoadBalancerConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of LoadBalancerConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Resource Id.

Returns:

the id value.

name

public String name()

Get the name property: The name of the Load balancer.

Returns:

the name value.

properties

public LoadBalancerConfigurationProperties properties()

Get the properties property: Properties of the load balancer configuration.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public LoadBalancerConfiguration withId(String id)

Set the id property: Resource Id.

Parameters:

id - the id value to set.

Returns:

the LoadBalancerConfiguration object itself.

withName

public LoadBalancerConfiguration withName(String name)

Set the name property: The name of the Load balancer.

Parameters:

name - the name value to set.

Returns:

the LoadBalancerConfiguration object itself.

withProperties

public LoadBalancerConfiguration withProperties(LoadBalancerConfigurationProperties properties)

Set the properties property: Properties of the load balancer configuration.

Parameters:

properties - the properties value to set.

Returns:

the LoadBalancerConfiguration object itself.

Applies to