HealthProbeSettingsModel Class
- java.
lang. Object - com.
azure. core. management. SubResource - com.
azure. resourcemanager. frontdoor. models. HealthProbeSettingsModel
- com.
- com.
public final class HealthProbeSettingsModel
extends SubResource
Load balancing settings for a backend pool.
Constructor Summary
Constructor | Description |
---|---|
HealthProbeSettingsModel() |
Creates an instance of Health |
Method Summary
Modifier and Type | Method and Description |
---|---|
Health |
enabledState()
Get the enabled |
Front |
healthProbeMethod()
Get the health |
Integer |
intervalInSeconds()
Get the interval |
String |
name()
Get the name property: Resource name. |
String |
path()
Get the path property: The path to use for the health probe. |
Front |
protocol()
Get the protocol property: Protocol scheme to use for this probe. |
Front |
resourceState()
Get the resource |
String |
type()
Get the type property: Resource type. |
void |
validate()
Validates the instance. |
Health |
withEnabledState(HealthProbeEnabled enabledState)
Set the enabled |
Health |
withHealthProbeMethod(FrontDoorHealthProbeMethod healthProbeMethod)
Set the health |
Health |
withId(String id) |
Health |
withIntervalInSeconds(Integer intervalInSeconds)
Set the interval |
Health |
withName(String name)
Set the name property: Resource name. |
Health |
withPath(String path)
Set the path property: The path to use for the health probe. |
Health |
withProtocol(FrontDoorProtocol protocol)
Set the protocol property: Protocol scheme to use for this probe. |
Methods inherited from SubResource
Methods inherited from java.lang.Object
Constructor Details
HealthProbeSettingsModel
public HealthProbeSettingsModel()
Creates an instance of HealthProbeSettingsModel class.
Method Details
enabledState
public HealthProbeEnabled enabledState()
Get the enabledState property: Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool.
Returns:
healthProbeMethod
public FrontDoorHealthProbeMethod healthProbeMethod()
Get the healthProbeMethod property: Configures which HTTP method to use to probe the backends defined under backendPools.
Returns:
intervalInSeconds
public Integer intervalInSeconds()
Get the intervalInSeconds property: The number of seconds between health probes.
Returns:
name
public String name()
Get the name property: Resource name.
Returns:
path
public String path()
Get the path property: The path to use for the health probe. Default is /.
Returns:
protocol
public FrontDoorProtocol protocol()
Get the protocol property: Protocol scheme to use for this probe.
Returns:
resourceState
public FrontDoorResourceState resourceState()
Get the resourceState property: Resource status of the Front Door or Front Door SubResource.
Resource status.
Returns:
type
public String type()
Get the type property: Resource type.
Returns:
validate
public void validate()
Validates the instance.
withEnabledState
public HealthProbeSettingsModel withEnabledState(HealthProbeEnabled enabledState)
Set the enabledState property: Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool.
Parameters:
Returns:
withHealthProbeMethod
public HealthProbeSettingsModel withHealthProbeMethod(FrontDoorHealthProbeMethod healthProbeMethod)
Set the healthProbeMethod property: Configures which HTTP method to use to probe the backends defined under backendPools.
Parameters:
Returns:
withId
public HealthProbeSettingsModel withId(String id)
Overrides:
HealthProbeSettingsModel.withId(String id)Parameters:
withIntervalInSeconds
public HealthProbeSettingsModel withIntervalInSeconds(Integer intervalInSeconds)
Set the intervalInSeconds property: The number of seconds between health probes.
Parameters:
Returns:
withName
public HealthProbeSettingsModel withName(String name)
Set the name property: Resource name.
Parameters:
Returns:
withPath
public HealthProbeSettingsModel withPath(String path)
Set the path property: The path to use for the health probe. Default is /.
Parameters:
Returns:
withProtocol
public HealthProbeSettingsModel withProtocol(FrontDoorProtocol protocol)
Set the protocol property: Protocol scheme to use for this probe.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for