Class DeliveryRuleRequestHeaderAction

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

public final class DeliveryRuleRequestHeaderAction extends DeliveryRuleAction
Defines the request header action for the delivery rule.
  • Constructor Details

    • DeliveryRuleRequestHeaderAction

      public DeliveryRuleRequestHeaderAction()
      Creates an instance of DeliveryRuleRequestHeaderAction 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 HeaderActionParameters parameters()
      Get the parameters property: Defines the parameters for the action.
      Returns:
      the parameters value.
    • withParameters

      public DeliveryRuleRequestHeaderAction withParameters(HeaderActionParameters parameters)
      Set the parameters property: Defines the parameters for the action.
      Parameters:
      parameters - the parameters value to set.
      Returns:
      the DeliveryRuleRequestHeaderAction 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 DeliveryRuleRequestHeaderAction fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DeliveryRuleRequestHeaderAction from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of DeliveryRuleRequestHeaderAction 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 DeliveryRuleRequestHeaderAction.