Interface LoadBalancingRule
- All Superinterfaces:
ChildResource<LoadBalancer>, HasBackendPort, HasFloatingIP, HasFrontend, HasFrontendPort, HasInnerModel<LoadBalancingRuleInner>, HasName, HasParent<LoadBalancer>, HasProtocol<TransportProtocol>, Indexable
public interface LoadBalancingRule
extends HasInnerModel<LoadBalancingRuleInner>, ChildResource<LoadBalancer>, HasBackendPort, HasFrontend, HasFloatingIP, HasProtocol<TransportProtocol>, HasFrontendPort
A client-side representation of an HTTP load balancing rule.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe entirety of a load balancing rule definition.static interfaceGrouping of load balancing rule definition stages.static interfaceThe entirety of a load balancing rule update as part of a load balancer update.static interfaceThe entirety of a load balancing rule definition as part of a load balancer update.static interfaceGrouping of load balancing rule definition stages applicable as part of a load balancer update.static interfaceGrouping of load balancing rule update stages. -
Method Summary
Modifier and TypeMethodDescriptionbackend()Gets the backend associated with the load balancing rule.backends()Gets the list of backends associated with the load balancing rule.intGets the number of minutes before an inactive connection is closed.Gets the method of load distribution.probe()Gets the probe associated with the load balancing rule.Methods inherited from interface HasBackendPort
backendPortMethods inherited from interface HasFloatingIP
floatingIPEnabledMethods inherited from interface HasFrontend
frontendMethods inherited from interface HasFrontendPort
frontendPortMethods inherited from interface HasInnerModel
innerModelMethods inherited from interface HasProtocol
protocol
-
Method Details
-
loadDistribution
LoadDistribution loadDistribution()Gets the method of load distribution.- Returns:
- the method of load distribution
-
idleTimeoutInMinutes
int idleTimeoutInMinutes()Gets the number of minutes before an inactive connection is closed.- Returns:
- the number of minutes before an inactive connection is closed
-
backend
LoadBalancerBackend backend()Gets the backend associated with the load balancing rule.If there are multiple backends associated with the rule, this API only returns the first backend. Use
backends()for the case of multiple backends associated with the rule.- Returns:
- the backend associated with the load balancing rule
-
probe
LoadBalancerProbe probe()Gets the probe associated with the load balancing rule.- Returns:
- the probe associated with the load balancing rule
-
backends
List<LoadBalancerBackend> backends()Gets the list of backends associated with the load balancing rule.- Returns:
- the list of backends associated with the load balancing rule
-