Class OriginGroupOverrideAction

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

public final class OriginGroupOverrideAction extends DeliveryRuleAction
Defines the origin group override action for the delivery rule.
  • Constructor Details

    • OriginGroupOverrideAction

      public OriginGroupOverrideAction()
      Creates an instance of OriginGroupOverrideAction 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

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