Class HealthProbeSettingsProperties
java.lang.Object
com.azure.resourcemanager.frontdoor.models.HealthProbeSettingsUpdateParameters
com.azure.resourcemanager.frontdoor.fluent.models.HealthProbeSettingsProperties
The JSON object that contains the properties required to create a health probe settings.
-
Constructor Summary
ConstructorDescriptionCreates an instance of HealthProbeSettingsProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the resourceState property: Resource status of the Front Door or Front Door SubResource.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 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.resourcemanager.frontdoor.models.HealthProbeSettingsUpdateParameters
enabledState, healthProbeMethod, intervalInSeconds, path, protocol
-
Constructor Details
-
HealthProbeSettingsProperties
public HealthProbeSettingsProperties()Creates an instance of HealthProbeSettingsProperties class.
-
-
Method Details
-
resourceState
Get the resourceState property: Resource status of the Front Door or Front Door SubResource.Resource status.
- Returns:
- the resourceState value.
-
withPath
Set the path property: The path to use for the health probe. Default is /.- Overrides:
withPath
in classHealthProbeSettingsUpdateParameters
- Parameters:
path
- the path value to set.- Returns:
- the HealthProbeSettingsUpdateParameters object itself.
-
withProtocol
Set the protocol property: Protocol scheme to use for this probe.- Overrides:
withProtocol
in classHealthProbeSettingsUpdateParameters
- Parameters:
protocol
- the protocol value to set.- Returns:
- the HealthProbeSettingsUpdateParameters object itself.
-
withIntervalInSeconds
Set the intervalInSeconds property: The number of seconds between health probes.- Overrides:
withIntervalInSeconds
in classHealthProbeSettingsUpdateParameters
- Parameters:
intervalInSeconds
- the intervalInSeconds value to set.- Returns:
- the HealthProbeSettingsUpdateParameters object itself.
-
withHealthProbeMethod
public HealthProbeSettingsProperties withHealthProbeMethod(FrontDoorHealthProbeMethod healthProbeMethod) Set the healthProbeMethod property: Configures which HTTP method to use to probe the backends defined under backendPools.- Overrides:
withHealthProbeMethod
in classHealthProbeSettingsUpdateParameters
- Parameters:
healthProbeMethod
- the healthProbeMethod value to set.- Returns:
- the HealthProbeSettingsUpdateParameters object itself.
-
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.- Overrides:
withEnabledState
in classHealthProbeSettingsUpdateParameters
- Parameters:
enabledState
- the enabledState value to set.- Returns:
- the HealthProbeSettingsUpdateParameters object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classHealthProbeSettingsUpdateParameters
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-