Class UrlRewriteAction
java.lang.Object
com.azure.resourcemanager.cdn.models.DeliveryRuleAction
com.azure.resourcemanager.cdn.models.UrlRewriteAction
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DeliveryRuleAction>
Defines the url rewrite action for the delivery rule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UrlRewriteActionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UrlRewriteAction from the JsonReader.name()Get the name property: The name of the action for the delivery rule.Get the parameters property: Defines the parameters for the action.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withParameters(UrlRewriteActionParameters parameters) Set the parameters property: Defines the parameters for the action.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
UrlRewriteAction
public UrlRewriteAction()Creates an instance of UrlRewriteAction class.
-
-
Method Details
-
name
Get the name property: The name of the action for the delivery rule.- Overrides:
namein classDeliveryRuleAction- Returns:
- the name value.
-
parameters
Get the parameters property: Defines the parameters for the action.- Returns:
- the parameters value.
-
withParameters
Set the parameters property: Defines the parameters for the action.- Parameters:
parameters- the parameters value to set.- Returns:
- the UrlRewriteAction object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classDeliveryRuleAction- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DeliveryRuleAction>- Overrides:
toJsonin classDeliveryRuleAction- Throws:
IOException
-
fromJson
Reads an instance of UrlRewriteAction from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of UrlRewriteAction if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the UrlRewriteAction.
-