Partager via


LoadBalancerInner Class

public final class LoadBalancerInner
extends Resource

LoadBalancer resource.

Constructor Summary

Constructor Description
LoadBalancerInner()

Creates an instance of LoadBalancerInner class.

Method Summary

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

Get the backendAddressPools property: Collection of backend address pools used by a load balancer.

String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

ExtendedLocation extendedLocation()

Get the extendedLocation property: The extended location of the load balancer.

static LoadBalancerInner fromJson(JsonReader jsonReader)

Reads an instance of LoadBalancerInner from the JsonReader.

List<FrontendIpConfigurationInner> frontendIpConfigurations()

Get the frontendIpConfigurations property: Object representing the frontend IPs to be used for the load balancer.

String id()

Get the id property: Resource ID.

List<InboundNatPool> inboundNatPools()

Get the inboundNatPools property: Defines an external port range for inbound NAT to a single backend port on NICs associated with a load balancer.

List<InboundNatRuleInner> inboundNatRules()

Get the inboundNatRules property: Collection of inbound NAT Rules used by a load balancer.

List<LoadBalancingRuleInner> loadBalancingRules()

Get the loadBalancingRules property: Object collection representing the load balancing rules Gets the provisioning.

String name()

Get the name property: The name of the resource.

List<OutboundRuleInner> outboundRules()

Get the outboundRules property: The outbound rules.

List<ProbeInner> probes()

Get the probes property: Collection of probe objects used in the load balancer.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the load balancer resource.

String resourceGuid()

Get the resourceGuid property: The resource GUID property of the load balancer resource.

LoadBalancerSku sku()

Get the sku property: The load balancer SKU.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

LoadBalancerInner withBackendAddressPools(List<BackendAddressPoolInner> backendAddressPools)

Set the backendAddressPools property: Collection of backend address pools used by a load balancer.

LoadBalancerInner withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: The extended location of the load balancer.

LoadBalancerInner withFrontendIpConfigurations(List<FrontendIpConfigurationInner> frontendIpConfigurations)

Set the frontendIpConfigurations property: Object representing the frontend IPs to be used for the load balancer.

LoadBalancerInner withId(String id)

Set the id property: Resource ID.

LoadBalancerInner withInboundNatPools(List<InboundNatPool> inboundNatPools)

Set the inboundNatPools property: Defines an external port range for inbound NAT to a single backend port on NICs associated with a load balancer.

LoadBalancerInner withInboundNatRules(List<InboundNatRuleInner> inboundNatRules)

Set the inboundNatRules property: Collection of inbound NAT Rules used by a load balancer.

LoadBalancerInner withLoadBalancingRules(List<LoadBalancingRuleInner> loadBalancingRules)

Set the loadBalancingRules property: Object collection representing the load balancing rules Gets the provisioning.

LoadBalancerInner withLocation(String location)
LoadBalancerInner withOutboundRules(List<OutboundRuleInner> outboundRules)

Set the outboundRules property: The outbound rules.

LoadBalancerInner withProbes(List<ProbeInner> probes)

Set the probes property: Collection of probe objects used in the load balancer.

LoadBalancerInner withSku(LoadBalancerSku sku)

Set the sku property: The load balancer SKU.

LoadBalancerInner withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

LoadBalancerInner

public LoadBalancerInner()

Creates an instance of LoadBalancerInner class.

Method Details

backendAddressPools

public List backendAddressPools()

Get the backendAddressPools property: Collection of backend address pools used by a load balancer.

Returns:

the backendAddressPools value.

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

extendedLocation

public ExtendedLocation extendedLocation()

Get the extendedLocation property: The extended location of the load balancer.

Returns:

the extendedLocation value.

fromJson

public static LoadBalancerInner fromJson(JsonReader jsonReader)

Reads an instance of LoadBalancerInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

frontendIpConfigurations

public List frontendIpConfigurations()

Get the frontendIpConfigurations property: Object representing the frontend IPs to be used for the load balancer.

Returns:

the frontendIpConfigurations value.

id

public String id()

Get the id property: Resource ID.

Overrides:

LoadBalancerInner.id()

Returns:

the id value.

inboundNatPools

public List inboundNatPools()

Get the inboundNatPools property: Defines an external port range for inbound NAT to a single backend port on NICs associated with a load balancer. Inbound NAT rules are created automatically for each NIC associated with the Load Balancer using an external port from this range. Defining an Inbound NAT pool on your Load Balancer is mutually exclusive with defining inbound NAT rules. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an inbound NAT pool. They have to reference individual inbound NAT rules.

Returns:

the inboundNatPools value.

inboundNatRules

public List inboundNatRules()

Get the inboundNatRules property: Collection of inbound NAT Rules used by a load balancer. Defining inbound NAT rules on your load balancer is mutually exclusive with defining an inbound NAT pool. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an Inbound NAT pool. They have to reference individual inbound NAT rules.

Returns:

the inboundNatRules value.

loadBalancingRules

public List loadBalancingRules()

Get the loadBalancingRules property: Object collection representing the load balancing rules Gets the provisioning.

Returns:

the loadBalancingRules value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

LoadBalancerInner.name()

Returns:

the name value.

outboundRules

public List outboundRules()

Get the outboundRules property: The outbound rules.

Returns:

the outboundRules value.

probes

public List probes()

Get the probes property: Collection of probe objects used in the load balancer.

Returns:

the probes value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the load balancer resource.

Returns:

the provisioningState value.

resourceGuid

public String resourceGuid()

Get the resourceGuid property: The resource GUID property of the load balancer resource.

Returns:

the resourceGuid value.

sku

public LoadBalancerSku sku()

Get the sku property: The load balancer SKU.

Returns:

the sku value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

LoadBalancerInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

LoadBalancerInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withBackendAddressPools

public LoadBalancerInner withBackendAddressPools(List backendAddressPools)

Set the backendAddressPools property: Collection of backend address pools used by a load balancer.

Parameters:

backendAddressPools - the backendAddressPools value to set.

Returns:

the LoadBalancerInner object itself.

withExtendedLocation

public LoadBalancerInner withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: The extended location of the load balancer.

Parameters:

extendedLocation - the extendedLocation value to set.

Returns:

the LoadBalancerInner object itself.

withFrontendIpConfigurations

public LoadBalancerInner withFrontendIpConfigurations(List frontendIpConfigurations)

Set the frontendIpConfigurations property: Object representing the frontend IPs to be used for the load balancer.

Parameters:

frontendIpConfigurations - the frontendIpConfigurations value to set.

Returns:

the LoadBalancerInner object itself.

withId

public LoadBalancerInner withId(String id)

Set the id property: Resource ID.

Parameters:

id - the id value to set.

Returns:

the LoadBalancerInner object itself.

withInboundNatPools

public LoadBalancerInner withInboundNatPools(List inboundNatPools)

Set the inboundNatPools property: Defines an external port range for inbound NAT to a single backend port on NICs associated with a load balancer. Inbound NAT rules are created automatically for each NIC associated with the Load Balancer using an external port from this range. Defining an Inbound NAT pool on your Load Balancer is mutually exclusive with defining inbound NAT rules. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an inbound NAT pool. They have to reference individual inbound NAT rules.

Parameters:

inboundNatPools - the inboundNatPools value to set.

Returns:

the LoadBalancerInner object itself.

withInboundNatRules

public LoadBalancerInner withInboundNatRules(List inboundNatRules)

Set the inboundNatRules property: Collection of inbound NAT Rules used by a load balancer. Defining inbound NAT rules on your load balancer is mutually exclusive with defining an inbound NAT pool. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an Inbound NAT pool. They have to reference individual inbound NAT rules.

Parameters:

inboundNatRules - the inboundNatRules value to set.

Returns:

the LoadBalancerInner object itself.

withLoadBalancingRules

public LoadBalancerInner withLoadBalancingRules(List loadBalancingRules)

Set the loadBalancingRules property: Object collection representing the load balancing rules Gets the provisioning.

Parameters:

loadBalancingRules - the loadBalancingRules value to set.

Returns:

the LoadBalancerInner object itself.

withLocation

public LoadBalancerInner withLocation(String location)

Overrides:

LoadBalancerInner.withLocation(String location)

Parameters:

location

withOutboundRules

public LoadBalancerInner withOutboundRules(List outboundRules)

Set the outboundRules property: The outbound rules.

Parameters:

outboundRules - the outboundRules value to set.

Returns:

the LoadBalancerInner object itself.

withProbes

public LoadBalancerInner withProbes(List probes)

Set the probes property: Collection of probe objects used in the load balancer.

Parameters:

probes - the probes value to set.

Returns:

the LoadBalancerInner object itself.

withSku

public LoadBalancerInner withSku(LoadBalancerSku sku)

Set the sku property: The load balancer SKU.

Parameters:

sku - the sku value to set.

Returns:

the LoadBalancerInner object itself.

withTags

public LoadBalancerInner withTags(Map tags)

Overrides:

LoadBalancerInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to