ProbePropertiesFormat Class

  • java.lang.Object
    • com.azure.resourcemanager.network.fluent.models.ProbePropertiesFormat

Implements

public final class ProbePropertiesFormat
implements JsonSerializable<ProbePropertiesFormat>

Load balancer probe resource.

Constructor Summary

Constructor Description
ProbePropertiesFormat()

Creates an instance of ProbePropertiesFormat class.

Method Summary

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

Reads an instance of ProbePropertiesFormat from the JsonReader.

Integer intervalInSeconds()

Get the intervalInSeconds property: The interval, in seconds, for how frequently to probe the endpoint for health status.

List<SubResource> loadBalancingRules()

Get the loadBalancingRules property: The load balancer rules that use this probe.

ProbeNoHealthyBackendsBehavior noHealthyBackendsBehavior()

Get the noHealthyBackendsBehavior property: Determines how new connections are handled by the load balancer when all backend instances are probed down.

Integer numberOfProbes()

Get the numberOfProbes property: The number of probes where if no response, will result in stopping further traffic from being delivered to the endpoint.

int port()

Get the port property: The port for communicating the probe.

Integer probeThreshold()

Get the probeThreshold property: The number of consecutive successful or failed probes in order to allow or deny traffic from being delivered to this endpoint.

ProbeProtocol protocol()

Get the protocol property: The protocol of the end point.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the probe resource.

String requestPath()

Get the requestPath property: The URI used for requesting health status from the VM.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ProbePropertiesFormat withIntervalInSeconds(Integer intervalInSeconds)

Set the intervalInSeconds property: The interval, in seconds, for how frequently to probe the endpoint for health status.

ProbePropertiesFormat withNoHealthyBackendsBehavior(ProbeNoHealthyBackendsBehavior noHealthyBackendsBehavior)

Set the noHealthyBackendsBehavior property: Determines how new connections are handled by the load balancer when all backend instances are probed down.

ProbePropertiesFormat withNumberOfProbes(Integer numberOfProbes)

Set the numberOfProbes property: The number of probes where if no response, will result in stopping further traffic from being delivered to the endpoint.

ProbePropertiesFormat withPort(int port)

Set the port property: The port for communicating the probe.

ProbePropertiesFormat withProbeThreshold(Integer probeThreshold)

Set the probeThreshold property: The number of consecutive successful or failed probes in order to allow or deny traffic from being delivered to this endpoint.

ProbePropertiesFormat withProtocol(ProbeProtocol protocol)

Set the protocol property: The protocol of the end point.

ProbePropertiesFormat withRequestPath(String requestPath)

Set the requestPath property: The URI used for requesting health status from the VM.

Methods inherited from java.lang.Object

Constructor Details

ProbePropertiesFormat

public ProbePropertiesFormat()

Creates an instance of ProbePropertiesFormat class.

Method Details

fromJson

public static ProbePropertiesFormat fromJson(JsonReader jsonReader)

Reads an instance of ProbePropertiesFormat from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ProbePropertiesFormat if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

intervalInSeconds

public Integer intervalInSeconds()

Get the intervalInSeconds property: The interval, in seconds, for how frequently to probe the endpoint for health status. Typically, the interval is slightly less than half the allocated timeout period (in seconds) which allows two full probes before taking the instance out of rotation. The default value is 15, the minimum value is 5.

Returns:

the intervalInSeconds value.

loadBalancingRules

public List<SubResource> loadBalancingRules()

Get the loadBalancingRules property: The load balancer rules that use this probe.

Returns:

the loadBalancingRules value.

noHealthyBackendsBehavior

public ProbeNoHealthyBackendsBehavior noHealthyBackendsBehavior()

Get the noHealthyBackendsBehavior property: Determines how new connections are handled by the load balancer when all backend instances are probed down.

Returns:

the noHealthyBackendsBehavior value.

numberOfProbes

public Integer numberOfProbes()

Get the numberOfProbes property: The number of probes where if no response, will result in stopping further traffic from being delivered to the endpoint. This values allows endpoints to be taken out of rotation faster or slower than the typical times used in Azure.

Returns:

the numberOfProbes value.

port

public int port()

Get the port property: The port for communicating the probe. Possible values range from 1 to 65535, inclusive.

Returns:

the port value.

probeThreshold

public Integer probeThreshold()

Get the probeThreshold property: The number of consecutive successful or failed probes in order to allow or deny traffic from being delivered to this endpoint. After failing the number of consecutive probes equal to this value, the endpoint will be taken out of rotation and require the same number of successful consecutive probes to be placed back in rotation.

Returns:

the probeThreshold value.

protocol

public ProbeProtocol protocol()

Get the protocol property: The protocol of the end point. If 'Tcp' is specified, a received ACK is required for the probe to be successful. If 'Http' or 'Https' is specified, a 200 OK response from the specifies URI is required for the probe to be successful.

Returns:

the protocol value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the probe resource.

Returns:

the provisioningState value.

requestPath

public String requestPath()

Get the requestPath property: The URI used for requesting health status from the VM. Path is required if a protocol is set to http. Otherwise, it is not allowed. There is no default value.

Returns:

the requestPath value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIntervalInSeconds

public ProbePropertiesFormat withIntervalInSeconds(Integer intervalInSeconds)

Set the intervalInSeconds property: The interval, in seconds, for how frequently to probe the endpoint for health status. Typically, the interval is slightly less than half the allocated timeout period (in seconds) which allows two full probes before taking the instance out of rotation. The default value is 15, the minimum value is 5.

Parameters:

intervalInSeconds - the intervalInSeconds value to set.

Returns:

the ProbePropertiesFormat object itself.

withNoHealthyBackendsBehavior

public ProbePropertiesFormat withNoHealthyBackendsBehavior(ProbeNoHealthyBackendsBehavior noHealthyBackendsBehavior)

Set the noHealthyBackendsBehavior property: Determines how new connections are handled by the load balancer when all backend instances are probed down.

Parameters:

noHealthyBackendsBehavior - the noHealthyBackendsBehavior value to set.

Returns:

the ProbePropertiesFormat object itself.

withNumberOfProbes

public ProbePropertiesFormat withNumberOfProbes(Integer numberOfProbes)

Set the numberOfProbes property: The number of probes where if no response, will result in stopping further traffic from being delivered to the endpoint. This values allows endpoints to be taken out of rotation faster or slower than the typical times used in Azure.

Parameters:

numberOfProbes - the numberOfProbes value to set.

Returns:

the ProbePropertiesFormat object itself.

withPort

public ProbePropertiesFormat withPort(int port)

Set the port property: The port for communicating the probe. Possible values range from 1 to 65535, inclusive.

Parameters:

port - the port value to set.

Returns:

the ProbePropertiesFormat object itself.

withProbeThreshold

public ProbePropertiesFormat withProbeThreshold(Integer probeThreshold)

Set the probeThreshold property: The number of consecutive successful or failed probes in order to allow or deny traffic from being delivered to this endpoint. After failing the number of consecutive probes equal to this value, the endpoint will be taken out of rotation and require the same number of successful consecutive probes to be placed back in rotation.

Parameters:

probeThreshold - the probeThreshold value to set.

Returns:

the ProbePropertiesFormat object itself.

withProtocol

public ProbePropertiesFormat withProtocol(ProbeProtocol protocol)

Set the protocol property: The protocol of the end point. If 'Tcp' is specified, a received ACK is required for the probe to be successful. If 'Http' or 'Https' is specified, a 200 OK response from the specifies URI is required for the probe to be successful.

Parameters:

protocol - the protocol value to set.

Returns:

the ProbePropertiesFormat object itself.

withRequestPath

public ProbePropertiesFormat withRequestPath(String requestPath)

Set the requestPath property: The URI used for requesting health status from the VM. Path is required if a protocol is set to http. Otherwise, it is not allowed. There is no default value.

Parameters:

requestPath - the requestPath value to set.

Returns:

the ProbePropertiesFormat object itself.

Applies to