Class RouteConfigurationOverrideActionParameters

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

public final class RouteConfigurationOverrideActionParameters extends Object implements com.azure.json.JsonSerializable<RouteConfigurationOverrideActionParameters>
Defines the parameters for the route configuration override action.
  • Constructor Details

    • RouteConfigurationOverrideActionParameters

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

    • typeName

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

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

      public OriginGroupOverride originGroupOverride()
      Get the originGroupOverride property: A reference to the origin group override configuration. Leave empty to use the default origin group on route.
      Returns:
      the originGroupOverride value.
    • withOriginGroupOverride

      public RouteConfigurationOverrideActionParameters withOriginGroupOverride(OriginGroupOverride originGroupOverride)
      Set the originGroupOverride property: A reference to the origin group override configuration. Leave empty to use the default origin group on route.
      Parameters:
      originGroupOverride - the originGroupOverride value to set.
      Returns:
      the RouteConfigurationOverrideActionParameters object itself.
    • cacheConfiguration

      public CacheConfiguration cacheConfiguration()
      Get the cacheConfiguration property: The caching configuration associated with this rule. To disable caching, do not provide a cacheConfiguration object.
      Returns:
      the cacheConfiguration value.
    • withCacheConfiguration

      public RouteConfigurationOverrideActionParameters withCacheConfiguration(CacheConfiguration cacheConfiguration)
      Set the cacheConfiguration property: The caching configuration associated with this rule. To disable caching, do not provide a cacheConfiguration object.
      Parameters:
      cacheConfiguration - the cacheConfiguration value to set.
      Returns:
      the RouteConfigurationOverrideActionParameters 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<RouteConfigurationOverrideActionParameters>
      Throws:
      IOException
    • fromJson

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