Class ApplicationGatewayOnDemandProbe
- java.lang.Object
-
- com.azure.resourcemanager.network.models.ApplicationGatewayOnDemandProbe
-
public final class ApplicationGatewayOnDemandProbe extends Object
Details of on demand test probe request.
-
-
Constructor Summary
Constructors Constructor Description ApplicationGatewayOnDemandProbe()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.azure.core.management.SubResourcebackendAddressPool()Get the backendAddressPool property: Reference to backend pool of application gateway to which probe request will be sent.com.azure.core.management.SubResourcebackendHttpSettings()Get the backendHttpSettings property: Reference to backend http setting of application gateway to be used for test probe.Stringhost()Get the host property: Host name to send the probe to.ApplicationGatewayProbeHealthResponseMatchmatch()Get the match property: Criterion for classifying a healthy probe response.Stringpath()Get the path property: Relative path of probe.BooleanpickHostnameFromBackendHttpSettings()Get the pickHostnameFromBackendHttpSettings property: Whether the host header should be picked from the backend http settings.ApplicationGatewayProtocolprotocol()Get the protocol property: The protocol used for the probe.Integertimeout()Get the timeout property: The probe timeout in seconds.voidvalidate()Validates the instance.ApplicationGatewayOnDemandProbewithBackendAddressPool(com.azure.core.management.SubResource backendAddressPool)Set the backendAddressPool property: Reference to backend pool of application gateway to which probe request will be sent.ApplicationGatewayOnDemandProbewithBackendHttpSettings(com.azure.core.management.SubResource backendHttpSettings)Set the backendHttpSettings property: Reference to backend http setting of application gateway to be used for test probe.ApplicationGatewayOnDemandProbewithHost(String host)Set the host property: Host name to send the probe to.ApplicationGatewayOnDemandProbewithMatch(ApplicationGatewayProbeHealthResponseMatch match)Set the match property: Criterion for classifying a healthy probe response.ApplicationGatewayOnDemandProbewithPath(String path)Set the path property: Relative path of probe.ApplicationGatewayOnDemandProbewithPickHostnameFromBackendHttpSettings(Boolean pickHostnameFromBackendHttpSettings)Set the pickHostnameFromBackendHttpSettings property: Whether the host header should be picked from the backend http settings.ApplicationGatewayOnDemandProbewithProtocol(ApplicationGatewayProtocol protocol)Set the protocol property: The protocol used for the probe.ApplicationGatewayOnDemandProbewithTimeout(Integer timeout)Set the timeout property: The probe timeout in seconds.
-
-
-
Method Detail
-
protocol
public ApplicationGatewayProtocol protocol()
Get the protocol property: The protocol used for the probe.- Returns:
- the protocol value.
-
withProtocol
public ApplicationGatewayOnDemandProbe withProtocol(ApplicationGatewayProtocol protocol)
Set the protocol property: The protocol used for the probe.- Parameters:
protocol- the protocol value to set.- Returns:
- the ApplicationGatewayOnDemandProbe object itself.
-
host
public String host()
Get the host property: Host name to send the probe to.- Returns:
- the host value.
-
withHost
public ApplicationGatewayOnDemandProbe withHost(String host)
Set the host property: Host name to send the probe to.- Parameters:
host- the host value to set.- Returns:
- the ApplicationGatewayOnDemandProbe object itself.
-
path
public String 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
public ApplicationGatewayOnDemandProbe withPath(String path)
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 ApplicationGatewayOnDemandProbe object itself.
-
timeout
public Integer 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
public ApplicationGatewayOnDemandProbe withTimeout(Integer timeout)
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 ApplicationGatewayOnDemandProbe object itself.
-
pickHostnameFromBackendHttpSettings
public Boolean 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 ApplicationGatewayOnDemandProbe 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 ApplicationGatewayOnDemandProbe object itself.
-
match
public ApplicationGatewayProbeHealthResponseMatch match()
Get the match property: Criterion for classifying a healthy probe response.- Returns:
- the match value.
-
withMatch
public ApplicationGatewayOnDemandProbe withMatch(ApplicationGatewayProbeHealthResponseMatch match)
Set the match property: Criterion for classifying a healthy probe response.- Parameters:
match- the match value to set.- Returns:
- the ApplicationGatewayOnDemandProbe object itself.
-
backendAddressPool
public com.azure.core.management.SubResource backendAddressPool()
Get the backendAddressPool property: Reference to backend pool of application gateway to which probe request will be sent.- Returns:
- the backendAddressPool value.
-
withBackendAddressPool
public ApplicationGatewayOnDemandProbe withBackendAddressPool(com.azure.core.management.SubResource backendAddressPool)
Set the backendAddressPool property: 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.azure.core.management.SubResource backendHttpSettings()
Get the backendHttpSettings property: Reference to backend http setting of application gateway to be used for test probe.- Returns:
- the backendHttpSettings value.
-
withBackendHttpSettings
public ApplicationGatewayOnDemandProbe withBackendHttpSettings(com.azure.core.management.SubResource backendHttpSettings)
Set the backendHttpSettings property: 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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-