Class ApplicationGatewayRedirectConfigurationInner
- java.lang.Object
-
- com.azure.core.management.SubResource
-
- com.azure.resourcemanager.network.fluent.models.ApplicationGatewayRedirectConfigurationInner
-
public final class ApplicationGatewayRedirectConfigurationInner extends com.azure.core.management.SubResourceRedirect configuration of an application gateway.
-
-
Constructor Summary
Constructors Constructor Description ApplicationGatewayRedirectConfigurationInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringetag()Get the etag property: A unique read-only string that changes whenever the resource is updated.BooleanincludePath()Get the includePath property: Include path in the redirected url.BooleanincludeQueryString()Get the includeQueryString property: Include query string in the redirected url.Stringname()Get the name property: Name of the redirect configuration that is unique within an Application Gateway.List<com.azure.core.management.SubResource>pathRules()Get the pathRules property: Path rules specifying redirect configuration.ApplicationGatewayRedirectTyperedirectType()Get the redirectType property: HTTP redirection type.List<com.azure.core.management.SubResource>requestRoutingRules()Get the requestRoutingRules property: Request routing specifying redirect configuration.com.azure.core.management.SubResourcetargetListener()Get the targetListener property: Reference to a listener to redirect the request to.StringtargetUrl()Get the targetUrl property: Url to redirect the request to.Stringtype()Get the type property: Type of the resource.List<com.azure.core.management.SubResource>urlPathMaps()Get the urlPathMaps property: Url path maps specifying default redirect configuration.voidvalidate()Validates the instance.ApplicationGatewayRedirectConfigurationInnerwithId(String id)ApplicationGatewayRedirectConfigurationInnerwithIncludePath(Boolean includePath)Set the includePath property: Include path in the redirected url.ApplicationGatewayRedirectConfigurationInnerwithIncludeQueryString(Boolean includeQueryString)Set the includeQueryString property: Include query string in the redirected url.ApplicationGatewayRedirectConfigurationInnerwithName(String name)Set the name property: Name of the redirect configuration that is unique within an Application Gateway.ApplicationGatewayRedirectConfigurationInnerwithPathRules(List<com.azure.core.management.SubResource> pathRules)Set the pathRules property: Path rules specifying redirect configuration.ApplicationGatewayRedirectConfigurationInnerwithRedirectType(ApplicationGatewayRedirectType redirectType)Set the redirectType property: HTTP redirection type.ApplicationGatewayRedirectConfigurationInnerwithRequestRoutingRules(List<com.azure.core.management.SubResource> requestRoutingRules)Set the requestRoutingRules property: Request routing specifying redirect configuration.ApplicationGatewayRedirectConfigurationInnerwithTargetListener(com.azure.core.management.SubResource targetListener)Set the targetListener property: Reference to a listener to redirect the request to.ApplicationGatewayRedirectConfigurationInnerwithTargetUrl(String targetUrl)Set the targetUrl property: Url to redirect the request to.ApplicationGatewayRedirectConfigurationInnerwithUrlPathMaps(List<com.azure.core.management.SubResource> urlPathMaps)Set the urlPathMaps property: Url path maps specifying default redirect configuration.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Name of the redirect configuration that is unique within an Application Gateway.- Returns:
- the name value.
-
withName
public ApplicationGatewayRedirectConfigurationInner withName(String name)
Set the name property: Name of the redirect configuration that is unique within an Application Gateway.- Parameters:
name- the name value to set.- Returns:
- the ApplicationGatewayRedirectConfigurationInner object itself.
-
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
type
public String type()
Get the type property: Type of the resource.- Returns:
- the type value.
-
withId
public ApplicationGatewayRedirectConfigurationInner withId(String id)
- Overrides:
withIdin classcom.azure.core.management.SubResource
-
redirectType
public ApplicationGatewayRedirectType redirectType()
Get the redirectType property: HTTP redirection type.- Returns:
- the redirectType value.
-
withRedirectType
public ApplicationGatewayRedirectConfigurationInner withRedirectType(ApplicationGatewayRedirectType redirectType)
Set the redirectType property: HTTP redirection type.- Parameters:
redirectType- the redirectType value to set.- Returns:
- the ApplicationGatewayRedirectConfigurationInner object itself.
-
targetListener
public com.azure.core.management.SubResource targetListener()
Get the targetListener property: Reference to a listener to redirect the request to.- Returns:
- the targetListener value.
-
withTargetListener
public ApplicationGatewayRedirectConfigurationInner withTargetListener(com.azure.core.management.SubResource targetListener)
Set the targetListener property: Reference to a listener to redirect the request to.- Parameters:
targetListener- the targetListener value to set.- Returns:
- the ApplicationGatewayRedirectConfigurationInner object itself.
-
targetUrl
public String targetUrl()
Get the targetUrl property: Url to redirect the request to.- Returns:
- the targetUrl value.
-
withTargetUrl
public ApplicationGatewayRedirectConfigurationInner withTargetUrl(String targetUrl)
Set the targetUrl property: Url to redirect the request to.- Parameters:
targetUrl- the targetUrl value to set.- Returns:
- the ApplicationGatewayRedirectConfigurationInner object itself.
-
includePath
public Boolean includePath()
Get the includePath property: Include path in the redirected url.- Returns:
- the includePath value.
-
withIncludePath
public ApplicationGatewayRedirectConfigurationInner withIncludePath(Boolean includePath)
Set the includePath property: Include path in the redirected url.- Parameters:
includePath- the includePath value to set.- Returns:
- the ApplicationGatewayRedirectConfigurationInner object itself.
-
includeQueryString
public Boolean includeQueryString()
Get the includeQueryString property: Include query string in the redirected url.- Returns:
- the includeQueryString value.
-
withIncludeQueryString
public ApplicationGatewayRedirectConfigurationInner withIncludeQueryString(Boolean includeQueryString)
Set the includeQueryString property: Include query string in the redirected url.- Parameters:
includeQueryString- the includeQueryString value to set.- Returns:
- the ApplicationGatewayRedirectConfigurationInner object itself.
-
requestRoutingRules
public List<com.azure.core.management.SubResource> requestRoutingRules()
Get the requestRoutingRules property: Request routing specifying redirect configuration.- Returns:
- the requestRoutingRules value.
-
withRequestRoutingRules
public ApplicationGatewayRedirectConfigurationInner withRequestRoutingRules(List<com.azure.core.management.SubResource> requestRoutingRules)
Set the requestRoutingRules property: Request routing specifying redirect configuration.- Parameters:
requestRoutingRules- the requestRoutingRules value to set.- Returns:
- the ApplicationGatewayRedirectConfigurationInner object itself.
-
urlPathMaps
public List<com.azure.core.management.SubResource> urlPathMaps()
Get the urlPathMaps property: Url path maps specifying default redirect configuration.- Returns:
- the urlPathMaps value.
-
withUrlPathMaps
public ApplicationGatewayRedirectConfigurationInner withUrlPathMaps(List<com.azure.core.management.SubResource> urlPathMaps)
Set the urlPathMaps property: Url path maps specifying default redirect configuration.- Parameters:
urlPathMaps- the urlPathMaps value to set.- Returns:
- the ApplicationGatewayRedirectConfigurationInner object itself.
-
pathRules
public List<com.azure.core.management.SubResource> pathRules()
Get the pathRules property: Path rules specifying redirect configuration.- Returns:
- the pathRules value.
-
withPathRules
public ApplicationGatewayRedirectConfigurationInner withPathRules(List<com.azure.core.management.SubResource> pathRules)
Set the pathRules property: Path rules specifying redirect configuration.- Parameters:
pathRules- the pathRules value to set.- Returns:
- the ApplicationGatewayRedirectConfigurationInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-