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 Details

    • ApplicationProfile

      public ApplicationProfile()
      Creates an instance of ApplicationProfile class.
  • Method Details

    • galleryApplications

      public List<VMGalleryApplication> galleryApplications()
      Get the galleryApplications property: Specifies the gallery applications that should be made available to the VM/VMSS.
      Returns:
      the galleryApplications value.
    • withGalleryApplications

      public ApplicationProfile withGalleryApplications(List<VMGalleryApplication> galleryApplications)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ApplicationProfile>
      Throws:
      IOException
    • fromJson

      public static ApplicationProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.