Class LoadBalancingRulePropertiesFormat
java.lang.Object
com.azure.resourcemanager.network.fluent.models.LoadBalancingRulePropertiesFormat
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LoadBalancingRulePropertiesFormat>
public final class LoadBalancingRulePropertiesFormat
extends Object
implements com.azure.json.JsonSerializable<LoadBalancingRulePropertiesFormat>
Properties of the load balancer.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of LoadBalancingRulePropertiesFormat class. -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.management.SubResourceGet the backendAddressPool property: A reference to a pool of DIPs.List<com.azure.core.management.SubResource> Get the backendAddressPools property: An array of references to pool of DIPs.Get the backendPort property: The port used for internal connections on the endpoint.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.Get the enableFloatingIp property: Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group.Get the enableTcpReset property: Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LoadBalancingRulePropertiesFormat from the JsonReader.com.azure.core.management.SubResourceGet the frontendIpConfiguration property: A reference to frontend IP addresses.intGet the frontendPort property: The port for the external endpoint.Get the idleTimeoutInMinutes property: The timeout for the TCP idle connection.Get the loadDistribution property: The load distribution policy for this rule.com.azure.core.management.SubResourceprobe()Get the probe property: The reference to the load balancer probe used by the load balancing rule.protocol()Get the protocol property: The reference to the transport protocol used by the load balancing rule.Get the provisioningState property: The provisioning state of the load balancing rule resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withBackendAddressPool(com.azure.core.management.SubResource backendAddressPool) Set the backendAddressPool property: A reference to a pool of DIPs.withBackendAddressPools(List<com.azure.core.management.SubResource> backendAddressPools) Set the backendAddressPools property: An array of references to pool of DIPs.withBackendPort(Integer backendPort) Set the backendPort property: The port used for internal connections on the endpoint.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.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.withEnableTcpReset(Boolean enableTcpReset) Set the enableTcpReset property: Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination.withFrontendIpConfiguration(com.azure.core.management.SubResource frontendIpConfiguration) Set the frontendIpConfiguration property: A reference to frontend IP addresses.withFrontendPort(int frontendPort) Set the frontendPort property: The port for the external endpoint.withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes) Set the idleTimeoutInMinutes property: The timeout for the TCP idle connection.withLoadDistribution(LoadDistribution loadDistribution) Set the loadDistribution property: The load distribution policy for this rule.withProbe(com.azure.core.management.SubResource probe) Set the probe property: The reference to the load balancer probe used by the load balancing rule.withProtocol(TransportProtocol protocol) Set the protocol property: The reference to the transport protocol used by the load balancing rule.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
LoadBalancingRulePropertiesFormat
public LoadBalancingRulePropertiesFormat()Creates an instance of LoadBalancingRulePropertiesFormat class.
-
-
Method Details
-
frontendIpConfiguration
public com.azure.core.management.SubResource frontendIpConfiguration()Get the frontendIpConfiguration property: A reference to frontend IP addresses.- Returns:
- the frontendIpConfiguration value.
-
withFrontendIpConfiguration
public LoadBalancingRulePropertiesFormat withFrontendIpConfiguration(com.azure.core.management.SubResource frontendIpConfiguration) Set the frontendIpConfiguration property: A reference to frontend IP addresses.- Parameters:
frontendIpConfiguration- the frontendIpConfiguration value to set.- Returns:
- the LoadBalancingRulePropertiesFormat object itself.
-
backendAddressPool
public com.azure.core.management.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.
-
withBackendAddressPool
public LoadBalancingRulePropertiesFormat withBackendAddressPool(com.azure.core.management.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.
-
backendAddressPools
Get the backendAddressPools property: An array of references to pool of DIPs.- Returns:
- the backendAddressPools value.
-
withBackendAddressPools
public LoadBalancingRulePropertiesFormat withBackendAddressPools(List<com.azure.core.management.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.
-
probe
public com.azure.core.management.SubResource probe()Get the probe property: The reference to the load balancer probe used by the load balancing rule.- Returns:
- the probe value.
-
withProbe
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.
-
protocol
Get the protocol property: The reference to the transport protocol used by the load balancing rule.- Returns:
- the protocol value.
-
withProtocol
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.
-
loadDistribution
Get the loadDistribution property: The load distribution policy for this rule.- Returns:
- the loadDistribution value.
-
withLoadDistribution
Set the loadDistribution property: The load distribution policy for this rule.- Parameters:
loadDistribution- the loadDistribution value to set.- Returns:
- the LoadBalancingRulePropertiesFormat object itself.
-
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.
-
withFrontendPort
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.
-
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.
-
withBackendPort
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.
-
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.
-
withIdleTimeoutInMinutes
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.
-
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.
-
withEnableFloatingIp
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.
-
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.
-
withEnableTcpReset
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.
-
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.
-
withDisableOutboundSnat
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.
-
provisioningState
Get the provisioningState property: The provisioning state of the load balancing rule resource.- Returns:
- the provisioningState value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<LoadBalancingRulePropertiesFormat>- Throws:
IOException
-
fromJson
public static LoadBalancingRulePropertiesFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the LoadBalancingRulePropertiesFormat.
-