Class UrlRewriteActionParameters
java.lang.Object
com.azure.resourcemanager.cdn.models.UrlRewriteActionParameters
Defines the parameters for the url rewrite action.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of UrlRewriteActionParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the destination property: Define the relative URL to which the above requests will be rewritten by.Get the preserveUnmatchedPath property: Whether to preserve unmatched path.Get the sourcePattern property: define a request URI pattern that identifies the type of requests that may be rewritten.typeName()Get the typeName property: The typeName property.voidvalidate()Validates the instance.withDestination(String destination) Set the destination property: Define the relative URL to which the above requests will be rewritten by.withPreserveUnmatchedPath(Boolean preserveUnmatchedPath) Set the preserveUnmatchedPath property: Whether to preserve unmatched path.withSourcePattern(String sourcePattern) Set the sourcePattern property: define a request URI pattern that identifies the type of requests that may be rewritten.withTypeName(String typeName) Set the typeName property: The typeName property.
-
Constructor Details
-
UrlRewriteActionParameters
public UrlRewriteActionParameters()Creates an instance of UrlRewriteActionParameters class.
-
-
Method Details
-
typeName
Get the typeName property: The typeName property.- Returns:
- the typeName value.
-
withTypeName
Set the typeName property: The typeName property.- Parameters:
typeName- the typeName value to set.- Returns:
- the UrlRewriteActionParameters object itself.
-
sourcePattern
Get the sourcePattern property: 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 the sourcePattern property: 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 the destination property: Define the relative URL to which the above requests will be rewritten by.- Returns:
- the destination value.
-
withDestination
Set the destination property: 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 the preserveUnmatchedPath property: Whether to preserve unmatched path. Default value is true.- Returns:
- the preserveUnmatchedPath value.
-
withPreserveUnmatchedPath
Set the preserveUnmatchedPath property: Whether to preserve unmatched path. Default value is true.- Parameters:
preserveUnmatchedPath- the preserveUnmatchedPath value to set.- Returns:
- the UrlRewriteActionParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-