Class ApplicationProfile
java.lang.Object
com.azure.resourcemanager.compute.models.ApplicationProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ApplicationProfile>
public final class ApplicationProfile
extends Object
implements com.azure.json.JsonSerializable<ApplicationProfile>
Contains the list of gallery applications that should be made available to the VM/VMSS.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ApplicationProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApplicationProfile from the JsonReader.Get the galleryApplications property: Specifies the gallery applications that should be made available to the VM/VMSS.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withGalleryApplications(List<VMGalleryApplication> galleryApplications) Set the galleryApplications property: Specifies the gallery applications that should be made available to the VM/VMSS.Methods inherited from class 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
-
ApplicationProfile
public ApplicationProfile()Creates an instance of ApplicationProfile class.
-
-
Method Details
-
galleryApplications
Get the galleryApplications property: Specifies the gallery applications that should be made available to the VM/VMSS.- Returns:
- the galleryApplications value.
-
withGalleryApplications
Set the galleryApplications property: Specifies the gallery applications that should be made available to the VM/VMSS.- Parameters:
galleryApplications- the galleryApplications value to set.- Returns:
- the ApplicationProfile 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<ApplicationProfile>- Throws:
IOException
-
fromJson
Reads an instance of ApplicationProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ApplicationProfile 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 ApplicationProfile.
-