LoadBalancingRuleInner Class
- java.
lang. Object - com.
azure. core. management. SubResource - com.
azure. resourcemanager. network. fluent. models. LoadBalancingRuleInner
- com.
- com.
public final class LoadBalancingRuleInner
extends SubResource
A load balancing rule for a load balancer.
Constructor Summary
Constructor | Description |
---|---|
LoadBalancingRuleInner() |
Creates an instance of Load |
Method Summary
Modifier and Type | Method and Description |
---|---|
Sub |
backendAddressPool()
Get the backend |
List<Sub |
backendAddressPools()
Get the backend |
Integer |
backendPort()
Get the backend |
Boolean |
disableOutboundSnat()
Get the disable |
Boolean |
enableFloatingIp()
Get the enable |
Boolean |
enableTcpReset()
Get the enable |
String |
etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated. |
static
Load |
fromJson(JsonReader jsonReader)
Reads an instance of Load |
Sub |
frontendIpConfiguration()
Get the frontend |
Integer |
frontendPort()
Get the frontend |
Integer |
idleTimeoutInMinutes()
Get the idle |
Load |
loadDistribution()
Get the load |
String |
name()
Get the name property: The name of the resource that is unique within the set of load balancing rules used by the load balancer. |
Sub |
probe()
Get the probe property: The reference to the load balancer probe used by the load balancing rule. |
Transport |
protocol()
Get the protocol property: The reference to the transport protocol used by the load balancing rule. |
Provisioning |
provisioningState()
Get the provisioning |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: Type of the resource. |
void |
validate()
Validates the instance. |
Load |
withBackendAddressPool(SubResource backendAddressPool)
Set the backend |
Load |
withBackendAddressPools(List<SubResource> backendAddressPools)
Set the backend |
Load |
withBackendPort(Integer backendPort)
Set the backend |
Load |
withDisableOutboundSnat(Boolean disableOutboundSnat)
Set the disable |
Load |
withEnableFloatingIp(Boolean enableFloatingIp)
Set the enable |
Load |
withEnableTcpReset(Boolean enableTcpReset)
Set the enable |
Load |
withFrontendIpConfiguration(SubResource frontendIpConfiguration)
Set the frontend |
Load |
withFrontendPort(Integer frontendPort)
Set the frontend |
Load |
withId(String id) |
Load |
withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes)
Set the idle |
Load |
withLoadDistribution(LoadDistribution loadDistribution)
Set the load |
Load |
withName(String name)
Set the name property: The name of the resource that is unique within the set of load balancing rules used by the load balancer. |
Load |
withProbe(SubResource probe)
Set the probe property: The reference to the load balancer probe used by the load balancing rule. |
Load |
withProtocol(TransportProtocol protocol)
Set the protocol property: The reference to the transport protocol used by the load balancing rule. |
Methods inherited from SubResource
Methods inherited from java.lang.Object
Constructor Details
LoadBalancingRuleInner
public LoadBalancingRuleInner()
Creates an instance of LoadBalancingRuleInner 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:
backendAddressPools
public List
Get the backendAddressPools property: An array of references to pool of DIPs.
Returns:
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:
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:
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:
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:
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.
Returns:
fromJson
public static LoadBalancingRuleInner fromJson(JsonReader jsonReader)
Reads an instance of LoadBalancingRuleInner from the JsonReader.
Parameters:
Returns:
Throws:
frontendIpConfiguration
public SubResource frontendIpConfiguration()
Get the frontendIpConfiguration property: A reference to frontend IP addresses.
Returns:
frontendPort
public Integer 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:
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:
loadDistribution
public LoadDistribution loadDistribution()
Get the loadDistribution property: The load distribution policy for this rule.
Returns:
name
public String name()
Get the name property: The name of the resource that is unique within the set of load balancing rules used by the load balancer. This name can be used to access the resource.
Returns:
probe
public SubResource probe()
Get the probe property: The reference to the load balancer probe used by the load balancing rule.
Returns:
protocol
public TransportProtocol protocol()
Get the protocol property: The reference to the transport protocol used by the load balancing rule.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the load balancing rule resource.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
LoadBalancingRuleInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: Type of the resource.
Returns:
validate
public void validate()
Validates the instance.
withBackendAddressPool
public LoadBalancingRuleInner 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:
Returns:
withBackendAddressPools
public LoadBalancingRuleInner withBackendAddressPools(List
Set the backendAddressPools property: An array of references to pool of DIPs.
Parameters:
Returns:
withBackendPort
public LoadBalancingRuleInner 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:
Returns:
withDisableOutboundSnat
public LoadBalancingRuleInner 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:
Returns:
withEnableFloatingIp
public LoadBalancingRuleInner 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:
Returns:
withEnableTcpReset
public LoadBalancingRuleInner 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:
Returns:
withFrontendIpConfiguration
public LoadBalancingRuleInner withFrontendIpConfiguration(SubResource frontendIpConfiguration)
Set the frontendIpConfiguration property: A reference to frontend IP addresses.
Parameters:
Returns:
withFrontendPort
public LoadBalancingRuleInner withFrontendPort(Integer 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:
Returns:
withId
public LoadBalancingRuleInner withId(String id)
Overrides:
LoadBalancingRuleInner.withId(String id)Parameters:
withIdleTimeoutInMinutes
public LoadBalancingRuleInner 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:
Returns:
withLoadDistribution
public LoadBalancingRuleInner withLoadDistribution(LoadDistribution loadDistribution)
Set the loadDistribution property: The load distribution policy for this rule.
Parameters:
Returns:
withName
public LoadBalancingRuleInner withName(String name)
Set the name property: The name of the resource that is unique within the set of load balancing rules used by the load balancer. This name can be used to access the resource.
Parameters:
Returns:
withProbe
public LoadBalancingRuleInner withProbe(SubResource probe)
Set the probe property: The reference to the load balancer probe used by the load balancing rule.
Parameters:
Returns:
withProtocol
public LoadBalancingRuleInner withProtocol(TransportProtocol protocol)
Set the protocol property: The reference to the transport protocol used by the load balancing rule.
Parameters:
Returns:
Applies to
Azure SDK for Java