UrlRedirectActionParameters Class

  • java.lang.Object
    • com.microsoft.azure.management.cdn.UrlRedirectActionParameters

public class UrlRedirectActionParameters

Defines the parameters for the url redirect action.

Constructor Summary

Constructor Description
UrlRedirectActionParameters()

Creates an instance of UrlRedirectActionParameters class.

Method Summary

Modifier and Type Method and Description
java.lang.String customFragment()

Get fragment to add to the redirect URL.

java.lang.String customHostname()

Get host to redirect.

java.lang.String customPath()

Get the full path to redirect.

java.lang.String customQueryString()

Get the set of query strings to be placed in the redirect URL.

DestinationProtocol destinationProtocol()

Get protocol to use for the redirect.

java.lang.String odatatype()

Get the odatatype value.

RedirectType redirectType()

Get the redirect type the rule will use when redirecting traffic.

UrlRedirectActionParameters withCustomFragment(String customFragment)

Set fragment to add to the redirect URL.

UrlRedirectActionParameters withCustomHostname(String customHostname)

Set host to redirect.

UrlRedirectActionParameters withCustomPath(String customPath)

Set the full path to redirect.

UrlRedirectActionParameters withCustomQueryString(String customQueryString)

Set the set of query strings to be placed in the redirect URL.

UrlRedirectActionParameters withDestinationProtocol(DestinationProtocol destinationProtocol)

Set protocol to use for the redirect.

UrlRedirectActionParameters withOdatatype(String odatatype)

Set the odatatype value.

UrlRedirectActionParameters withRedirectType(RedirectType redirectType)

Set the redirect type the rule will use when redirecting traffic.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

UrlRedirectActionParameters

public UrlRedirectActionParameters()

Creates an instance of UrlRedirectActionParameters class.

Method Details

customFragment

public String 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

customHostname

public String customHostname()

Get host to redirect. Leave empty to use the incoming host as the destination host.

Returns:

the customHostname value

customPath

public String 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

customQueryString

public String 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 = format. ? and & will be added automatically so do not include them.

Returns:

the customQueryString value

destinationProtocol

public DestinationProtocol destinationProtocol()

Get protocol to use for the redirect. The default value is MatchRequest. Possible values include: 'MatchRequest', 'Http', 'Https'.

Returns:

the destinationProtocol value

odatatype

public String odatatype()

Get the odatatype value.

Returns:

the odatatype value

redirectType

public RedirectType redirectType()

Get the redirect type the rule will use when redirecting traffic. Possible values include: 'Moved', 'Found', 'TemporaryRedirect', 'PermanentRedirect'.

Returns:

the redirectType value

withCustomFragment

public UrlRedirectActionParameters withCustomFragment(String customFragment)

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.

withCustomHostname

public UrlRedirectActionParameters withCustomHostname(String customHostname)

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.

withCustomPath

public UrlRedirectActionParameters withCustomPath(String customPath)

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.

withCustomQueryString

public UrlRedirectActionParameters withCustomQueryString(String customQueryString)

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 = format. ? and & will be added automatically so do not include them.

Parameters:

customQueryString - the customQueryString value to set

Returns:

the UrlRedirectActionParameters object itself.

withDestinationProtocol

public UrlRedirectActionParameters withDestinationProtocol(DestinationProtocol destinationProtocol)

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.

withOdatatype

public UrlRedirectActionParameters withOdatatype(String odatatype)

Set the odatatype value.

Parameters:

odatatype - the odatatype value to set

Returns:

the UrlRedirectActionParameters object itself.

withRedirectType

public UrlRedirectActionParameters withRedirectType(RedirectType redirectType)

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.

Applies to