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 -
Method Summary
Modifier and TypeMethodDescriptionGet the contentPaths property: The path to the content to be loaded.static LoadParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LoadParameters from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()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, waitMethods 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
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
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<LoadParameters>- Throws:
IOException
-
fromJson
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.
-