HealthProbeParameters Class
- java.
lang. Object - com.
azure. resourcemanager. cdn. models. HealthProbeParameters
- com.
public final class HealthProbeParameters
The JSON object that contains the properties to send health probes to origin.
Constructor Summary
Constructor | Description |
---|---|
HealthProbeParameters() |
Creates an instance of Health |
Method Summary
Modifier and Type | Method and Description |
---|---|
Integer |
probeIntervalInSeconds()
Get the probe |
String |
probePath()
Get the probe |
Probe |
probeProtocol()
Get the probe |
Health |
probeRequestType()
Get the probe |
void |
validate()
Validates the instance. |
Health |
withProbeIntervalInSeconds(Integer probeIntervalInSeconds)
Set the probe |
Health |
withProbePath(String probePath)
Set the probe |
Health |
withProbeProtocol(ProbeProtocol probeProtocol)
Set the probe |
Health |
withProbeRequestType(HealthProbeRequestType probeRequestType)
Set the probe |
Methods inherited from java.lang.Object
Constructor Details
HealthProbeParameters
public HealthProbeParameters()
Creates an instance of HealthProbeParameters class.
Method Details
probeIntervalInSeconds
public Integer probeIntervalInSeconds()
Get the probeIntervalInSeconds property: The number of seconds between health probes.Default is 240sec.
Returns:
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:
probeProtocol
public ProbeProtocol probeProtocol()
Get the probeProtocol property: Protocol to use for health probe.
Returns:
probeRequestType
public HealthProbeRequestType probeRequestType()
Get the probeRequestType property: The type of health probe request that is made.
Returns:
validate
public void validate()
Validates the instance.
withProbeIntervalInSeconds
public HealthProbeParameters withProbeIntervalInSeconds(Integer probeIntervalInSeconds)
Set the probeIntervalInSeconds property: The number of seconds between health probes.Default is 240sec.
Parameters:
Returns:
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:
Returns:
withProbeProtocol
public HealthProbeParameters withProbeProtocol(ProbeProtocol probeProtocol)
Set the probeProtocol property: Protocol to use for health probe.
Parameters:
Returns:
withProbeRequestType
public HealthProbeParameters withProbeRequestType(HealthProbeRequestType probeRequestType)
Set the probeRequestType property: The type of health probe request that is made.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for