HealthProbeSettingsModel Class

public final class HealthProbeSettingsModel
extends SubResource

Load balancing settings for a backend pool.

Constructor Summary

Constructor Description
HealthProbeSettingsModel()

Creates an instance of HealthProbeSettingsModel class.

Method Summary

Modifier and Type Method and Description
HealthProbeEnabled enabledState()

Get the enabledState property: Whether to enable health probes to be made against backends defined under backendPools.

FrontDoorHealthProbeMethod healthProbeMethod()

Get the healthProbeMethod property: Configures which HTTP method to use to probe the backends defined under backendPools.

Integer intervalInSeconds()

Get the intervalInSeconds property: The number of seconds between health probes.

String name()

Get the name property: Resource name.

String path()

Get the path property: The path to use for the health probe.

FrontDoorProtocol protocol()

Get the protocol property: Protocol scheme to use for this probe.

FrontDoorResourceState resourceState()

Get the resourceState property: Resource status of the Front Door or Front Door SubResource.

String type()

Get the type property: Resource type.

void validate()

Validates the instance.

HealthProbeSettingsModel withEnabledState(HealthProbeEnabled enabledState)

Set the enabledState property: Whether to enable health probes to be made against backends defined under backendPools.

HealthProbeSettingsModel withHealthProbeMethod(FrontDoorHealthProbeMethod healthProbeMethod)

Set the healthProbeMethod property: Configures which HTTP method to use to probe the backends defined under backendPools.

HealthProbeSettingsModel withId(String id)
HealthProbeSettingsModel withIntervalInSeconds(Integer intervalInSeconds)

Set the intervalInSeconds property: The number of seconds between health probes.

HealthProbeSettingsModel withName(String name)

Set the name property: Resource name.

HealthProbeSettingsModel withPath(String path)

Set the path property: The path to use for the health probe.

HealthProbeSettingsModel 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:

the enabledState value.

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.

intervalInSeconds

public Integer intervalInSeconds()

Get the intervalInSeconds property: The number of seconds between health probes.

Returns:

the intervalInSeconds value.

name

public String name()

Get the name property: Resource name.

Returns:

the name value.

path

public String path()

Get the path property: The path to use for the health probe. Default is /.

Returns:

the path value.

protocol

public FrontDoorProtocol protocol()

Get the protocol property: Protocol scheme to use for this probe.

Returns:

the protocol value.

resourceState

public FrontDoorResourceState resourceState()

Get the resourceState property: Resource status of the Front Door or Front Door SubResource.

Resource status.

Returns:

the resourceState value.

type

public String type()

Get the type property: Resource type.

Returns:

the type value.

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:

enabledState - the enabledState value to set.

Returns:

the HealthProbeSettingsModel object itself.

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.

withId

public HealthProbeSettingsModel withId(String id)

Overrides:

HealthProbeSettingsModel.withId(String id)

Parameters:

id

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.

withName

public HealthProbeSettingsModel withName(String name)

Set the name property: Resource name.

Parameters:

name - the name value to set.

Returns:

the HealthProbeSettingsModel object itself.

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.

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.

Applies to