Class UploadedUserSourceInfo
java.lang.Object
com.azure.resourcemanager.appplatform.models.UserSourceInfo
com.azure.resourcemanager.appplatform.models.UploadedUserSourceInfo
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UserSourceInfo>
- Direct Known Subclasses:
JarUploadedUserSourceInfo,NetCoreZipUploadedUserSourceInfo,SourceUploadedUserSourceInfo,WarUploadedUserSourceInfo
Source with uploaded location.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of UploadedUserSourceInfo class. -
Method Summary
Modifier and TypeMethodDescriptionstatic UploadedUserSourceInfofromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UploadedUserSourceInfo from the JsonReader.Get the relativePath property: Relative path of the storage which stores the source.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Type of the source uploaded.voidvalidate()Validates the instance.withRelativePath(String relativePath) Set the relativePath property: Relative path of the storage which stores the source.withVersion(String version) Set the version property: Version of the source.Methods inherited from class com.azure.resourcemanager.appplatform.models.UserSourceInfo
versionMethods 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
-
UploadedUserSourceInfo
public UploadedUserSourceInfo()Creates an instance of UploadedUserSourceInfo class.
-
-
Method Details
-
type
Get the type property: Type of the source uploaded.- Overrides:
typein classUserSourceInfo- Returns:
- the type value.
-
relativePath
Get the relativePath property: Relative path of the storage which stores the source.- Returns:
- the relativePath value.
-
withRelativePath
Set the relativePath property: Relative path of the storage which stores the source.- Parameters:
relativePath- the relativePath value to set.- Returns:
- the UploadedUserSourceInfo object itself.
-
withVersion
Set the version property: Version of the source.- Overrides:
withVersionin classUserSourceInfo- Parameters:
version- the version value to set.- Returns:
- the UserSourceInfo object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classUserSourceInfo- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<UserSourceInfo>- Overrides:
toJsonin classUserSourceInfo- Throws:
IOException
-
fromJson
public static UploadedUserSourceInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of UploadedUserSourceInfo from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of UploadedUserSourceInfo 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 UploadedUserSourceInfo.
-