Class RedirectConfiguration
java.lang.Object
com.azure.resourcemanager.frontdoor.models.RouteConfiguration
com.azure.resourcemanager.frontdoor.models.RedirectConfiguration
Describes Redirect Route.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the customFragment property: Fragment to add to the redirect URL.Get the customHost property: Host to redirect.Get the customPath property: The full path to redirect.Get the customQueryString property: The set of query strings to be placed in the redirect URL.Get the redirectProtocol property: The protocol of the destination to where the traffic is redirected.Get the redirectType property: The redirect type the rule will use when redirecting traffic.void
validate()
Validates the instance.withCustomFragment
(String customFragment) Set the customFragment property: Fragment to add to the redirect URL.withCustomHost
(String customHost) Set the customHost property: Host to redirect.withCustomPath
(String customPath) Set the customPath property: The full path to redirect.withCustomQueryString
(String customQueryString) Set the customQueryString property: The set of query strings to be placed in the redirect URL.withRedirectProtocol
(FrontDoorRedirectProtocol redirectProtocol) Set the redirectProtocol property: The protocol of the destination to where the traffic is redirected.withRedirectType
(FrontDoorRedirectType redirectType) Set the redirectType property: The redirect type the rule will use when redirecting traffic.
-
Constructor Details
-
RedirectConfiguration
public RedirectConfiguration()Creates an instance of RedirectConfiguration class.
-
-
Method Details
-
redirectType
Get the redirectType property: The redirect type the rule will use when redirecting traffic.- Returns:
- the redirectType value.
-
withRedirectType
Set the redirectType property: The redirect type the rule will use when redirecting traffic.- Parameters:
redirectType
- the redirectType value to set.- Returns:
- the RedirectConfiguration object itself.
-
redirectProtocol
Get the redirectProtocol property: The protocol of the destination to where the traffic is redirected.- Returns:
- the redirectProtocol value.
-
withRedirectProtocol
Set the redirectProtocol property: The protocol of the destination to where the traffic is redirected.- Parameters:
redirectProtocol
- the redirectProtocol value to set.- Returns:
- the RedirectConfiguration object itself.
-
customHost
Get the customHost property: Host to redirect. Leave empty to use the incoming host as the destination host.- Returns:
- the customHost value.
-
withCustomHost
Set the customHost property: Host to redirect. Leave empty to use the incoming host as the destination host.- Parameters:
customHost
- the customHost value to set.- Returns:
- the RedirectConfiguration object itself.
-
customPath
Get the customPath property: The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path.- Returns:
- the customPath value.
-
withCustomPath
Set the customPath property: The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path.- Parameters:
customPath
- the customPath value to set.- Returns:
- the RedirectConfiguration object itself.
-
customFragment
Get the customFragment property: Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #.- Returns:
- the customFragment value.
-
withCustomFragment
Set the customFragment property: Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #.- Parameters:
customFragment
- the customFragment value to set.- Returns:
- the RedirectConfiguration object itself.
-
customQueryString
Get the customQueryString property: The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in <key>=<value> format. The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &.- Returns:
- the customQueryString value.
-
withCustomQueryString
Set the customQueryString property: The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in <key>=<value> format. The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &.- Parameters:
customQueryString
- the customQueryString value to set.- Returns:
- the RedirectConfiguration object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classRouteConfiguration
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-