UrlRewriteActionParameters Class

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

public class UrlRewriteActionParameters

Defines the parameters for the url rewrite action.

Constructor Summary

Constructor Description
UrlRewriteActionParameters()

Creates an instance of UrlRewriteActionParameters class.

Method Summary

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

Get define the relative URL to which the above requests will be rewritten by.

java.lang.String odatatype()

Get the odatatype value.

java.lang.Boolean preserveUnmatchedPath()

Get whether to preserve unmatched path.

java.lang.String sourcePattern()

Get define a request URI pattern that identifies the type of requests that may be rewritten.

UrlRewriteActionParameters withDestination(String destination)

Set define the relative URL to which the above requests will be rewritten by.

UrlRewriteActionParameters withOdatatype(String odatatype)

Set the odatatype value.

UrlRewriteActionParameters withPreserveUnmatchedPath(Boolean preserveUnmatchedPath)

Set whether to preserve unmatched path.

UrlRewriteActionParameters withSourcePattern(String sourcePattern)

Set define a request URI pattern that identifies the type of requests that may be rewritten.

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

UrlRewriteActionParameters

public UrlRewriteActionParameters()

Creates an instance of UrlRewriteActionParameters class.

Method Details

destination

public String destination()

Get define the relative URL to which the above requests will be rewritten by.

Returns:

the destination value

odatatype

public String odatatype()

Get the odatatype value.

Returns:

the odatatype value

preserveUnmatchedPath

public Boolean preserveUnmatchedPath()

Get whether to preserve unmatched path. Default value is true.

Returns:

the preserveUnmatchedPath value

sourcePattern

public String sourcePattern()

Get define a request URI pattern that identifies the type of requests that may be rewritten. If value is blank, all strings are matched.

Returns:

the sourcePattern value

withDestination

public UrlRewriteActionParameters withDestination(String destination)

Set define the relative URL to which the above requests will be rewritten by.

Parameters:

destination - the destination value to set

Returns:

the UrlRewriteActionParameters object itself.

withOdatatype

public UrlRewriteActionParameters withOdatatype(String odatatype)

Set the odatatype value.

Parameters:

odatatype - the odatatype value to set

Returns:

the UrlRewriteActionParameters object itself.

withPreserveUnmatchedPath

public UrlRewriteActionParameters withPreserveUnmatchedPath(Boolean preserveUnmatchedPath)

Set whether to preserve unmatched path. Default value is true.

Parameters:

preserveUnmatchedPath - the preserveUnmatchedPath value to set

Returns:

the UrlRewriteActionParameters object itself.

withSourcePattern

public UrlRewriteActionParameters withSourcePattern(String sourcePattern)

Set define a request URI pattern that identifies the type of requests that may be rewritten. If value is blank, all strings are matched.

Parameters:

sourcePattern - the sourcePattern value to set

Returns:

the UrlRewriteActionParameters object itself.

Applies to