Partager via


LoadBalancerFrontendIpConfiguration Class

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

Implements

public final class LoadBalancerFrontendIpConfiguration
implements JsonSerializable<LoadBalancerFrontendIpConfiguration>

Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration.

Constructor Summary

Constructor Description
LoadBalancerFrontendIpConfiguration()

Creates an instance of LoadBalancerFrontendIpConfiguration class.

Method Summary

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

Reads an instance of LoadBalancerFrontendIpConfiguration from the JsonReader.

String name()

Get the name property: The name of the resource that is unique within the set of frontend IP configurations used by the load balancer.

LoadBalancerFrontendIpConfigurationProperties properties()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LoadBalancerFrontendIpConfiguration withName(String name)

Set the name property: The name of the resource that is unique within the set of frontend IP configurations used by the load balancer.

LoadBalancerFrontendIpConfiguration withProperties(LoadBalancerFrontendIpConfigurationProperties properties)

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

Methods inherited from java.lang.Object

Constructor Details

LoadBalancerFrontendIpConfiguration

public LoadBalancerFrontendIpConfiguration()

Creates an instance of LoadBalancerFrontendIpConfiguration class.

Method Details

fromJson

public static LoadBalancerFrontendIpConfiguration fromJson(JsonReader jsonReader)

Reads an instance of LoadBalancerFrontendIpConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource.

Returns:

the name value.

properties

public LoadBalancerFrontendIpConfigurationProperties properties()

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

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public LoadBalancerFrontendIpConfiguration withName(String name)

Set the name property: The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource.

Parameters:

name - the name value to set.

Returns:

the LoadBalancerFrontendIpConfiguration object itself.

withProperties

public LoadBalancerFrontendIpConfiguration withProperties(LoadBalancerFrontendIpConfigurationProperties properties)

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

Parameters:

properties - the properties value to set.

Returns:

the LoadBalancerFrontendIpConfiguration object itself.

Applies to