Class LoadParameters

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

public final class LoadParameters extends Object implements com.azure.json.JsonSerializable<LoadParameters>
Parameters required for content load.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of LoadParameters class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the contentPaths property: The path to the content to be loaded.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of LoadParameters from the JsonReader.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    withContentPaths(List<String> contentPaths)
    Set the contentPaths property: The path to the content to be loaded.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • LoadParameters

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

    • contentPaths

      public List<String> contentPaths()
      Get the contentPaths property: The path to the content to be loaded. Path should be a relative file URL of the origin.
      Returns:
      the contentPaths value.
    • withContentPaths

      public LoadParameters withContentPaths(List<String> contentPaths)
      Set the contentPaths property: The path to the content to be loaded. Path should be a relative file URL of the origin.
      Parameters:
      contentPaths - the contentPaths value to set.
      Returns:
      the LoadParameters 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<LoadParameters>
      Throws:
      IOException
    • fromJson

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