Class UserSourceInfo
java.lang.Object
com.azure.resourcemanager.appplatform.models.UserSourceInfo
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UserSourceInfo>
- Direct Known Subclasses:
BuildResultUserSourceInfo,CustomContainerUserSourceInfo,UploadedUserSourceInfo
public class UserSourceInfo
extends Object
implements com.azure.json.JsonSerializable<UserSourceInfo>
Source information for a deployment.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UserSourceInfofromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UserSourceInfo from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Type of the source uploaded.voidvalidate()Validates the instance.version()Get the version property: Version of the source.withVersion(String version) Set the version property: Version of the source.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
-
UserSourceInfo
public UserSourceInfo()Creates an instance of UserSourceInfo class.
-
-
Method Details
-
type
Get the type property: Type of the source uploaded.- Returns:
- the type value.
-
version
Get the version property: Version of the source.- Returns:
- the version value.
-
withVersion
Set the version property: Version of the source.- Parameters:
version- the version value to set.- Returns:
- the UserSourceInfo 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<UserSourceInfo>- Throws:
IOException
-
fromJson
Reads an instance of UserSourceInfo from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of UserSourceInfo 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 UserSourceInfo.
-