Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. */
package com.microsoft.azure.management.network; import java.util.Set; import com.microsoft.azure.management.apigeneration.Beta; import com.microsoft.azure.management.apigeneration.Beta.SinceVersion; import com.microsoft.azure.management.apigeneration.Fluent; import com.microsoft.azure.management.apigeneration.Method; import com.microsoft.azure.management.network.implementation.ApplicationGatewayProbeInner; import com.microsoft.azure.management.network.model.HasProtocol; import com.microsoft.azure.management.resources.fluentcore.arm.models.ChildResource; import com.microsoft.azure.management.resources.fluentcore.model.Attachable; import com.microsoft.azure.management.resources.fluentcore.model.Settable; import com.microsoft.azure.management.resources.fluentcore.model.HasInner;
A client-side representation of an application gateway probe.
/** * A client-side representation of an application gateway probe. */
@Fluent() public interface ApplicationGatewayProbe extends HasInner<ApplicationGatewayProbeInner>, ChildResource<ApplicationGateway>, HasProtocol<ApplicationGatewayProtocol> {
Returns:the number of seconds between probe retries
/** * @return the number of seconds between probe retries */
int timeBetweenProbesInSeconds();
Returns:HTTP response code ranges in the format ###-### returned by the backend which the probe considers healthy.
/** * @return HTTP response code ranges in the format ###-### returned by the backend which the probe considers healthy. */
@Beta(SinceVersion.V1_4_0) Set<String> healthyHttpResponseStatusCodeRanges();
Returns:the body contents of an HTTP response to a probe to check for to determine backend health, or null if none specified
/** * @return the body contents of an HTTP response to a probe to check for to determine backend health, or null if none specified */
@Beta(SinceVersion.V1_4_0) String healthyHttpResponseBodyContents();
Returns:the relative path to be called by the probe
/** * @return the relative path to be called by the probe */
String path();
Returns:the number of seconds waiting for a response after which the probe times out and it is marked as failed

Acceptable values are from 1 to 86400 seconds.

/** * @return the number of seconds waiting for a response after which the probe times out and it is marked as failed * <p>Acceptable values are from 1 to 86400 seconds. */
int timeoutInSeconds();
Returns:the number of failed retry probes before the backend server is marked as being down

Acceptable values are from 1 second to 20.

/** * @return the number of failed retry probes before the backend server is marked as being down * <p>Acceptable values are from 1 second to 20. */
int retriesBeforeUnhealthy();
Returns:host name to send the probe to
/** * @return host name to send the probe to */
String host();
Grouping of application gateway probe definition stages.
/** * Grouping of application gateway probe definition stages. */
interface DefinitionStages {
The first stage of an application gateway probe definition.
Type parameters:
  • <ParentT> – the stage of the parent application gateway definition to return to after attaching this definition
/** * The first stage of an application gateway probe definition. * @param <ParentT> the stage of the parent application gateway definition to return to after attaching this definition */
interface Blank<ParentT> extends WithHost<ParentT> { }
Stage of an application gateway probe definition allowing to specify the host to send the probe to.
Type parameters:
  • <ParentT> – the stage of the parent application gateway definition to return to after attaching this definition
/** * Stage of an application gateway probe definition allowing to specify the host to send the probe to. * @param <ParentT> the stage of the parent application gateway definition to return to after attaching this definition */
interface WithHost<ParentT> {
Specifies the host name to send the probe to.
Params:
  • host – a host name
Returns:the next stage of the definition
/** * Specifies the host name to send the probe to. * @param host a host name * @return the next stage of the definition */
WithPath<ParentT> withHost(String host); }
Stage of an application gateway probe definition allowing to specify the relative path to send the probe to.
Type parameters:
  • <ParentT> – the stage of the parent application gateway definition to return to after attaching this definition
/** * Stage of an application gateway probe definition allowing to specify the relative path to send the probe to. * @param <ParentT> the stage of the parent application gateway definition to return to after attaching this definition */
interface WithPath<ParentT> {
Specifies the relative path for the probe to call.

A probe is sent to <protocol>://<host>:<port><path>.

Params:
  • path – a relative path
Returns:the next stage of the definition
/** * Specifies the relative path for the probe to call. * <p>A probe is sent to &lt;protocol&gt;://&lt;host&gt;:&lt;port&gt;&lt;path&gt;. * @param path a relative path * @return the next stage of the definition */
WithProtocol<ParentT> withPath(String path); }
Stage of an application gateway probe update allowing to specify the protocol of the probe.
Type parameters:
  • <ParentT> – the stage of the parent application gateway definition to return to after attaching this definition
/** * Stage of an application gateway probe update allowing to specify the protocol of the probe. * @param <ParentT> the stage of the parent application gateway definition to return to after attaching this definition */
interface WithProtocol<ParentT> extends HasProtocol.DefinitionStages.WithProtocol<WithTimeout<ParentT>, ApplicationGatewayProtocol> {
Specifies HTTP as the probe protocol.
Returns:the next stage of the definition
/** * Specifies HTTP as the probe protocol. * @return the next stage of the definition */
WithTimeout<ParentT> withHttp();
Specifies HTTPS as the probe protocol.
Returns:the next stage of the definition
/** * Specifies HTTPS as the probe protocol. * @return the next stage of the definition */
WithTimeout<ParentT> withHttps(); }
Stage of an application gateway probe definition allowing to specify the amount of time to after which the probe is considered failed.
Type parameters:
  • <ParentT> – the stage of the parent application gateway definition to return to after attaching this definition
/** * Stage of an application gateway probe definition allowing to specify the amount of time to after which the probe is considered failed. * @param <ParentT> the stage of the parent application gateway definition to return to after attaching this definition */
interface WithTimeout<ParentT> {
Specifies the amount of time in seconds waiting for a response before the probe is considered failed.
Params:
  • seconds – a number of seconds, between 1 and 86400
Returns:the next stage of the definition
/** * Specifies the amount of time in seconds waiting for a response before the probe is considered failed. * @param seconds a number of seconds, between 1 and 86400 * @return the next stage of the definition */
WithAttach<ParentT> withTimeoutInSeconds(int seconds); }
Stage of an application gateway probe definition allowing to specify the time interval between consecutive probes.
Type parameters:
  • <ParentT> – the stage of the parent application gateway definition to return to after attaching this definition
/** * Stage of an application gateway probe definition allowing to specify the time interval between consecutive probes. * @param <ParentT> the stage of the parent application gateway definition to return to after attaching this definition */
interface WithInterval<ParentT> {
Specifies the time interval in seconds between consecutive probes.
Params:
  • seconds – a number of seconds between 1 and 86400
Returns:the next stage of the definition
/** * Specifies the time interval in seconds between consecutive probes. * @param seconds a number of seconds between 1 and 86400 * @return the next stage of the definition */
WithAttach<ParentT> withTimeBetweenProbesInSeconds(int seconds); }
Stage of an application gateway probe definition allowing to specify the number of retries before the server is considered unhealthy.
Type parameters:
  • <ParentT> – the stage of the parent application gateway definition to return to after attaching this definition
/** * Stage of an application gateway probe definition allowing to specify the number of retries before the server is considered unhealthy. * @param <ParentT> the stage of the parent application gateway definition to return to after attaching this definition */
interface WithRetries<ParentT> {
Specifies the number of retries before the server is considered unhealthy.
Params:
  • retryCount – a number between 1 and 20
Returns:the next stage of the definition
/** * Specifies the number of retries before the server is considered unhealthy. * @param retryCount a number between 1 and 20 * @return the next stage of the definition */
WithAttach<ParentT> withRetriesBeforeUnhealthy(int retryCount); }
The stage of an application gateway probe definition allowing to specify healthy HTTP response status code ranges.
Type parameters:
  • <ReturnT> – the stage of the parent application gateway definition to return to after attaching this definition
/** * The stage of an application gateway probe definition allowing to specify healthy HTTP response status code ranges. * @param <ReturnT> the stage of the parent application gateway definition to return to after attaching this definition */
interface WithHealthyHttpResponseStatusCodeRanges<ReturnT> {
Specifies the ranges of the backend's HTTP response status codes that are to be considered healthy.
Params:
  • ranges – number ranges expressed in the format "###-###", for example "200-399", which is the default
Returns:the next stage of the definition
/** * Specifies the ranges of the backend's HTTP response status codes that are to be considered healthy. * @param ranges number ranges expressed in the format "###-###", for example "200-399", which is the default * @return the next stage of the definition */
@Beta(SinceVersion.V1_4_0) WithAttach<ReturnT> withHealthyHttpResponseStatusCodeRanges(Set<String> ranges);
Adds the specified range of the backend's HTTP response status codes that are to be considered healthy.
Params:
  • range – a number range expressed in the format "###-###", for example "200-399", which is the default
Returns:the next stage of the definition
/** * Adds the specified range of the backend's HTTP response status codes that are to be considered healthy. * @param range a number range expressed in the format "###-###", for example "200-399", which is the default * @return the next stage of the definition */
@Beta(SinceVersion.V1_4_0) WithAttach<ReturnT> withHealthyHttpResponseStatusCodeRange(String range);
Adds the specified range of the backend's HTTP response status codes that are to be considered healthy.
Params:
  • from – the lowest number in the range
  • to – the highest number in the range
Returns:the next stage of the definition
/** * Adds the specified range of the backend's HTTP response status codes that are to be considered healthy. * @param from the lowest number in the range * @param to the highest number in the range * @return the next stage of the definition */
@Beta(SinceVersion.V1_4_0) WithAttach<ReturnT> withHealthyHttpResponseStatusCodeRange(int from, int to); }
The stage of an application gateway probe definition allowing to specify the body contents of a healthy HTTP response to a probe.
Type parameters:
  • <ReturnT> – the stage of the parent application gateway definition to return to after attaching this definition
/** * The stage of an application gateway probe definition allowing to specify the body contents of a healthy HTTP response to a probe. * @param <ReturnT> the stage of the parent application gateway definition to return to after attaching this definition */
interface WithHealthyHttpResponseBodyContents<ReturnT> {
Specifies the content, if any, to look for in the body of an HTTP response to a probe to determine the health status of the backend.
Params:
  • text – contents to look for
Returns:the next stage of the definition
/** * Specifies the content, if any, to look for in the body of an HTTP response to a probe to determine the health status of the backend. * @param text contents to look for * @return the next stage of the definition */
@Beta(SinceVersion.V1_4_0) WithAttach<ReturnT> withHealthyHttpResponseBodyContents(String text); }
The final stage of an application gateway probe definition.

At this stage, any remaining optional settings can be specified, or the probe definition can be attached to the parent application gateway definition.

Type parameters:
  • <ReturnT> – the stage of the parent application gateway definition to return to after attaching this definition
/** * The final stage of an application gateway probe definition. * <p> * At this stage, any remaining optional settings can be specified, or the probe definition * can be attached to the parent application gateway definition. * @param <ReturnT> the stage of the parent application gateway definition to return to after attaching this definition */
interface WithAttach<ReturnT> extends Attachable.InDefinitionAlt<ReturnT>, WithInterval<ReturnT>, WithRetries<ReturnT>, WithHealthyHttpResponseStatusCodeRanges<ReturnT>, WithHealthyHttpResponseBodyContents<ReturnT> { } }
The entirety of an application gateway probe definition.
Type parameters:
  • <ParentT> – the stage of the parent application gateway definition to return to after attaching this definition
/** * The entirety of an application gateway probe definition. * @param <ParentT> the stage of the parent application gateway definition to return to after attaching this definition */
interface Definition<ParentT> extends DefinitionStages.Blank<ParentT>, DefinitionStages.WithAttach<ParentT>, DefinitionStages.WithProtocol<ParentT>, DefinitionStages.WithPath<ParentT>, DefinitionStages.WithHost<ParentT>, DefinitionStages.WithTimeout<ParentT> { }
Grouping of application gateway probe update stages.
/** * Grouping of application gateway probe update stages. */
interface UpdateStages {
Stage of an application gateway probe update allowing to specify the host to send the probe to.
/** * Stage of an application gateway probe update allowing to specify the host to send the probe to. */
interface WithHost {
Specifies the host name to send the probe to.
Params:
  • host – a host name
Returns:the next stage of the update
/** * Specifies the host name to send the probe to. * @param host a host name * @return the next stage of the update */
Update withHost(String host); }
Stage of an application gateway probe update allowing to specify the protocol of the probe.
/** * Stage of an application gateway probe update allowing to specify the protocol of the probe. */
interface WithProtocol extends HasProtocol.UpdateStages.WithProtocol<Update, ApplicationGatewayProtocol> {
Specifies HTTP as the probe protocol.
Returns:the next stage of the update
/** * Specifies HTTP as the probe protocol. * @return the next stage of the update */
Update withHttp();
Specifies HTTPS as the probe protocol.
Returns:the next stage of the update
/** * Specifies HTTPS as the probe protocol. * @return the next stage of the update */
Update withHttps(); }
Stage of an application gateway probe update allowing to specify the path to send the probe to.
/** * Stage of an application gateway probe update allowing to specify the path to send the probe to. */
interface WithPath {
Specifies the relative path for the probe to call.

A probe is sent to <protocol>://<host>:<port><path>.

Params:
  • path – a relative path
Returns:the next stage of the update
/** * Specifies the relative path for the probe to call. * <p>A probe is sent to &lt;protocol&gt;://&lt;host&gt;:&lt;port&gt;&lt;path&gt;. * @param path a relative path * @return the next stage of the update */
Update withPath(String path); }
Stage of an application gateway probe update allowing to specify the amount of time to after which the probe is considered failed.
/** * Stage of an application gateway probe update allowing to specify the amount of time to after which the probe is considered failed. */
interface WithTimeout {
Specifies the amount of time in seconds waiting for a response before the probe is considered failed.
Params:
  • seconds – a number of seconds between 1 and 86400
Returns:the next stage of the update
/** * Specifies the amount of time in seconds waiting for a response before the probe is considered failed. * @param seconds a number of seconds between 1 and 86400 * @return the next stage of the update */
Update withTimeoutInSeconds(int seconds); }
Stage of an application gateway probe update allowing to specify the time interval between consecutive probes.
/** * Stage of an application gateway probe update allowing to specify the time interval between consecutive probes. */
interface WithInterval {
Specifies the time interval in seconds between consecutive probes.
Params:
  • seconds – a number of seconds between 1 and 86400
Returns:the next stage of the update
/** * Specifies the time interval in seconds between consecutive probes. * @param seconds a number of seconds between 1 and 86400 * @return the next stage of the update */
Update withTimeBetweenProbesInSeconds(int seconds); }
Stage of an application gateway probe update allowing to specify the number of retries before the server is considered unhealthy.
/** * Stage of an application gateway probe update allowing to specify the number of retries before the server is considered unhealthy. */
interface WithRetries {
Specifies the number of retries before the server is considered unhealthy.
Params:
  • retryCount – a number between 1 and 20
Returns:the next stage of the update
/** * Specifies the number of retries before the server is considered unhealthy. * @param retryCount a number between 1 and 20 * @return the next stage of the update */
Update withRetriesBeforeUnhealthy(int retryCount); }
The stage of an application gateway probe update allowing to specify healthy HTTP response status code ranges.
/** * The stage of an application gateway probe update allowing to specify healthy HTTP response status code ranges. */
interface WithHealthyHttpResponseStatusCodeRanges {
Specifies the ranges of the backend's HTTP response status codes that are to be considered healthy.
Params:
  • ranges – number ranges expressed in the format "###-###", for example "200-399", which is the default
Returns:the next stage of the update
/** * Specifies the ranges of the backend's HTTP response status codes that are to be considered healthy. * @param ranges number ranges expressed in the format "###-###", for example "200-399", which is the default * @return the next stage of the update */
@Beta(SinceVersion.V1_4_0) Update withHealthyHttpResponseStatusCodeRanges(Set<String> ranges);
Adds the specified range of the backend's HTTP response status codes that are to be considered healthy.
Params:
  • range – a number range expressed in the format "###-###", for example "200-399", which is the default
Returns:the next stage of the update
/** * Adds the specified range of the backend's HTTP response status codes that are to be considered healthy. * @param range a number range expressed in the format "###-###", for example "200-399", which is the default * @return the next stage of the update */
@Beta(SinceVersion.V1_4_0) Update withHealthyHttpResponseStatusCodeRange(String range);
Adds the specified range of the backend's HTTP response status codes that are to be considered healthy.
Params:
  • from – the lowest number in the range
  • to – the highest number in the range
Returns:the next stage of the update
/** * Adds the specified range of the backend's HTTP response status codes that are to be considered healthy. * @param from the lowest number in the range * @param to the highest number in the range * @return the next stage of the update */
@Beta(SinceVersion.V1_4_0) Update withHealthyHttpResponseStatusCodeRange(int from, int to);
Removes all healthy HTTP status response code ranges.
Returns:the next stage of the update
/** * Removes all healthy HTTP status response code ranges. * @return the next stage of the update */
@Method @Beta(SinceVersion.V1_4_0) Update withoutHealthyHttpResponseStatusCodeRanges(); }
The stage of an application gateway probe update allowing to specify the body contents of a healthy HTTP response to a probe.
/** * The stage of an application gateway probe update allowing to specify the body contents of a healthy HTTP response to a probe. */
interface WithHealthyHttpResponseBodyContents {
Specifies the content, if any, to look for in the body of an HTTP response to a probe to determine the health status of the backend.
Params:
  • text – contents to look for
Returns:the next stage of the definition
/** * Specifies the content, if any, to look for in the body of an HTTP response to a probe to determine the health status of the backend. * @param text contents to look for * @return the next stage of the definition */
@Beta(SinceVersion.V1_4_0) Update withHealthyHttpResponseBodyContents(String text); } }
The entirety of an application gateway probe update as part of an application gateway update.
/** * The entirety of an application gateway probe update as part of an application gateway update. */
interface Update extends Settable<ApplicationGateway.Update>, UpdateStages.WithProtocol, UpdateStages.WithPath, UpdateStages.WithHost, UpdateStages.WithTimeout, UpdateStages.WithInterval, UpdateStages.WithRetries, UpdateStages.WithHealthyHttpResponseStatusCodeRanges, UpdateStages.WithHealthyHttpResponseBodyContents { }
Grouping of application gateway probe definition stages applicable as part of an application gateway update.
/** * Grouping of application gateway probe definition stages applicable as part of an application gateway update. */
interface UpdateDefinitionStages {
The first stage of an application gateway probe definition.
Type parameters:
  • <ParentT> – the stage of the parent application gateway definition to return to after attaching this definition
/** * The first stage of an application gateway probe definition. * @param <ParentT> the stage of the parent application gateway definition to return to after attaching this definition */
interface Blank<ParentT> extends WithHost<ParentT> { }
Stage of an application gateway probe definition allowing to specify the host to send the probe to.
Type parameters:
  • <ParentT> – the stage of the parent application gateway update to return to after attaching this definition
/** * Stage of an application gateway probe definition allowing to specify the host to send the probe to. * @param <ParentT> the stage of the parent application gateway update to return to after attaching this definition */
interface WithHost<ParentT> {
Specifies the host name to send the probe to.
Params:
  • host – a host name
Returns:the next stage of the definition
/** * Specifies the host name to send the probe to. * @param host a host name * @return the next stage of the definition */
WithPath<ParentT> withHost(String host); }
Stage of an application gateway probe definition allowing to specify the protocol of the probe.
Type parameters:
  • <ParentT> – the stage of the parent application gateway update to return to after attaching this definition
/** * Stage of an application gateway probe definition allowing to specify the protocol of the probe. * @param <ParentT> the stage of the parent application gateway update to return to after attaching this definition */
interface WithProtocol<ParentT> extends HasProtocol.UpdateDefinitionStages.WithProtocol<WithTimeout<ParentT>, ApplicationGatewayProtocol> {
Specifies HTTP as the probe protocol.
Returns:the next stage of the definition
/** * Specifies HTTP as the probe protocol. * @return the next stage of the definition */
WithTimeout<ParentT> withHttp();
Specifies HTTPS as the probe protocol.
Returns:the next stage of the definition
/** * Specifies HTTPS as the probe protocol. * @return the next stage of the definition */
WithTimeout<ParentT> withHttps(); }
Stage of an application gateway probe definition allowing to specify the amount of time to after which the probe is considered failed.
Type parameters:
  • <ParentT> – the stage of the parent application gateway update to return to after attaching this definition
/** * Stage of an application gateway probe definition allowing to specify the amount of time to after which the probe is considered failed. * @param <ParentT> the stage of the parent application gateway update to return to after attaching this definition */
interface WithTimeout<ParentT> {
Specifies the amount of time in seconds waiting for a response before the probe is considered failed.
Params:
  • seconds – a number of seconds between 1 and 86400
Returns:the next stage of the definition
/** * Specifies the amount of time in seconds waiting for a response before the probe is considered failed. * @param seconds a number of seconds between 1 and 86400 * @return the next stage of the definition */
WithAttach<ParentT> withTimeoutInSeconds(int seconds); }
Stage of an application gateway probe definition allowing to specify the path to send the probe to.
Type parameters:
  • <ParentT> – the stage of the parent application gateway update to return to after attaching this definition
/** * Stage of an application gateway probe definition allowing to specify the path to send the probe to. * @param <ParentT> the stage of the parent application gateway update to return to after attaching this definition */
interface WithPath<ParentT> {
Specifies the relative path for the probe to call.

A probe is sent to <protocol>://<host>:<port><path>.

Params:
  • path – a relative path
Returns:the next stage of the definition
/** * Specifies the relative path for the probe to call. * <p>A probe is sent to &lt;protocol&gt;://&lt;host&gt;:&lt;port&gt;&lt;path&gt;. * @param path a relative path * @return the next stage of the definition */
WithProtocol<ParentT> withPath(String path); }
Stage of an application gateway probe definition allowing to specify the time interval between consecutive probes.
Type parameters:
  • <ParentT> – the stage of the parent application gateway update to return to after attaching this definition
/** * Stage of an application gateway probe definition allowing to specify the time interval between consecutive probes. * @param <ParentT> the stage of the parent application gateway update to return to after attaching this definition */
interface WithInterval<ParentT> {
Specifies the time interval in seconds between consecutive probes.
Params:
  • seconds – a number of seconds between 1 and 86400
Returns:the next stage of the definition
/** * Specifies the time interval in seconds between consecutive probes. * @param seconds a number of seconds between 1 and 86400 * @return the next stage of the definition */
WithAttach<ParentT> withTimeBetweenProbesInSeconds(int seconds); }
Stage of an application gateway probe definition allowing to specify the number of retries before the server is considered unhealthy.
Type parameters:
  • <ParentT> – the stage of the parent application gateway update to return to after attaching this definition
/** * Stage of an application gateway probe definition allowing to specify the number of retries before the server is considered unhealthy. * @param <ParentT> the stage of the parent application gateway update to return to after attaching this definition */
interface WithRetries<ParentT> {
Specifies the number of retries before the server is considered unhealthy.
Params:
  • retryCount – a number between 1 and 20
Returns:the next stage of the definition
/** * Specifies the number of retries before the server is considered unhealthy. * @param retryCount a number between 1 and 20 * @return the next stage of the definition */
WithAttach<ParentT> withRetriesBeforeUnhealthy(int retryCount); }
The stage of an application gateway probe definition allowing to specify healthy HTTP response status code ranges.
Type parameters:
  • <ReturnT> – the stage of the parent application gateway update to return to after attaching this definition
/** * The stage of an application gateway probe definition allowing to specify healthy HTTP response status code ranges. * @param <ReturnT> the stage of the parent application gateway update to return to after attaching this definition */
interface WithHealthyHttpResponseStatusCodeRanges<ReturnT> {
Specifies the ranges of the backend's HTTP response status codes that are to be considered healthy.
Params:
  • ranges – number ranges expressed in the format "###-###", for example "200-399", which is the default
Returns:the next stage of the definition
/** * Specifies the ranges of the backend's HTTP response status codes that are to be considered healthy. * @param ranges number ranges expressed in the format "###-###", for example "200-399", which is the default * @return the next stage of the definition */
@Beta(SinceVersion.V1_4_0) WithAttach<ReturnT> withHealthyHttpResponseStatusCodeRanges(Set<String> ranges);
Adds the specified range of the backend's HTTP response status codes that are to be considered healthy.
Params:
  • range – a number range expressed in the format "###-###", for example "200-399", which is the default
Returns:the next stage of the definition
/** * Adds the specified range of the backend's HTTP response status codes that are to be considered healthy. * @param range a number range expressed in the format "###-###", for example "200-399", which is the default * @return the next stage of the definition */
@Beta(SinceVersion.V1_4_0) WithAttach<ReturnT> withHealthyHttpResponseStatusCodeRange(String range);
Adds the specified range of the backend's HTTP response status codes that are to be considered healthy.
Params:
  • from – the lowest number in the range
  • to – the highest number in the range
Returns:the next stage of the definition
/** * Adds the specified range of the backend's HTTP response status codes that are to be considered healthy. * @param from the lowest number in the range * @param to the highest number in the range * @return the next stage of the definition */
@Beta(SinceVersion.V1_4_0) WithAttach<ReturnT> withHealthyHttpResponseStatusCodeRange(int from, int to); }
The stage of an application gateway probe definition allowing to specify the body contents of a healthy HTTP response to a probe.
Type parameters:
  • <ReturnT> – the stage of the parent application gateway update to return to after attaching this definition
/** * The stage of an application gateway probe definition allowing to specify the body contents of a healthy HTTP response to a probe. * @param <ReturnT> the stage of the parent application gateway update to return to after attaching this definition */
interface WithHealthyHttpResponseBodyContents<ReturnT> {
Specifies the content, if any, to look for in the body of an HTTP response to a probe to determine the health status of the backend.
Params:
  • text – contents to look for
Returns:the next stage of the definition
/** * Specifies the content, if any, to look for in the body of an HTTP response to a probe to determine the health status of the backend. * @param text contents to look for * @return the next stage of the definition */
@Beta(SinceVersion.V1_4_0) WithAttach<ReturnT> withHealthyHttpResponseBodyContents(String text); }
The final stage of an application gateway probe definition.

At this stage, any remaining optional settings can be specified, or the probe definition can be attached to the parent application gateway definition.

Type parameters:
  • <ParentT> – the stage of the parent application gateway definition to return to after attaching this definition
/** The final stage of an application gateway probe definition. * <p> * At this stage, any remaining optional settings can be specified, or the probe definition * can be attached to the parent application gateway definition. * @param <ParentT> the stage of the parent application gateway definition to return to after attaching this definition */
interface WithAttach<ParentT> extends Attachable.InUpdateAlt<ParentT>, WithInterval<ParentT>, WithRetries<ParentT>, WithHealthyHttpResponseStatusCodeRanges<ParentT>, WithHealthyHttpResponseBodyContents<ParentT> { } }
The entirety of an application gateway probe definition as part of an application gateway update.
Type parameters:
  • <ParentT> – the stage of the parent application gateway definition to return to after attaching this definition
/** The entirety of an application gateway probe definition as part of an application gateway update. * @param <ParentT> the stage of the parent application gateway definition to return to after attaching this definition */
interface UpdateDefinition<ParentT> extends UpdateDefinitionStages.Blank<ParentT>, UpdateDefinitionStages.WithAttach<ParentT>, UpdateDefinitionStages.WithProtocol<ParentT>, UpdateDefinitionStages.WithPath<ParentT>, UpdateDefinitionStages.WithHost<ParentT>, UpdateDefinitionStages.WithTimeout<ParentT>, UpdateDefinitionStages.WithInterval<ParentT> { } }