Class AfdPurgeParameters

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

public final class AfdPurgeParameters extends Object implements com.azure.json.JsonSerializable<AfdPurgeParameters>
Parameters required for content purge.
  • Constructor Details

    • AfdPurgeParameters

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

    • contentPaths

      public List<String> contentPaths()
      Get the contentPaths property: The path to the content to be purged. Can describe a file path or a wild card directory.
      Returns:
      the contentPaths value.
    • withContentPaths

      public AfdPurgeParameters withContentPaths(List<String> contentPaths)
      Set the contentPaths property: The path to the content to be purged. Can describe a file path or a wild card directory.
      Parameters:
      contentPaths - the contentPaths value to set.
      Returns:
      the AfdPurgeParameters object itself.
    • domains

      public List<String> domains()
      Get the domains property: List of domains.
      Returns:
      the domains value.
    • withDomains

      public AfdPurgeParameters withDomains(List<String> domains)
      Set the domains property: List of domains.
      Parameters:
      domains - the domains value to set.
      Returns:
      the AfdPurgeParameters 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<AfdPurgeParameters>
      Throws:
      IOException
    • fromJson

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