Class ResourceUploadDefinition
java.lang.Object
com.azure.resourcemanager.appplatform.models.ResourceUploadDefinition
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceUploadDefinition>
public final class ResourceUploadDefinition
extends Object
implements com.azure.json.JsonSerializable<ResourceUploadDefinition>
Resource upload definition payload.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ResourceUploadDefinition class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceUploadDefinitionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ResourceUploadDefinition from the JsonReader.Get the relativePath property: Source relative path.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the uploadUrl property: Upload URL.voidvalidate()Validates the instance.withRelativePath(String relativePath) Set the relativePath property: Source relative path.withUploadUrl(String uploadUrl) Set the uploadUrl property: Upload URL.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
-
ResourceUploadDefinition
public ResourceUploadDefinition()Creates an instance of ResourceUploadDefinition class.
-
-
Method Details
-
relativePath
Get the relativePath property: Source relative path.- Returns:
- the relativePath value.
-
withRelativePath
Set the relativePath property: Source relative path.- Parameters:
relativePath- the relativePath value to set.- Returns:
- the ResourceUploadDefinition object itself.
-
uploadUrl
Get the uploadUrl property: Upload URL.- Returns:
- the uploadUrl value.
-
withUploadUrl
Set the uploadUrl property: Upload URL.- Parameters:
uploadUrl- the uploadUrl value to set.- Returns:
- the ResourceUploadDefinition 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<ResourceUploadDefinition>- Throws:
IOException
-
fromJson
public static ResourceUploadDefinition fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ResourceUploadDefinition from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ResourceUploadDefinition if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ResourceUploadDefinition.
-