Class UrlRedirectActionParameters
java.lang.Object
com.microsoft.azure.management.cdn.UrlRedirectActionParameters
Defines the parameters for the url redirect action.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of UrlRedirectActionParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet fragment to add to the redirect URL.Get host to redirect.Get the full path to redirect.Get the set of query strings to be placed in the redirect URL.Get protocol to use for the redirect.Get the odatatype value.Get the redirect type the rule will use when redirecting traffic.withCustomFragment
(String customFragment) Set fragment to add to the redirect URL.withCustomHostname
(String customHostname) Set host to redirect.withCustomPath
(String customPath) Set the full path to redirect.withCustomQueryString
(String customQueryString) Set the set of query strings to be placed in the redirect URL.withDestinationProtocol
(DestinationProtocol destinationProtocol) Set protocol to use for the redirect.withOdatatype
(String odatatype) Set the odatatype value.withRedirectType
(RedirectType redirectType) Set the redirect type the rule will use when redirecting traffic.
-
Constructor Details
-
UrlRedirectActionParameters
public UrlRedirectActionParameters()Creates an instance of UrlRedirectActionParameters class.
-
-
Method Details
-
odatatype
Get the odatatype value.- Returns:
- the odatatype value
-
withOdatatype
Set the odatatype value.- Parameters:
odatatype
- the odatatype value to set- Returns:
- the UrlRedirectActionParameters object itself.
-
redirectType
Get the redirect type the rule will use when redirecting traffic. Possible values include: 'Moved', 'Found', 'TemporaryRedirect', 'PermanentRedirect'.- Returns:
- the redirectType value
-
withRedirectType
Set the redirect type the rule will use when redirecting traffic. Possible values include: 'Moved', 'Found', 'TemporaryRedirect', 'PermanentRedirect'.- Parameters:
redirectType
- the redirectType value to set- Returns:
- the UrlRedirectActionParameters object itself.
-
destinationProtocol
Get protocol to use for the redirect. The default value is MatchRequest. Possible values include: 'MatchRequest', 'Http', 'Https'.- Returns:
- the destinationProtocol value
-
withDestinationProtocol
Set protocol to use for the redirect. The default value is MatchRequest. Possible values include: 'MatchRequest', 'Http', 'Https'.- Parameters:
destinationProtocol
- the destinationProtocol value to set- Returns:
- the UrlRedirectActionParameters object itself.
-
customPath
Get 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 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 UrlRedirectActionParameters object itself.
-
customHostname
Get host to redirect. Leave empty to use the incoming host as the destination host.- Returns:
- the customHostname value
-
withCustomHostname
Set host to redirect. Leave empty to use the incoming host as the destination host.- Parameters:
customHostname
- the customHostname value to set- Returns:
- the UrlRedirectActionParameters object itself.
-
customQueryString
Get 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. ? and & will be added automatically so do not include them.- Returns:
- the customQueryString value
-
withCustomQueryString
Set 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. ? and & will be added automatically so do not include them.- Parameters:
customQueryString
- the customQueryString value to set- Returns:
- the UrlRedirectActionParameters object itself.
-
customFragment
Get 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 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 UrlRedirectActionParameters object itself.
-