HealthProbeParameters Class
- java.
lang. Object - com.
azure. resourcemanager. cdn. models. HealthProbeParameters
- com.
Implements
public final class HealthProbeParameters
implements JsonSerializable<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 |
---|---|
static
Health |
fromJson(JsonReader jsonReader)
Reads an instance of Health |
Integer |
probeIntervalInSeconds()
Get the probe |
String |
probePath()
Get the probe |
Probe |
probeProtocol()
Get the probe |
Health |
probeRequestType()
Get the probe |
Json |
toJson(JsonWriter jsonWriter) |
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
fromJson
public static HealthProbeParameters fromJson(JsonReader jsonReader)
Reads an instance of HealthProbeParameters from the JsonReader.
Parameters:
Returns:
Throws:
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:
toJson
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: