Class UrlSigningAction

java.lang.Object
com.azure.resourcemanager.cdn.models.DeliveryRuleAction
com.azure.resourcemanager.cdn.models.UrlSigningAction
All Implemented Interfaces:
com.azure.json.JsonSerializable<DeliveryRuleAction>

public final class UrlSigningAction extends DeliveryRuleAction
Defines the url signing action for the delivery rule.
  • Constructor Details

    • UrlSigningAction

      public UrlSigningAction()
      Creates an instance of UrlSigningAction class.
  • Method Details

    • name

      public DeliveryRuleActionValue name()
      Get the name property: The name of the action for the delivery rule.
      Overrides:
      name in class DeliveryRuleAction
      Returns:
      the name value.
    • parameters

      public UrlSigningActionParameters parameters()
      Get the parameters property: Defines the parameters for the action.
      Returns:
      the parameters value.
    • withParameters

      public UrlSigningAction withParameters(UrlSigningActionParameters parameters)
      Set the parameters property: Defines the parameters for the action.
      Parameters:
      parameters - the parameters value to set.
      Returns:
      the UrlSigningAction object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class DeliveryRuleAction
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<DeliveryRuleAction>
      Overrides:
      toJson in class DeliveryRuleAction
      Throws:
      IOException
    • fromJson

      public static UrlSigningAction fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of UrlSigningAction from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of UrlSigningAction 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 UrlSigningAction.