Class OriginGroupOverrideActionParameters

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

public final class OriginGroupOverrideActionParameters extends Object implements com.azure.json.JsonSerializable<OriginGroupOverrideActionParameters>
Defines the parameters for the origin group override action.
  • Constructor Details

    • OriginGroupOverrideActionParameters

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

    • typeName

      public String typeName()
      Get the typeName property: The typeName property.
      Returns:
      the typeName value.
    • withTypeName

      public OriginGroupOverrideActionParameters withTypeName(String typeName)
      Set the typeName property: The typeName property.
      Parameters:
      typeName - the typeName value to set.
      Returns:
      the OriginGroupOverrideActionParameters object itself.
    • originGroup

      public ResourceReference originGroup()
      Get the originGroup property: defines the OriginGroup that would override the DefaultOriginGroup.
      Returns:
      the originGroup value.
    • withOriginGroup

      public OriginGroupOverrideActionParameters withOriginGroup(ResourceReference originGroup)
      Set the originGroup property: defines the OriginGroup that would override the DefaultOriginGroup.
      Parameters:
      originGroup - the originGroup value to set.
      Returns:
      the OriginGroupOverrideActionParameters object itself.
    • validate

      public void validate()
      Validates the instance.
      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<OriginGroupOverrideActionParameters>
      Throws:
      IOException
    • fromJson

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