Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.network.implementation; import com.microsoft.azure.management.network.ApplicationGatewayRedirectType; import com.microsoft.azure.SubResource; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten;
Redirect configuration of an application gateway.
/** * Redirect configuration of an application gateway. */
@JsonFlatten public class ApplicationGatewayRedirectConfigurationInner extends SubResource {
HTTP redirection type. Possible values include: 'Permanent', 'Found', 'SeeOther', 'Temporary'.
/** * HTTP redirection type. Possible values include: 'Permanent', 'Found', * 'SeeOther', 'Temporary'. */
@JsonProperty(value = "properties.redirectType") private ApplicationGatewayRedirectType redirectType;
Reference to a listener to redirect the request to.
/** * Reference to a listener to redirect the request to. */
@JsonProperty(value = "properties.targetListener") private SubResource targetListener;
Url to redirect the request to.
/** * Url to redirect the request to. */
@JsonProperty(value = "properties.targetUrl") private String targetUrl;
Include path in the redirected url.
/** * Include path in the redirected url. */
@JsonProperty(value = "properties.includePath") private Boolean includePath;
Include query string in the redirected url.
/** * Include query string in the redirected url. */
@JsonProperty(value = "properties.includeQueryString") private Boolean includeQueryString;
Request routing specifying redirect configuration.
/** * Request routing specifying redirect configuration. */
@JsonProperty(value = "properties.requestRoutingRules") private List<SubResource> requestRoutingRules;
Url path maps specifying default redirect configuration.
/** * Url path maps specifying default redirect configuration. */
@JsonProperty(value = "properties.urlPathMaps") private List<SubResource> urlPathMaps;
Path rules specifying redirect configuration.
/** * Path rules specifying redirect configuration. */
@JsonProperty(value = "properties.pathRules") private List<SubResource> pathRules;
Name of the redirect configuration that is unique within an Application Gateway.
/** * Name of the redirect configuration that is unique within an Application * Gateway. */
@JsonProperty(value = "name") private String name;
A unique read-only string that changes whenever the resource is updated.
/** * A unique read-only string that changes whenever the resource is updated. */
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) private String etag;
Type of the resource.
/** * Type of the resource. */
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) private String type;
Get hTTP redirection type. Possible values include: 'Permanent', 'Found', 'SeeOther', 'Temporary'.
Returns:the redirectType value
/** * Get hTTP redirection type. Possible values include: 'Permanent', 'Found', 'SeeOther', 'Temporary'. * * @return the redirectType value */
public ApplicationGatewayRedirectType redirectType() { return this.redirectType; }
Set hTTP redirection type. Possible values include: 'Permanent', 'Found', 'SeeOther', 'Temporary'.
Params:
  • redirectType – the redirectType value to set
Returns:the ApplicationGatewayRedirectConfigurationInner object itself.
/** * Set hTTP redirection type. Possible values include: 'Permanent', 'Found', 'SeeOther', 'Temporary'. * * @param redirectType the redirectType value to set * @return the ApplicationGatewayRedirectConfigurationInner object itself. */
public ApplicationGatewayRedirectConfigurationInner withRedirectType(ApplicationGatewayRedirectType redirectType) { this.redirectType = redirectType; return this; }
Get reference to a listener to redirect the request to.
Returns:the targetListener value
/** * Get reference to a listener to redirect the request to. * * @return the targetListener value */
public SubResource targetListener() { return this.targetListener; }
Set reference to a listener to redirect the request to.
Params:
  • targetListener – the targetListener value to set
Returns:the ApplicationGatewayRedirectConfigurationInner object itself.
/** * Set reference to a listener to redirect the request to. * * @param targetListener the targetListener value to set * @return the ApplicationGatewayRedirectConfigurationInner object itself. */
public ApplicationGatewayRedirectConfigurationInner withTargetListener(SubResource targetListener) { this.targetListener = targetListener; return this; }
Get url to redirect the request to.
Returns:the targetUrl value
/** * Get url to redirect the request to. * * @return the targetUrl value */
public String targetUrl() { return this.targetUrl; }
Set url to redirect the request to.
Params:
  • targetUrl – the targetUrl value to set
Returns:the ApplicationGatewayRedirectConfigurationInner object itself.
/** * Set url to redirect the request to. * * @param targetUrl the targetUrl value to set * @return the ApplicationGatewayRedirectConfigurationInner object itself. */
public ApplicationGatewayRedirectConfigurationInner withTargetUrl(String targetUrl) { this.targetUrl = targetUrl; return this; }
Get include path in the redirected url.
Returns:the includePath value
/** * Get include path in the redirected url. * * @return the includePath value */
public Boolean includePath() { return this.includePath; }
Set include path in the redirected url.
Params:
  • includePath – the includePath value to set
Returns:the ApplicationGatewayRedirectConfigurationInner object itself.
/** * Set include path in the redirected url. * * @param includePath the includePath value to set * @return the ApplicationGatewayRedirectConfigurationInner object itself. */
public ApplicationGatewayRedirectConfigurationInner withIncludePath(Boolean includePath) { this.includePath = includePath; return this; }
Get include query string in the redirected url.
Returns:the includeQueryString value
/** * Get include query string in the redirected url. * * @return the includeQueryString value */
public Boolean includeQueryString() { return this.includeQueryString; }
Set include query string in the redirected url.
Params:
  • includeQueryString – the includeQueryString value to set
Returns:the ApplicationGatewayRedirectConfigurationInner object itself.
/** * Set include query string in the redirected url. * * @param includeQueryString the includeQueryString value to set * @return the ApplicationGatewayRedirectConfigurationInner object itself. */
public ApplicationGatewayRedirectConfigurationInner withIncludeQueryString(Boolean includeQueryString) { this.includeQueryString = includeQueryString; return this; }
Get request routing specifying redirect configuration.
Returns:the requestRoutingRules value
/** * Get request routing specifying redirect configuration. * * @return the requestRoutingRules value */
public List<SubResource> requestRoutingRules() { return this.requestRoutingRules; }
Set request routing specifying redirect configuration.
Params:
  • requestRoutingRules – the requestRoutingRules value to set
Returns:the ApplicationGatewayRedirectConfigurationInner object itself.
/** * Set request routing specifying redirect configuration. * * @param requestRoutingRules the requestRoutingRules value to set * @return the ApplicationGatewayRedirectConfigurationInner object itself. */
public ApplicationGatewayRedirectConfigurationInner withRequestRoutingRules(List<SubResource> requestRoutingRules) { this.requestRoutingRules = requestRoutingRules; return this; }
Get url path maps specifying default redirect configuration.
Returns:the urlPathMaps value
/** * Get url path maps specifying default redirect configuration. * * @return the urlPathMaps value */
public List<SubResource> urlPathMaps() { return this.urlPathMaps; }
Set url path maps specifying default redirect configuration.
Params:
  • urlPathMaps – the urlPathMaps value to set
Returns:the ApplicationGatewayRedirectConfigurationInner object itself.
/** * Set url path maps specifying default redirect configuration. * * @param urlPathMaps the urlPathMaps value to set * @return the ApplicationGatewayRedirectConfigurationInner object itself. */
public ApplicationGatewayRedirectConfigurationInner withUrlPathMaps(List<SubResource> urlPathMaps) { this.urlPathMaps = urlPathMaps; return this; }
Get path rules specifying redirect configuration.
Returns:the pathRules value
/** * Get path rules specifying redirect configuration. * * @return the pathRules value */
public List<SubResource> pathRules() { return this.pathRules; }
Set path rules specifying redirect configuration.
Params:
  • pathRules – the pathRules value to set
Returns:the ApplicationGatewayRedirectConfigurationInner object itself.
/** * Set path rules specifying redirect configuration. * * @param pathRules the pathRules value to set * @return the ApplicationGatewayRedirectConfigurationInner object itself. */
public ApplicationGatewayRedirectConfigurationInner withPathRules(List<SubResource> pathRules) { this.pathRules = pathRules; return this; }
Get name of the redirect configuration that is unique within an Application Gateway.
Returns:the name value
/** * Get name of the redirect configuration that is unique within an Application Gateway. * * @return the name value */
public String name() { return this.name; }
Set name of the redirect configuration that is unique within an Application Gateway.
Params:
  • name – the name value to set
Returns:the ApplicationGatewayRedirectConfigurationInner object itself.
/** * Set name of the redirect configuration that is unique within an Application Gateway. * * @param name the name value to set * @return the ApplicationGatewayRedirectConfigurationInner object itself. */
public ApplicationGatewayRedirectConfigurationInner withName(String name) { this.name = name; return this; }
Get a unique read-only string that changes whenever the resource is updated.
Returns:the etag value
/** * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */
public String etag() { return this.etag; }
Get type of the resource.
Returns:the type value
/** * Get type of the resource. * * @return the type value */
public String type() { return this.type; } }