Share via


LoadBalancerResourceSettings Class

public final class LoadBalancerResourceSettings
extends ResourceSettings

Defines the load balancer resource settings.

Constructor Summary

Constructor Description
LoadBalancerResourceSettings()

Creates an instance of LoadBalancerResourceSettings class.

Method Summary

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

Get the backendAddressPools property: Gets or sets the backend address pools of the load balancer.

static LoadBalancerResourceSettings fromJson(JsonReader jsonReader)

Reads an instance of LoadBalancerResourceSettings from the JsonReader.

List<LBFrontendIpConfigurationResourceSettings> frontendIpConfigurations()

Get the frontendIpConfigurations property: Gets or sets the frontend IP configurations of the load balancer.

String resourceType()

Get the resourceType property: The resource type.

String sku()

Get the sku property: Gets or sets load balancer sku (Basic/Standard).

Map<String,String> tags()

Get the tags property: Gets or sets the Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LoadBalancerResourceSettings withBackendAddressPools(List<LBBackendAddressPoolResourceSettings> backendAddressPools)

Set the backendAddressPools property: Gets or sets the backend address pools of the load balancer.

LoadBalancerResourceSettings withFrontendIpConfigurations(List<LBFrontendIpConfigurationResourceSettings> frontendIpConfigurations)

Set the frontendIpConfigurations property: Gets or sets the frontend IP configurations of the load balancer.

LoadBalancerResourceSettings withSku(String sku)

Set the sku property: Gets or sets load balancer sku (Basic/Standard).

LoadBalancerResourceSettings withTags(Map<String,String> tags)

Set the tags property: Gets or sets the Resource tags.

LoadBalancerResourceSettings withTargetResourceGroupName(String targetResourceGroupName)

Set the targetResourceGroupName property: Gets or sets the target resource group name.

LoadBalancerResourceSettings withTargetResourceName(String targetResourceName)

Set the targetResourceName property: Gets or sets the target Resource name.

LoadBalancerResourceSettings withZones(String zones)

Set the zones property: Gets or sets the csv list of zones common for all frontend IP configurations.

String zones()

Get the zones property: Gets or sets the csv list of zones common for all frontend IP configurations.

Methods inherited from ResourceSettings

Methods inherited from java.lang.Object

Constructor Details

LoadBalancerResourceSettings

public LoadBalancerResourceSettings()

Creates an instance of LoadBalancerResourceSettings class.

Method Details

backendAddressPools

public List<LBBackendAddressPoolResourceSettings> backendAddressPools()

Get the backendAddressPools property: Gets or sets the backend address pools of the load balancer.

Returns:

the backendAddressPools value.

fromJson

public static LoadBalancerResourceSettings fromJson(JsonReader jsonReader)

Reads an instance of LoadBalancerResourceSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

frontendIpConfigurations

public List<LBFrontendIpConfigurationResourceSettings> frontendIpConfigurations()

Get the frontendIpConfigurations property: Gets or sets the frontend IP configurations of the load balancer.

Returns:

the frontendIpConfigurations value.

resourceType

public String resourceType()

Get the resourceType property: The resource type. For example, the value can be Microsoft.Compute/virtualMachines.

Overrides:

LoadBalancerResourceSettings.resourceType()

Returns:

the resourceType value.

sku

public String sku()

Get the sku property: Gets or sets load balancer sku (Basic/Standard).

Returns:

the sku value.

tags

public Map<String,String> tags()

Get the tags property: Gets or sets the Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

LoadBalancerResourceSettings.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

LoadBalancerResourceSettings.validate()

withBackendAddressPools

public LoadBalancerResourceSettings withBackendAddressPools(List<LBBackendAddressPoolResourceSettings> backendAddressPools)

Set the backendAddressPools property: Gets or sets the backend address pools of the load balancer.

Parameters:

backendAddressPools - the backendAddressPools value to set.

Returns:

the LoadBalancerResourceSettings object itself.

withFrontendIpConfigurations

public LoadBalancerResourceSettings withFrontendIpConfigurations(List<LBFrontendIpConfigurationResourceSettings> frontendIpConfigurations)

Set the frontendIpConfigurations property: Gets or sets the frontend IP configurations of the load balancer.

Parameters:

frontendIpConfigurations - the frontendIpConfigurations value to set.

Returns:

the LoadBalancerResourceSettings object itself.

withSku

public LoadBalancerResourceSettings withSku(String sku)

Set the sku property: Gets or sets load balancer sku (Basic/Standard).

Parameters:

sku - the sku value to set.

Returns:

the LoadBalancerResourceSettings object itself.

withTags

public LoadBalancerResourceSettings withTags(Map<String,String> tags)

Set the tags property: Gets or sets the Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the LoadBalancerResourceSettings object itself.

withTargetResourceGroupName

public LoadBalancerResourceSettings withTargetResourceGroupName(String targetResourceGroupName)

Set the targetResourceGroupName property: Gets or sets the target resource group name.

Overrides:

LoadBalancerResourceSettings.withTargetResourceGroupName(String targetResourceGroupName)

Parameters:

targetResourceGroupName

withTargetResourceName

public LoadBalancerResourceSettings withTargetResourceName(String targetResourceName)

Set the targetResourceName property: Gets or sets the target Resource name.

Overrides:

LoadBalancerResourceSettings.withTargetResourceName(String targetResourceName)

Parameters:

targetResourceName

withZones

public LoadBalancerResourceSettings withZones(String zones)

Set the zones property: Gets or sets the csv list of zones common for all frontend IP configurations. Note this is given precedence only if frontend IP configurations settings are not present.

Parameters:

zones - the zones value to set.

Returns:

the LoadBalancerResourceSettings object itself.

zones

public String zones()

Get the zones property: Gets or sets the csv list of zones common for all frontend IP configurations. Note this is given precedence only if frontend IP configurations settings are not present.

Returns:

the zones value.

Applies to