LoadBalancingRulePropertiesFormat Class

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

Implements

public final class LoadBalancingRulePropertiesFormat
implements JsonSerializable<LoadBalancingRulePropertiesFormat>

Properties of the load balancer.

Constructor Summary

Constructor Description
LoadBalancingRulePropertiesFormat()

Creates an instance of LoadBalancingRulePropertiesFormat class.

Method Summary

Modifier and Type Method and Description
SubResource backendAddressPool()

Get the backendAddressPool property: A reference to a pool of DIPs.

List<SubResource> backendAddressPools()

Get the backendAddressPools property: An array of references to pool of DIPs.

Integer backendPort()

Get the backendPort property: The port used for internal connections on the endpoint.

Boolean disableOutboundSnat()

Get the disableOutboundSnat property: Configures SNAT for the VMs in the backend pool to use the publicIP address specified in the frontend of the load balancing rule.

Boolean enableConnectionTracking()

Get the enableConnectionTracking property: Defines whether connections between 2 communicating endpoints can be tracked and associated to the same backend VM over its lifetime when using UDP protocol.

Boolean enableFloatingIp()

Get the enableFloatingIp property: Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group.

Boolean enableTcpReset()

Get the enableTcpReset property: Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination.

static LoadBalancingRulePropertiesFormat fromJson(JsonReader jsonReader)

Reads an instance of LoadBalancingRulePropertiesFormat from the JsonReader.

SubResource frontendIpConfiguration()

Get the frontendIpConfiguration property: A reference to frontend IP addresses.

int frontendPort()

Get the frontendPort property: The port for the external endpoint.

Integer idleTimeoutInMinutes()

Get the idleTimeoutInMinutes property: The timeout for the TCP idle connection.

LoadDistribution loadDistribution()

Get the loadDistribution property: The load distribution policy for this rule.

SubResource probe()

Get the probe property: The reference to the load balancer probe used by the load balancing rule.

TransportProtocol protocol()

Get the protocol property: The reference to the transport protocol used by the load balancing rule.

ProvisioningState provisioningState()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LoadBalancingRulePropertiesFormat withBackendAddressPool(SubResource backendAddressPool)

Set the backendAddressPool property: A reference to a pool of DIPs.

LoadBalancingRulePropertiesFormat withBackendAddressPools(List<SubResource> backendAddressPools)

Set the backendAddressPools property: An array of references to pool of DIPs.

LoadBalancingRulePropertiesFormat withBackendPort(Integer backendPort)

Set the backendPort property: The port used for internal connections on the endpoint.

LoadBalancingRulePropertiesFormat withDisableOutboundSnat(Boolean disableOutboundSnat)

Set the disableOutboundSnat property: Configures SNAT for the VMs in the backend pool to use the publicIP address specified in the frontend of the load balancing rule.

LoadBalancingRulePropertiesFormat withEnableConnectionTracking(Boolean enableConnectionTracking)

Set the enableConnectionTracking property: Defines whether connections between 2 communicating endpoints can be tracked and associated to the same backend VM over its lifetime when using UDP protocol.

LoadBalancingRulePropertiesFormat withEnableFloatingIp(Boolean enableFloatingIp)

Set the enableFloatingIp property: Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group.

LoadBalancingRulePropertiesFormat withEnableTcpReset(Boolean enableTcpReset)

Set the enableTcpReset property: Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination.

LoadBalancingRulePropertiesFormat withFrontendIpConfiguration(SubResource frontendIpConfiguration)

Set the frontendIpConfiguration property: A reference to frontend IP addresses.

LoadBalancingRulePropertiesFormat withFrontendPort(int frontendPort)

Set the frontendPort property: The port for the external endpoint.

LoadBalancingRulePropertiesFormat withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes)

Set the idleTimeoutInMinutes property: The timeout for the TCP idle connection.

LoadBalancingRulePropertiesFormat withLoadDistribution(LoadDistribution loadDistribution)

Set the loadDistribution property: The load distribution policy for this rule.

LoadBalancingRulePropertiesFormat withProbe(SubResource probe)

Set the probe property: The reference to the load balancer probe used by the load balancing rule.

LoadBalancingRulePropertiesFormat withProtocol(TransportProtocol protocol)

Set the protocol property: The reference to the transport protocol used by the load balancing rule.

Methods inherited from java.lang.Object

Constructor Details

LoadBalancingRulePropertiesFormat

public LoadBalancingRulePropertiesFormat()

Creates an instance of LoadBalancingRulePropertiesFormat class.

Method Details

backendAddressPool

public SubResource backendAddressPool()

Get the backendAddressPool property: A reference to a pool of DIPs. Inbound traffic is randomly load balanced across IPs in the backend IPs.

Returns:

the backendAddressPool value.

backendAddressPools

public List<SubResource> backendAddressPools()

Get the backendAddressPools property: An array of references to pool of DIPs.

Returns:

the backendAddressPools value.

backendPort

public Integer backendPort()

Get the backendPort property: The port used for internal connections on the endpoint. Acceptable values are between 0 and 65535. Note that value 0 enables "Any Port".

Returns:

the backendPort value.

disableOutboundSnat

public Boolean disableOutboundSnat()

Get the disableOutboundSnat property: Configures SNAT for the VMs in the backend pool to use the publicIP address specified in the frontend of the load balancing rule.

Returns:

the disableOutboundSnat value.

enableConnectionTracking

public Boolean enableConnectionTracking()

Get the enableConnectionTracking property: Defines whether connections between 2 communicating endpoints can be tracked and associated to the same backend VM over its lifetime when using UDP protocol.

Returns:

the enableConnectionTracking value.

enableFloatingIp

public Boolean enableFloatingIp()

Get the enableFloatingIp property: Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint.

Returns:

the enableFloatingIp value.

enableTcpReset

public Boolean enableTcpReset()

Get the enableTcpReset property: Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP.

Returns:

the enableTcpReset value.

fromJson

public static LoadBalancingRulePropertiesFormat fromJson(JsonReader jsonReader)

Reads an instance of LoadBalancingRulePropertiesFormat from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

frontendIpConfiguration

public SubResource frontendIpConfiguration()

Get the frontendIpConfiguration property: A reference to frontend IP addresses.

Returns:

the frontendIpConfiguration value.

frontendPort

public int frontendPort()

Get the frontendPort property: The port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values are between 0 and 65534. Note that value 0 enables "Any Port".

Returns:

the frontendPort value.

idleTimeoutInMinutes

public Integer idleTimeoutInMinutes()

Get the idleTimeoutInMinutes property: The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP.

Returns:

the idleTimeoutInMinutes value.

loadDistribution

public LoadDistribution loadDistribution()

Get the loadDistribution property: The load distribution policy for this rule.

Returns:

the loadDistribution value.

probe

public SubResource probe()

Get the probe property: The reference to the load balancer probe used by the load balancing rule.

Returns:

the probe value.

protocol

public TransportProtocol protocol()

Get the protocol property: The reference to the transport protocol used by the load balancing rule.

Returns:

the protocol value.

provisioningState

public ProvisioningState provisioningState()

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

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withBackendAddressPool

public LoadBalancingRulePropertiesFormat withBackendAddressPool(SubResource backendAddressPool)

Set the backendAddressPool property: A reference to a pool of DIPs. Inbound traffic is randomly load balanced across IPs in the backend IPs.

Parameters:

backendAddressPool - the backendAddressPool value to set.

Returns:

the LoadBalancingRulePropertiesFormat object itself.

withBackendAddressPools

public LoadBalancingRulePropertiesFormat withBackendAddressPools(List<SubResource> backendAddressPools)

Set the backendAddressPools property: An array of references to pool of DIPs.

Parameters:

backendAddressPools - the backendAddressPools value to set.

Returns:

the LoadBalancingRulePropertiesFormat object itself.

withBackendPort

public LoadBalancingRulePropertiesFormat withBackendPort(Integer backendPort)

Set the backendPort property: The port used for internal connections on the endpoint. Acceptable values are between 0 and 65535. Note that value 0 enables "Any Port".

Parameters:

backendPort - the backendPort value to set.

Returns:

the LoadBalancingRulePropertiesFormat object itself.

withDisableOutboundSnat

public LoadBalancingRulePropertiesFormat withDisableOutboundSnat(Boolean disableOutboundSnat)

Set the disableOutboundSnat property: Configures SNAT for the VMs in the backend pool to use the publicIP address specified in the frontend of the load balancing rule.

Parameters:

disableOutboundSnat - the disableOutboundSnat value to set.

Returns:

the LoadBalancingRulePropertiesFormat object itself.

withEnableConnectionTracking

public LoadBalancingRulePropertiesFormat withEnableConnectionTracking(Boolean enableConnectionTracking)

Set the enableConnectionTracking property: Defines whether connections between 2 communicating endpoints can be tracked and associated to the same backend VM over its lifetime when using UDP protocol.

Parameters:

enableConnectionTracking - the enableConnectionTracking value to set.

Returns:

the LoadBalancingRulePropertiesFormat object itself.

withEnableFloatingIp

public LoadBalancingRulePropertiesFormat withEnableFloatingIp(Boolean enableFloatingIp)

Set the enableFloatingIp property: Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint.

Parameters:

enableFloatingIp - the enableFloatingIp value to set.

Returns:

the LoadBalancingRulePropertiesFormat object itself.

withEnableTcpReset

public LoadBalancingRulePropertiesFormat withEnableTcpReset(Boolean enableTcpReset)

Set the enableTcpReset property: Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP.

Parameters:

enableTcpReset - the enableTcpReset value to set.

Returns:

the LoadBalancingRulePropertiesFormat object itself.

withFrontendIpConfiguration

public LoadBalancingRulePropertiesFormat withFrontendIpConfiguration(SubResource frontendIpConfiguration)

Set the frontendIpConfiguration property: A reference to frontend IP addresses.

Parameters:

frontendIpConfiguration - the frontendIpConfiguration value to set.

Returns:

the LoadBalancingRulePropertiesFormat object itself.

withFrontendPort

public LoadBalancingRulePropertiesFormat withFrontendPort(int frontendPort)

Set the frontendPort property: The port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values are between 0 and 65534. Note that value 0 enables "Any Port".

Parameters:

frontendPort - the frontendPort value to set.

Returns:

the LoadBalancingRulePropertiesFormat object itself.

withIdleTimeoutInMinutes

public LoadBalancingRulePropertiesFormat withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes)

Set the idleTimeoutInMinutes property: The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP.

Parameters:

idleTimeoutInMinutes - the idleTimeoutInMinutes value to set.

Returns:

the LoadBalancingRulePropertiesFormat object itself.

withLoadDistribution

public LoadBalancingRulePropertiesFormat withLoadDistribution(LoadDistribution loadDistribution)

Set the loadDistribution property: The load distribution policy for this rule.

Parameters:

loadDistribution - the loadDistribution value to set.

Returns:

the LoadBalancingRulePropertiesFormat object itself.

withProbe

public LoadBalancingRulePropertiesFormat withProbe(SubResource probe)

Set the probe property: The reference to the load balancer probe used by the load balancing rule.

Parameters:

probe - the probe value to set.

Returns:

the LoadBalancingRulePropertiesFormat object itself.

withProtocol

public LoadBalancingRulePropertiesFormat withProtocol(TransportProtocol protocol)

Set the protocol property: The reference to the transport protocol used by the load balancing rule.

Parameters:

protocol - the protocol value to set.

Returns:

the LoadBalancingRulePropertiesFormat object itself.

Applies to