HealthProbeParameters Class

  • java.lang.Object
    • com.microsoft.azure.management.cdn.HealthProbeParameters

public class HealthProbeParameters

The JSON object that contains the properties to send health probes to origin.

Constructor Summary

Constructor Description
HealthProbeParameters()

Method Summary

Modifier and Type Method and Description
java.lang.Integer probeIntervalInSeconds()

Get the number of seconds between health probes.Default is 240sec.

java.lang.String probePath()

Get the path relative to the origin that is used to determine the health of the origin.

ProbeProtocol probeProtocol()

Get protocol to use for health probe.

HealthProbeRequestType probeRequestType()

Get the type of health probe request that is made.

HealthProbeParameters withProbeIntervalInSeconds(Integer probeIntervalInSeconds)

Set the number of seconds between health probes.Default is 240sec.

HealthProbeParameters withProbePath(String probePath)

Set the path relative to the origin that is used to determine the health of the origin.

HealthProbeParameters withProbeProtocol(ProbeProtocol probeProtocol)

Set protocol to use for health probe.

HealthProbeParameters withProbeRequestType(HealthProbeRequestType probeRequestType)

Set the type of health probe request that is made.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

HealthProbeParameters

public HealthProbeParameters()

Method Details

probeIntervalInSeconds

public Integer probeIntervalInSeconds()

Get the number of seconds between health probes.Default is 240sec.

Returns:

the probeIntervalInSeconds value

probePath

public String probePath()

Get the path relative to the origin that is used to determine the health of the origin.

Returns:

the probePath value

probeProtocol

public ProbeProtocol probeProtocol()

Get protocol to use for health probe. Possible values include: 'NotSet', 'Http', 'Https'.

Returns:

the probeProtocol value

probeRequestType

public HealthProbeRequestType probeRequestType()

Get the type of health probe request that is made. Possible values include: 'NotSet', 'GET', 'HEAD'.

Returns:

the probeRequestType value

withProbeIntervalInSeconds

public HealthProbeParameters withProbeIntervalInSeconds(Integer probeIntervalInSeconds)

Set the number of seconds between health probes.Default is 240sec.

Parameters:

probeIntervalInSeconds - the probeIntervalInSeconds value to set

Returns:

the HealthProbeParameters object itself.

withProbePath

public HealthProbeParameters withProbePath(String probePath)

Set the path relative to the origin that is used to determine the health of the origin.

Parameters:

probePath - the probePath value to set

Returns:

the HealthProbeParameters object itself.

withProbeProtocol

public HealthProbeParameters withProbeProtocol(ProbeProtocol probeProtocol)

Set protocol to use for health probe. Possible values include: 'NotSet', 'Http', 'Https'.

Parameters:

probeProtocol - the probeProtocol value to set

Returns:

the HealthProbeParameters object itself.

withProbeRequestType

public HealthProbeParameters withProbeRequestType(HealthProbeRequestType probeRequestType)

Set the type of health probe request that is made. Possible values include: 'NotSet', 'GET', 'HEAD'.

Parameters:

probeRequestType - the probeRequestType value to set

Returns:

the HealthProbeParameters object itself.

Applies to