Class UrlRewriteActionParameters
- java.lang.Object
-
- com.azure.resourcemanager.cdn.models.UrlRewriteActionParameters
-
public final class UrlRewriteActionParameters extends Object
Defines the parameters for the url rewrite action.
-
-
Constructor Summary
Constructors Constructor Description UrlRewriteActionParameters()Creates an instance of UrlRewriteActionParameters class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdestination()Get the destination property: Define the relative URL to which the above requests will be rewritten by.StringodataType()Get the odataType property: The @odata.type property.BooleanpreserveUnmatchedPath()Get the preserveUnmatchedPath property: Whether to preserve unmatched path.StringsourcePattern()Get the sourcePattern property: define a request URI pattern that identifies the type of requests that may be rewritten.voidvalidate()Validates the instance.UrlRewriteActionParameterswithDestination(String destination)Set the destination property: Define the relative URL to which the above requests will be rewritten by.UrlRewriteActionParameterswithOdataType(String odataType)Set the odataType property: The @odata.type property.UrlRewriteActionParameterswithPreserveUnmatchedPath(Boolean preserveUnmatchedPath)Set the preserveUnmatchedPath property: Whether to preserve unmatched path.UrlRewriteActionParameterswithSourcePattern(String sourcePattern)Set the sourcePattern property: define a request URI pattern that identifies the type of requests that may be rewritten.
-
-
-
Method Detail
-
odataType
public String odataType()
Get the odataType property: The @odata.type property.- Returns:
- the odataType value.
-
withOdataType
public UrlRewriteActionParameters withOdataType(String odataType)
Set the odataType property: The @odata.type property.- Parameters:
odataType- the odataType value to set.- Returns:
- the UrlRewriteActionParameters object itself.
-
sourcePattern
public String 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
public UrlRewriteActionParameters withSourcePattern(String sourcePattern)
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
public String destination()
Get the destination property: Define the relative URL to which the above requests will be rewritten by.- Returns:
- the destination value.
-
withDestination
public UrlRewriteActionParameters withDestination(String destination)
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
public Boolean preserveUnmatchedPath()
Get the preserveUnmatchedPath property: Whether to preserve unmatched path. Default value is true.- Returns:
- the preserveUnmatchedPath value.
-
withPreserveUnmatchedPath
public UrlRewriteActionParameters withPreserveUnmatchedPath(Boolean preserveUnmatchedPath)
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.
-
-