LoadBalancerPropertiesFormat Class

  • java.lang.Object
    • com.azure.resourcemanager.network.fluent.models.LoadBalancerPropertiesFormat

Implements

public final class LoadBalancerPropertiesFormat
implements JsonSerializable<LoadBalancerPropertiesFormat>

Properties of the load balancer.

Constructor Summary

Constructor Description
LoadBalancerPropertiesFormat()

Creates an instance of LoadBalancerPropertiesFormat 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.

static LoadBalancerPropertiesFormat fromJson(JsonReader jsonReader)

Reads an instance of LoadBalancerPropertiesFormat from the JsonReader.

List<FrontendIpConfigurationInner> frontendIpConfigurations()

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

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.

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.

LoadBalancerScope scope()

Get the scope property: Indicates the scope of the load balancer: external (Public) or internal (Private).

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LoadBalancerPropertiesFormat withBackendAddressPools(List<BackendAddressPoolInner> backendAddressPools)

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

LoadBalancerPropertiesFormat withFrontendIpConfigurations(List<FrontendIpConfigurationInner> frontendIpConfigurations)

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

LoadBalancerPropertiesFormat 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.

LoadBalancerPropertiesFormat withInboundNatRules(List<InboundNatRuleInner> inboundNatRules)

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

LoadBalancerPropertiesFormat withLoadBalancingRules(List<LoadBalancingRuleInner> loadBalancingRules)

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

LoadBalancerPropertiesFormat withOutboundRules(List<OutboundRuleInner> outboundRules)

Set the outboundRules property: The outbound rules.

LoadBalancerPropertiesFormat withProbes(List<ProbeInner> probes)

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

LoadBalancerPropertiesFormat withScope(LoadBalancerScope scope)

Set the scope property: Indicates the scope of the load balancer: external (Public) or internal (Private).

Methods inherited from java.lang.Object

Constructor Details

LoadBalancerPropertiesFormat

public LoadBalancerPropertiesFormat()

Creates an instance of LoadBalancerPropertiesFormat class.

Method Details

backendAddressPools

public List<BackendAddressPoolInner> backendAddressPools()

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

Returns:

the backendAddressPools value.

fromJson

public static LoadBalancerPropertiesFormat fromJson(JsonReader jsonReader)

Reads an instance of LoadBalancerPropertiesFormat from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

frontendIpConfigurations

public List<FrontendIpConfigurationInner> frontendIpConfigurations()

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

Returns:

the frontendIpConfigurations value.

inboundNatPools

public 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. 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<InboundNatRuleInner> 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<LoadBalancingRuleInner> loadBalancingRules()

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

Returns:

the loadBalancingRules value.

outboundRules

public List<OutboundRuleInner> outboundRules()

Get the outboundRules property: The outbound rules.

Returns:

the outboundRules value.

probes

public List<ProbeInner> 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.

scope

public LoadBalancerScope scope()

Get the scope property: Indicates the scope of the load balancer: external (Public) or internal (Private).

Returns:

the scope value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withBackendAddressPools

public LoadBalancerPropertiesFormat withBackendAddressPools(List<BackendAddressPoolInner> backendAddressPools)

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

Parameters:

backendAddressPools - the backendAddressPools value to set.

Returns:

the LoadBalancerPropertiesFormat object itself.

withFrontendIpConfigurations

public LoadBalancerPropertiesFormat withFrontendIpConfigurations(List<FrontendIpConfigurationInner> 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 LoadBalancerPropertiesFormat object itself.

withInboundNatPools

public LoadBalancerPropertiesFormat 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. 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 LoadBalancerPropertiesFormat object itself.

withInboundNatRules

public LoadBalancerPropertiesFormat withInboundNatRules(List<InboundNatRuleInner> 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 LoadBalancerPropertiesFormat object itself.

withLoadBalancingRules

public LoadBalancerPropertiesFormat withLoadBalancingRules(List<LoadBalancingRuleInner> loadBalancingRules)

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

Parameters:

loadBalancingRules - the loadBalancingRules value to set.

Returns:

the LoadBalancerPropertiesFormat object itself.

withOutboundRules

public LoadBalancerPropertiesFormat withOutboundRules(List<OutboundRuleInner> outboundRules)

Set the outboundRules property: The outbound rules.

Parameters:

outboundRules - the outboundRules value to set.

Returns:

the LoadBalancerPropertiesFormat object itself.

withProbes

public LoadBalancerPropertiesFormat withProbes(List<ProbeInner> probes)

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

Parameters:

probes - the probes value to set.

Returns:

the LoadBalancerPropertiesFormat object itself.

withScope

public LoadBalancerPropertiesFormat withScope(LoadBalancerScope scope)

Set the scope property: Indicates the scope of the load balancer: external (Public) or internal (Private).

Parameters:

scope - the scope value to set.

Returns:

the LoadBalancerPropertiesFormat object itself.

Applies to