Class ApplicationGatewayRedirectConfigurationInner
java.lang.Object
com.azure.core.management.SubResource
com.azure.resourcemanager.network.fluent.models.ApplicationGatewayRedirectConfigurationInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.SubResource>
public final class ApplicationGatewayRedirectConfigurationInner
extends com.azure.core.management.SubResource
Redirect configuration of an application gateway.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ApplicationGatewayRedirectConfigurationInner class. -
Method Summary
Modifier and TypeMethodDescriptionetag()Get the etag property: A unique read-only string that changes whenever the resource is updated.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApplicationGatewayRedirectConfigurationInner from the JsonReader.Get the includePath property: Include path in the redirected url.Get the includeQueryString property: Include query string in the redirected url.name()Get the name property: Name of the redirect configuration that is unique within an Application Gateway.List<com.azure.core.management.SubResource> Get the pathRules property: Path rules specifying redirect configuration.Get the redirectType property: HTTP redirection type.List<com.azure.core.management.SubResource> Get the requestRoutingRules property: Request routing specifying redirect configuration.com.azure.core.management.SubResourceGet the targetListener property: Reference to a listener to redirect the request to.Get the targetUrl property: Url to redirect the request to.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Type of the resource.List<com.azure.core.management.SubResource> Get the urlPathMaps property: Url path maps specifying default redirect configuration.voidvalidate()Validates the instance.withIncludePath(Boolean includePath) Set the includePath property: Include path in the redirected url.withIncludeQueryString(Boolean includeQueryString) Set the includeQueryString property: Include query string in the redirected url.Set the name property: Name of the redirect configuration that is unique within an Application Gateway.withPathRules(List<com.azure.core.management.SubResource> pathRules) Set the pathRules property: Path rules specifying redirect configuration.withRedirectType(ApplicationGatewayRedirectType redirectType) Set the redirectType property: HTTP redirection type.withRequestRoutingRules(List<com.azure.core.management.SubResource> requestRoutingRules) Set the requestRoutingRules property: Request routing specifying redirect configuration.withTargetListener(com.azure.core.management.SubResource targetListener) Set the targetListener property: Reference to a listener to redirect the request to.withTargetUrl(String targetUrl) Set the targetUrl property: Url to redirect the request to.withUrlPathMaps(List<com.azure.core.management.SubResource> urlPathMaps) Set the urlPathMaps property: Url path maps specifying default redirect configuration.Methods inherited from class com.azure.core.management.SubResource
idMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ApplicationGatewayRedirectConfigurationInner
public ApplicationGatewayRedirectConfigurationInner()Creates an instance of ApplicationGatewayRedirectConfigurationInner class.
-
-
Method Details
-
name
Get the name property: Name of the redirect configuration that is unique within an Application Gateway.- Returns:
- the name value.
-
withName
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
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
type
-
withId
- Overrides:
withIdin classcom.azure.core.management.SubResource
-
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
Get the targetUrl property: Url to redirect the request to.- Returns:
- the targetUrl value.
-
withTargetUrl
Set the targetUrl property: Url to redirect the request to.- Parameters:
targetUrl- the targetUrl value to set.- Returns:
- the ApplicationGatewayRedirectConfigurationInner object itself.
-
includePath
Get the includePath property: Include path in the redirected url.- Returns:
- the includePath value.
-
withIncludePath
Set the includePath property: Include path in the redirected url.- Parameters:
includePath- the includePath value to set.- Returns:
- the ApplicationGatewayRedirectConfigurationInner object itself.
-
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
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
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
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.SubResource>- Overrides:
toJsonin classcom.azure.core.management.SubResource- Throws:
IOException
-
fromJson
public static ApplicationGatewayRedirectConfigurationInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ApplicationGatewayRedirectConfigurationInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ApplicationGatewayRedirectConfigurationInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ApplicationGatewayRedirectConfigurationInner.
-