Class HealthProbeParameters
java.lang.Object
com.azure.resourcemanager.cdn.models.HealthProbeParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<HealthProbeParameters>
public final class HealthProbeParameters
extends Object
implements com.azure.json.JsonSerializable<HealthProbeParameters>
The JSON object that contains the properties to send health probes to origin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HealthProbeParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of HealthProbeParameters from the JsonReader.Get the probeIntervalInSeconds property: The number of seconds between health probes.Default is 240sec.Get the probePath property: The path relative to the origin that is used to determine the health of the origin.Get the probeProtocol property: Protocol to use for health probe.Get the probeRequestType property: The type of health probe request that is made.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withProbeIntervalInSeconds(Integer probeIntervalInSeconds) Set the probeIntervalInSeconds property: The number of seconds between health probes.Default is 240sec.withProbePath(String probePath) Set the probePath property: The path relative to the origin that is used to determine the health of the origin.withProbeProtocol(ProbeProtocol probeProtocol) Set the probeProtocol property: Protocol to use for health probe.withProbeRequestType(HealthProbeRequestType probeRequestType) Set the probeRequestType property: The type of health probe request that is made.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
HealthProbeParameters
public HealthProbeParameters()Creates an instance of HealthProbeParameters class.
-
-
Method Details
-
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
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
Get the probeRequestType property: The type of health probe request that is made.- Returns:
- the probeRequestType value.
-
withProbeRequestType
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
Get the probeProtocol property: Protocol to use for health probe.- Returns:
- the probeProtocol value.
-
withProbeProtocol
Set the probeProtocol property: Protocol to use for health probe.- Parameters:
probeProtocol- the probeProtocol value to set.- Returns:
- the HealthProbeParameters object itself.
-
probeIntervalInSeconds
Get the probeIntervalInSeconds property: The number of seconds between health probes.Default is 240sec.- Returns:
- the probeIntervalInSeconds value.
-
withProbeIntervalInSeconds
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<HealthProbeParameters>- Throws:
IOException
-
fromJson
public static HealthProbeParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of HealthProbeParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of HealthProbeParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the HealthProbeParameters.
-