Class HealthProbeParameters
- java.lang.Object
-
- com.azure.resourcemanager.cdn.models.HealthProbeParameters
-
public final class HealthProbeParameters extends Object
The JSON object that contains the properties to send health probes to origin.
-
-
Constructor Summary
Constructors Constructor Description HealthProbeParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerprobeIntervalInSeconds()Get the probeIntervalInSeconds property: The number of seconds between health probes.Default is 240sec.StringprobePath()Get the probePath property: The path relative to the origin that is used to determine the health of the origin.ProbeProtocolprobeProtocol()Get the probeProtocol property: Protocol to use for health probe.HealthProbeRequestTypeprobeRequestType()Get the probeRequestType property: The type of health probe request that is made.voidvalidate()Validates the instance.HealthProbeParameterswithProbeIntervalInSeconds(Integer probeIntervalInSeconds)Set the probeIntervalInSeconds property: The number of seconds between health probes.Default is 240sec.HealthProbeParameterswithProbePath(String probePath)Set the probePath property: The path relative to the origin that is used to determine the health of the origin.HealthProbeParameterswithProbeProtocol(ProbeProtocol probeProtocol)Set the probeProtocol property: Protocol to use for health probe.HealthProbeParameterswithProbeRequestType(HealthProbeRequestType probeRequestType)Set the probeRequestType property: The type of health probe request that is made.
-
-
-
Method Detail
-
probePath
public String probePath()
Get the probePath property: The path relative to the origin that is used to determine the health of the origin.- Returns:
- the probePath value.
-
withProbePath
public HealthProbeParameters withProbePath(String probePath)
Set the probePath property: 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.
-
probeRequestType
public HealthProbeRequestType probeRequestType()
Get the probeRequestType property: The type of health probe request that is made.- Returns:
- the probeRequestType value.
-
withProbeRequestType
public HealthProbeParameters withProbeRequestType(HealthProbeRequestType probeRequestType)
Set the probeRequestType property: The type of health probe request that is made.- Parameters:
probeRequestType- the probeRequestType value to set.- Returns:
- the HealthProbeParameters object itself.
-
probeProtocol
public ProbeProtocol probeProtocol()
Get the probeProtocol property: Protocol to use for health probe.- Returns:
- the probeProtocol value.
-
withProbeProtocol
public HealthProbeParameters withProbeProtocol(ProbeProtocol probeProtocol)
Set the probeProtocol property: Protocol to use for health probe.- Parameters:
probeProtocol- the probeProtocol value to set.- Returns:
- the HealthProbeParameters object itself.
-
probeIntervalInSeconds
public Integer probeIntervalInSeconds()
Get the probeIntervalInSeconds property: The number of seconds between health probes.Default is 240sec.- Returns:
- the probeIntervalInSeconds value.
-
withProbeIntervalInSeconds
public HealthProbeParameters withProbeIntervalInSeconds(Integer probeIntervalInSeconds)
Set the probeIntervalInSeconds property: The number of seconds between health probes.Default is 240sec.- Parameters:
probeIntervalInSeconds- the probeIntervalInSeconds value to set.- Returns:
- the HealthProbeParameters object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-