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 Details

    • HealthProbeSettingsModel

      public HealthProbeSettingsModel()
      Creates an instance of HealthProbeSettingsModel class.
  • Method Details

    • name

      public String name()
      Get the name property: Resource name.
      Returns:
      the name value.
    • withName

      public HealthProbeSettingsModel withName(String name)
      Set the name property: Resource name.
      Parameters:
      name - the name value to set.
      Returns:
      the HealthProbeSettingsModel object itself.
    • type

      public String type()
      Get the type property: Resource type.
      Returns:
      the type value.
    • withId

      public HealthProbeSettingsModel withId(String id)
      Overrides:
      withId in class com.azure.core.management.SubResource
    • resourceState

      public FrontDoorResourceState resourceState()
      Get the resourceState property: Resource status of the Front Door or Front Door SubResource.

      Resource status.

      Returns:
      the resourceState value.
    • path

      public String path()
      Get the path property: The path to use for the health probe. Default is /.
      Returns:
      the path value.
    • withPath

      public HealthProbeSettingsModel withPath(String path)
      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

      public FrontDoorProtocol protocol()
      Get the protocol property: Protocol scheme to use for this probe.
      Returns:
      the protocol value.
    • withProtocol

      public HealthProbeSettingsModel withProtocol(FrontDoorProtocol protocol)
      Set the protocol property: Protocol scheme to use for this probe.
      Parameters:
      protocol - the protocol value to set.
      Returns:
      the HealthProbeSettingsModel object itself.
    • intervalInSeconds

      public Integer intervalInSeconds()
      Get the intervalInSeconds property: The number of seconds between health probes.
      Returns:
      the intervalInSeconds value.
    • withIntervalInSeconds

      public HealthProbeSettingsModel withIntervalInSeconds(Integer intervalInSeconds)
      Set the intervalInSeconds property: The number of seconds between health probes.
      Parameters:
      intervalInSeconds - the intervalInSeconds value to set.
      Returns:
      the HealthProbeSettingsModel object itself.
    • healthProbeMethod

      public FrontDoorHealthProbeMethod healthProbeMethod()
      Get the healthProbeMethod property: Configures which HTTP method to use to probe the backends defined under backendPools.
      Returns:
      the healthProbeMethod value.
    • withHealthProbeMethod

      public HealthProbeSettingsModel withHealthProbeMethod(FrontDoorHealthProbeMethod healthProbeMethod)
      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

      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:
      the enabledState value.
    • 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:
      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.