public final class UrlRewriteActionParameters extends Object
| Constructor and Description |
|---|
UrlRewriteActionParameters()
Creates an instance of UrlRewriteActionParameters class.
|
| Modifier and Type | Method and Description |
|---|---|
String |
destination()
Get the destination property: Define the relative URL to which the above requests will be rewritten by.
|
String |
odataType()
Get the odataType property: The @odata.type property.
|
Boolean |
preserveUnmatchedPath()
Get the preserveUnmatchedPath property: Whether to preserve unmatched path.
|
String |
sourcePattern()
Get the sourcePattern property: define a request URI pattern that identifies the type of requests that may be
rewritten.
|
void |
validate()
Validates the instance.
|
UrlRewriteActionParameters |
withDestination(String destination)
Set the destination property: Define the relative URL to which the above requests will be rewritten by.
|
UrlRewriteActionParameters |
withOdataType(String odataType)
Set the odataType property: The @odata.type property.
|
UrlRewriteActionParameters |
withPreserveUnmatchedPath(Boolean preserveUnmatchedPath)
Set the preserveUnmatchedPath property: Whether to preserve unmatched path.
|
UrlRewriteActionParameters |
withSourcePattern(String sourcePattern)
Set the sourcePattern property: define a request URI pattern that identifies the type of requests that may be
rewritten.
|
public UrlRewriteActionParameters()
public String odataType()
public UrlRewriteActionParameters withOdataType(String odataType)
odataType - the odataType value to set.public String sourcePattern()
public UrlRewriteActionParameters withSourcePattern(String sourcePattern)
sourcePattern - the sourcePattern value to set.public String destination()
public UrlRewriteActionParameters withDestination(String destination)
destination - the destination value to set.public Boolean preserveUnmatchedPath()
public UrlRewriteActionParameters withPreserveUnmatchedPath(Boolean preserveUnmatchedPath)
preserveUnmatchedPath - the preserveUnmatchedPath value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.