共用方式為


HealthProbeParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.cdn.models.HealthProbeParameters

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 HealthProbeParameters class.

Method Summary

Modifier and Type Method and Description
static HealthProbeParameters fromJson(JsonReader jsonReader)

Reads an instance of HealthProbeParameters from the JsonReader.

Integer probeIntervalInSeconds()

Get the probeIntervalInSeconds property: The number of seconds between health probes.Default is 240sec.

String probePath()

Get the probePath property: The path relative to the origin that is used to determine the health of the origin.

ProbeProtocol probeProtocol()

Get the probeProtocol property: Protocol to use for health probe.

HealthProbeRequestType probeRequestType()

Get the probeRequestType property: The type of health probe request that is made.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

HealthProbeParameters withProbeIntervalInSeconds(Integer probeIntervalInSeconds)

Set the probeIntervalInSeconds property: The number of seconds between health probes.Default is 240sec.

HealthProbeParameters withProbePath(String probePath)

Set the probePath property: The path relative to the origin that is used to determine the health of the origin.

HealthProbeParameters withProbeProtocol(ProbeProtocol probeProtocol)

Set the probeProtocol property: Protocol to use for health probe.

HealthProbeParameters withProbeRequestType(HealthProbeRequestType probeRequestType)

Set the probeRequestType property: The type of health probe request that is made.

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:

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.

probeIntervalInSeconds

public Integer probeIntervalInSeconds()

Get the probeIntervalInSeconds property: The number of seconds between health probes.Default is 240sec.

Returns:

the probeIntervalInSeconds value.

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.

probeProtocol

public ProbeProtocol probeProtocol()

Get the probeProtocol property: Protocol to use for health probe.

Returns:

the probeProtocol value.

probeRequestType

public HealthProbeRequestType probeRequestType()

Get the probeRequestType property: The type of health probe request that is made.

Returns:

the probeRequestType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

probeIntervalInSeconds - the probeIntervalInSeconds value to set.

Returns:

the HealthProbeParameters object itself.

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.

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.

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.

Applies to