Class ApplicationGatewayOnDemandProbe
java.lang.Object
com.microsoft.azure.management.network.ApplicationGatewayOnDemandProbe
Details of on demand test probe request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.microsoft.azure.SubResource
Get reference to backend pool of application gateway to which probe request will be sent.com.microsoft.azure.SubResource
Get reference to backend http setting of application gateway to be used for test probe.host()
Get host name to send the probe to.match()
Get criterion for classifying a healthy probe response.path()
Get relative path of probe.Get whether the host header should be picked from the backend http settings.protocol()
Get the protocol used for the probe.timeout()
Get the probe timeout in seconds.withBackendAddressPool
(com.microsoft.azure.SubResource backendAddressPool) Set reference to backend pool of application gateway to which probe request will be sent.withBackendHttpSettings
(com.microsoft.azure.SubResource backendHttpSettings) Set reference to backend http setting of application gateway to be used for test probe.Set host name to send the probe to.Set criterion for classifying a healthy probe response.Set relative path of probe.withPickHostNameFromBackendHttpSettings
(Boolean pickHostNameFromBackendHttpSettings) Set whether the host header should be picked from the backend http settings.withProtocol
(ApplicationGatewayProtocol protocol) Set the protocol used for the probe.withTimeout
(Integer timeout) Set the probe timeout in seconds.
-
Constructor Details
-
ApplicationGatewayOnDemandProbe
public ApplicationGatewayOnDemandProbe()
-
-
Method Details
-
protocol
Get the protocol used for the probe. Possible values include: 'Http', 'Https'.- Returns:
- the protocol value
-
withProtocol
Set the protocol used for the probe. Possible values include: 'Http', 'Https'.- Parameters:
protocol
- the protocol value to set- Returns:
- the ApplicationGatewayOnDemandProbe object itself.
-
host
Get host name to send the probe to.- Returns:
- the host value
-
withHost
Set host name to send the probe to.- Parameters:
host
- the host value to set- Returns:
- the ApplicationGatewayOnDemandProbe object itself.
-
path
Get relative path of probe. Valid path starts from '/'. Probe is sent to <Protocol>://<host>:<port><path>.- Returns:
- the path value
-
withPath
Set 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 ApplicationGatewayOnDemandProbe object itself.
-
timeout
Get 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 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 ApplicationGatewayOnDemandProbe object itself.
-
pickHostNameFromBackendHttpSettings
Get whether the host header should be picked from the backend http settings. Default value is false.- Returns:
- the pickHostNameFromBackendHttpSettings value
-
withPickHostNameFromBackendHttpSettings
public ApplicationGatewayOnDemandProbe withPickHostNameFromBackendHttpSettings(Boolean pickHostNameFromBackendHttpSettings) Set 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 ApplicationGatewayOnDemandProbe object itself.
-
match
Get criterion for classifying a healthy probe response.- Returns:
- the match value
-
withMatch
Set criterion for classifying a healthy probe response.- Parameters:
match
- the match value to set- Returns:
- the ApplicationGatewayOnDemandProbe object itself.
-
backendAddressPool
public com.microsoft.azure.SubResource backendAddressPool()Get reference to backend pool of application gateway to which probe request will be sent.- Returns:
- the backendAddressPool value
-
withBackendAddressPool
public ApplicationGatewayOnDemandProbe withBackendAddressPool(com.microsoft.azure.SubResource backendAddressPool) Set reference to backend pool of application gateway to which probe request will be sent.- Parameters:
backendAddressPool
- the backendAddressPool value to set- Returns:
- the ApplicationGatewayOnDemandProbe object itself.
-
backendHttpSettings
public com.microsoft.azure.SubResource backendHttpSettings()Get reference to backend http setting of application gateway to be used for test probe.- Returns:
- the backendHttpSettings value
-
withBackendHttpSettings
public ApplicationGatewayOnDemandProbe withBackendHttpSettings(com.microsoft.azure.SubResource backendHttpSettings) Set reference to backend http setting of application gateway to be used for test probe.- Parameters:
backendHttpSettings
- the backendHttpSettings value to set- Returns:
- the ApplicationGatewayOnDemandProbe object itself.
-