Class UrlRewriteActionParameters
java.lang.Object
com.microsoft.azure.management.cdn.UrlRewriteActionParameters
Defines the parameters for the url rewrite action.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of UrlRewriteActionParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet define the relative URL to which the above requests will be rewritten by.Get the odatatype value.Get whether to preserve unmatched path.Get define a request URI pattern that identifies the type of requests that may be rewritten.withDestination
(String destination) Set define the relative URL to which the above requests will be rewritten by.withOdatatype
(String odatatype) Set the odatatype value.withPreserveUnmatchedPath
(Boolean preserveUnmatchedPath) Set whether to preserve unmatched path.withSourcePattern
(String sourcePattern) Set define a request URI pattern that identifies the type of requests that may be rewritten.
-
Constructor Details
-
UrlRewriteActionParameters
public UrlRewriteActionParameters()Creates an instance of UrlRewriteActionParameters 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 UrlRewriteActionParameters object itself.
-
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
-
withSourcePattern
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.
-
destination
Get define the relative URL to which the above requests will be rewritten by.- Returns:
- the destination value
-
withDestination
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.
-
preserveUnmatchedPath
Get whether to preserve unmatched path. Default value is true.- Returns:
- the preserveUnmatchedPath value
-
withPreserveUnmatchedPath
Set whether to preserve unmatched path. Default value is true.- Parameters:
preserveUnmatchedPath
- the preserveUnmatchedPath value to set- Returns:
- the UrlRewriteActionParameters object itself.
-