Class HealthProbeSettingsModel
java.lang.Object
com.azure.core.management.SubResource
com.azure.resourcemanager.frontdoor.models.HealthProbeSettingsModel
public final class HealthProbeSettingsModel
extends com.azure.core.management.SubResource
Load balancing settings for a backend pool.
-
Constructor Summary
ConstructorDescriptionCreates an instance of HealthProbeSettingsModel class. -
Method Summary
Modifier and TypeMethodDescriptionGet the enabledState property: Whether to enable health probes to be made against backends defined under backendPools.Get the healthProbeMethod property: Configures which HTTP method to use to probe the backends defined under backendPools.Get the intervalInSeconds property: The number of seconds between health probes.name()
Get the name property: Resource name.path()
Get the path property: The path to use for the health probe.protocol()
Get the protocol property: Protocol scheme to use for this probe.Get the resourceState property: Resource status of the Front Door or Front Door SubResource.type()
Get the type property: Resource type.void
validate()
Validates the instance.withEnabledState
(HealthProbeEnabled enabledState) Set the enabledState property: Whether to enable health probes to be made against backends defined under backendPools.withHealthProbeMethod
(FrontDoorHealthProbeMethod healthProbeMethod) Set the healthProbeMethod property: Configures which HTTP method to use to probe the backends defined under backendPools.withIntervalInSeconds
(Integer intervalInSeconds) Set the intervalInSeconds property: The number of seconds between health probes.Set the name property: Resource name.Set the path property: The path to use for the health probe.withProtocol
(FrontDoorProtocol protocol) Set the protocol property: Protocol scheme to use for this probe.Methods inherited from class com.azure.core.management.SubResource
id
-
Constructor Details
-
HealthProbeSettingsModel
public HealthProbeSettingsModel()Creates an instance of HealthProbeSettingsModel class.
-
-
Method Details
-
name
Get the name property: Resource name.- Returns:
- the name value.
-
withName
Set the name property: Resource name.- Parameters:
name
- the name value to set.- Returns:
- the HealthProbeSettingsModel object itself.
-
type
Get the type property: Resource type.- Returns:
- the type value.
-
withId
- Overrides:
withId
in classcom.azure.core.management.SubResource
-
resourceState
Get the resourceState property: Resource status of the Front Door or Front Door SubResource.Resource status.
- Returns:
- the resourceState value.
-
path
Get the path property: The path to use for the health probe. Default is /.- Returns:
- the path value.
-
withPath
Set the path property: The path to use for the health probe. Default is /.- Parameters:
path
- the path value to set.- Returns:
- the HealthProbeSettingsModel object itself.
-
protocol
Get the protocol property: Protocol scheme to use for this probe.- Returns:
- the protocol value.
-
withProtocol
Set the protocol property: Protocol scheme to use for this probe.- Parameters:
protocol
- the protocol value to set.- Returns:
- the HealthProbeSettingsModel object itself.
-
intervalInSeconds
Get the intervalInSeconds property: The number of seconds between health probes.- Returns:
- the intervalInSeconds value.
-
withIntervalInSeconds
Set the intervalInSeconds property: The number of seconds between health probes.- Parameters:
intervalInSeconds
- the intervalInSeconds value to set.- Returns:
- the HealthProbeSettingsModel object itself.
-
healthProbeMethod
Get the healthProbeMethod property: Configures which HTTP method to use to probe the backends defined under backendPools.- Returns:
- the healthProbeMethod value.
-
withHealthProbeMethod
Set the healthProbeMethod property: Configures which HTTP method to use to probe the backends defined under backendPools.- Parameters:
healthProbeMethod
- the healthProbeMethod value to set.- Returns:
- the HealthProbeSettingsModel object itself.
-
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:
- the enabledState value.
-
withEnabledState
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:
enabledState
- the enabledState value to set.- Returns:
- the HealthProbeSettingsModel object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-