Class DeliveryRuleResponseHeaderAction

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

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

    • DeliveryRuleResponseHeaderAction

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