Class ApplicationGatewayProbePropertiesFormat
java.lang.Object
com.azure.resourcemanager.network.fluent.models.ApplicationGatewayProbePropertiesFormat
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ApplicationGatewayProbePropertiesFormat>
public final class ApplicationGatewayProbePropertiesFormat
extends Object
implements com.azure.json.JsonSerializable<ApplicationGatewayProbePropertiesFormat>
Properties of probe of an application gateway.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ApplicationGatewayProbePropertiesFormat class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApplicationGatewayProbePropertiesFormat from the JsonReader.host()Get the host property: Host name to send the probe to.interval()Get the interval property: The probing interval in seconds.match()Get the match property: Criterion for classifying a healthy probe response.Get the minServers property: Minimum number of servers that are always marked healthy.path()Get the path property: Relative path of probe.Get the pickHostnameFromBackendHttpSettings property: Whether the host header should be picked from the backend http settings.Get the pickHostnameFromBackendSettings property: Whether the server name indication should be picked from the backend settings for Tls protocol.port()Get the port property: Custom port which will be used for probing the backend servers.protocol()Get the protocol property: The protocol used for the probe.Get the provisioningState property: The provisioning state of the probe resource.timeout()Get the timeout property: The probe timeout in seconds.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the unhealthyThreshold property: The probe retry count.voidvalidate()Validates the instance.Set the host property: Host name to send the probe to.withInterval(Integer interval) Set the interval property: The probing interval in seconds.Set the match property: Criterion for classifying a healthy probe response.withMinServers(Integer minServers) Set the minServers property: Minimum number of servers that are always marked healthy.Set the path property: Relative path of probe.withPickHostnameFromBackendHttpSettings(Boolean pickHostnameFromBackendHttpSettings) Set the pickHostnameFromBackendHttpSettings property: Whether the host header should be picked from the backend http settings.withPickHostnameFromBackendSettings(Boolean pickHostnameFromBackendSettings) Set the pickHostnameFromBackendSettings property: Whether the server name indication should be picked from the backend settings for Tls protocol.Set the port property: Custom port which will be used for probing the backend servers.withProtocol(ApplicationGatewayProtocol protocol) Set the protocol property: The protocol used for the probe.withTimeout(Integer timeout) Set the timeout property: The probe timeout in seconds.withUnhealthyThreshold(Integer unhealthyThreshold) Set the unhealthyThreshold property: The probe retry count.Methods inherited from class java.lang.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
-
ApplicationGatewayProbePropertiesFormat
public ApplicationGatewayProbePropertiesFormat()Creates an instance of ApplicationGatewayProbePropertiesFormat class.
-
-
Method Details
-
protocol
Get the protocol property: The protocol used for the probe.- Returns:
- the protocol value.
-
withProtocol
Set the protocol property: The protocol used for the probe.- Parameters:
protocol- the protocol value to set.- Returns:
- the ApplicationGatewayProbePropertiesFormat object itself.
-
host
Get the host property: Host name to send the probe to.- Returns:
- the host value.
-
withHost
Set the host property: Host name to send the probe to.- Parameters:
host- the host value to set.- Returns:
- the ApplicationGatewayProbePropertiesFormat object itself.
-
path
Get the path property: Relative path of probe. Valid path starts from '/'. Probe is sent to <Protocol>://<host>:<port><path>.- Returns:
- the path value.
-
withPath
Set the path property: Relative path of probe. Valid path starts from '/'. Probe is sent to <Protocol>://<host>:<port><path>.- Parameters:
path- the path value to set.- Returns:
- the ApplicationGatewayProbePropertiesFormat object itself.
-
interval
Get the interval property: The probing interval in seconds. This is the time interval between two consecutive probes. Acceptable values are from 1 second to 86400 seconds.- Returns:
- the interval value.
-
withInterval
Set the interval property: The probing interval in seconds. This is the time interval between two consecutive probes. Acceptable values are from 1 second to 86400 seconds.- Parameters:
interval- the interval value to set.- Returns:
- the ApplicationGatewayProbePropertiesFormat object itself.
-
timeout
Get the timeout property: The probe timeout in seconds. Probe marked as failed if valid response is not received with this timeout period. Acceptable values are from 1 second to 86400 seconds.- Returns:
- the timeout value.
-
withTimeout
Set the timeout property: The probe timeout in seconds. Probe marked as failed if valid response is not received with this timeout period. Acceptable values are from 1 second to 86400 seconds.- Parameters:
timeout- the timeout value to set.- Returns:
- the ApplicationGatewayProbePropertiesFormat object itself.
-
unhealthyThreshold
Get the unhealthyThreshold property: The probe retry count. Backend server is marked down after consecutive probe failure count reaches UnhealthyThreshold. Acceptable values are from 1 second to 20.- Returns:
- the unhealthyThreshold value.
-
withUnhealthyThreshold
Set the unhealthyThreshold property: The probe retry count. Backend server is marked down after consecutive probe failure count reaches UnhealthyThreshold. Acceptable values are from 1 second to 20.- Parameters:
unhealthyThreshold- the unhealthyThreshold value to set.- Returns:
- the ApplicationGatewayProbePropertiesFormat object itself.
-
pickHostnameFromBackendHttpSettings
Get the pickHostnameFromBackendHttpSettings property: Whether the host header should be picked from the backend http settings. Default value is false.- Returns:
- the pickHostnameFromBackendHttpSettings value.
-
withPickHostnameFromBackendHttpSettings
public ApplicationGatewayProbePropertiesFormat withPickHostnameFromBackendHttpSettings(Boolean pickHostnameFromBackendHttpSettings) Set the pickHostnameFromBackendHttpSettings property: Whether the host header should be picked from the backend http settings. Default value is false.- Parameters:
pickHostnameFromBackendHttpSettings- the pickHostnameFromBackendHttpSettings value to set.- Returns:
- the ApplicationGatewayProbePropertiesFormat object itself.
-
pickHostnameFromBackendSettings
Get the pickHostnameFromBackendSettings property: Whether the server name indication should be picked from the backend settings for Tls protocol. Default value is false.- Returns:
- the pickHostnameFromBackendSettings value.
-
withPickHostnameFromBackendSettings
public ApplicationGatewayProbePropertiesFormat withPickHostnameFromBackendSettings(Boolean pickHostnameFromBackendSettings) Set the pickHostnameFromBackendSettings property: Whether the server name indication should be picked from the backend settings for Tls protocol. Default value is false.- Parameters:
pickHostnameFromBackendSettings- the pickHostnameFromBackendSettings value to set.- Returns:
- the ApplicationGatewayProbePropertiesFormat object itself.
-
minServers
Get the minServers property: Minimum number of servers that are always marked healthy. Default value is 0.- Returns:
- the minServers value.
-
withMinServers
Set the minServers property: Minimum number of servers that are always marked healthy. Default value is 0.- Parameters:
minServers- the minServers value to set.- Returns:
- the ApplicationGatewayProbePropertiesFormat object itself.
-
match
Get the match property: Criterion for classifying a healthy probe response.- Returns:
- the match value.
-
withMatch
public ApplicationGatewayProbePropertiesFormat withMatch(ApplicationGatewayProbeHealthResponseMatch match) Set the match property: Criterion for classifying a healthy probe response.- Parameters:
match- the match value to set.- Returns:
- the ApplicationGatewayProbePropertiesFormat object itself.
-
provisioningState
Get the provisioningState property: The provisioning state of the probe resource.- Returns:
- the provisioningState value.
-
port
Get the port property: Custom port which will be used for probing the backend servers. The valid value ranges from 1 to 65535. In case not set, port from http settings will be used. This property is valid for Basic, Standard_v2 and WAF_v2 only.- Returns:
- the port value.
-
withPort
Set the port property: Custom port which will be used for probing the backend servers. The valid value ranges from 1 to 65535. In case not set, port from http settings will be used. This property is valid for Basic, Standard_v2 and WAF_v2 only.- Parameters:
port- the port value to set.- Returns:
- the ApplicationGatewayProbePropertiesFormat 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<ApplicationGatewayProbePropertiesFormat>- Throws:
IOException
-
fromJson
public static ApplicationGatewayProbePropertiesFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ApplicationGatewayProbePropertiesFormat from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ApplicationGatewayProbePropertiesFormat 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 ApplicationGatewayProbePropertiesFormat.
-