Class SharedGalleryImageInner

All Implemented Interfaces:
com.azure.json.JsonSerializable<PirResource>

public final class SharedGalleryImageInner extends PirSharedGalleryResource
Specifies information about the gallery image definition that you want to create or update.
  • Constructor Details

    • SharedGalleryImageInner

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

    • location

      public String location()
      Get the location property: Resource location.
      Overrides:
      location in class PirSharedGalleryResource
      Returns:
      the location value.
    • name

      public String name()
      Get the name property: Resource name.
      Overrides:
      name in class PirSharedGalleryResource
      Returns:
      the name value.
    • uniqueId

      public String uniqueId()
      Get the uniqueId property: The unique id of this shared gallery.
      Overrides:
      uniqueId in class PirSharedGalleryResource
      Returns:
      the uniqueId value.
    • withUniqueId

      public SharedGalleryImageInner withUniqueId(String uniqueId)
      Set the uniqueId property: The unique id of this shared gallery.
      Overrides:
      withUniqueId in class PirSharedGalleryResource
      Parameters:
      uniqueId - the uniqueId value to set.
      Returns:
      the SharedGalleryImageInner object itself.
    • osType

      public OperatingSystemTypes osType()
      Get the osType property: This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.**.
      Returns:
      the osType value.
    • withOsType

      public SharedGalleryImageInner withOsType(OperatingSystemTypes osType)
      Set the osType property: This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.**.
      Parameters:
      osType - the osType value to set.
      Returns:
      the SharedGalleryImageInner object itself.
    • osState

      public OperatingSystemStateTypes osState()
      Get the osState property: This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.
      Returns:
      the osState value.
    • withOsState

      public SharedGalleryImageInner withOsState(OperatingSystemStateTypes osState)
      Set the osState property: This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.
      Parameters:
      osState - the osState value to set.
      Returns:
      the SharedGalleryImageInner object itself.
    • endOfLifeDate

      public OffsetDateTime endOfLifeDate()
      Get the endOfLifeDate property: The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable.
      Returns:
      the endOfLifeDate value.
    • withEndOfLifeDate

      public SharedGalleryImageInner withEndOfLifeDate(OffsetDateTime endOfLifeDate)
      Set the endOfLifeDate property: The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable.
      Parameters:
      endOfLifeDate - the endOfLifeDate value to set.
      Returns:
      the SharedGalleryImageInner object itself.
    • identifier

      public GalleryImageIdentifier identifier()
      Get the identifier property: This is the gallery image definition identifier.
      Returns:
      the identifier value.
    • withIdentifier

      public SharedGalleryImageInner withIdentifier(GalleryImageIdentifier identifier)
      Set the identifier property: This is the gallery image definition identifier.
      Parameters:
      identifier - the identifier value to set.
      Returns:
      the SharedGalleryImageInner object itself.
    • recommended

      public RecommendedMachineConfiguration recommended()
      Get the recommended property: The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.
      Returns:
      the recommended value.
    • withRecommended

      public SharedGalleryImageInner withRecommended(RecommendedMachineConfiguration recommended)
      Set the recommended property: The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.
      Parameters:
      recommended - the recommended value to set.
      Returns:
      the SharedGalleryImageInner object itself.
    • disallowed

      public Disallowed disallowed()
      Get the disallowed property: Describes the disallowed disk types.
      Returns:
      the disallowed value.
    • withDisallowed

      public SharedGalleryImageInner withDisallowed(Disallowed disallowed)
      Set the disallowed property: Describes the disallowed disk types.
      Parameters:
      disallowed - the disallowed value to set.
      Returns:
      the SharedGalleryImageInner object itself.
    • hyperVGeneration

      public HyperVGeneration hyperVGeneration()
      Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
      Returns:
      the hyperVGeneration value.
    • withHyperVGeneration

      public SharedGalleryImageInner withHyperVGeneration(HyperVGeneration hyperVGeneration)
      Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
      Parameters:
      hyperVGeneration - the hyperVGeneration value to set.
      Returns:
      the SharedGalleryImageInner object itself.
    • features

      public List<GalleryImageFeature> features()
      Get the features property: A list of gallery image features.
      Returns:
      the features value.
    • withFeatures

      public SharedGalleryImageInner withFeatures(List<GalleryImageFeature> features)
      Set the features property: A list of gallery image features.
      Parameters:
      features - the features value to set.
      Returns:
      the SharedGalleryImageInner object itself.
    • purchasePlan

      public ImagePurchasePlan purchasePlan()
      Get the purchasePlan property: Describes the gallery image definition purchase plan. This is used by marketplace images.
      Returns:
      the purchasePlan value.
    • withPurchasePlan

      public SharedGalleryImageInner withPurchasePlan(ImagePurchasePlan purchasePlan)
      Set the purchasePlan property: Describes the gallery image definition purchase plan. This is used by marketplace images.
      Parameters:
      purchasePlan - the purchasePlan value to set.
      Returns:
      the SharedGalleryImageInner object itself.
    • architecture

      public Architecture architecture()
      Get the architecture property: The architecture of the image. Applicable to OS disks only.
      Returns:
      the architecture value.
    • withArchitecture

      public SharedGalleryImageInner withArchitecture(Architecture architecture)
      Set the architecture property: The architecture of the image. Applicable to OS disks only.
      Parameters:
      architecture - the architecture value to set.
      Returns:
      the SharedGalleryImageInner object itself.
    • privacyStatementUri

      public String privacyStatementUri()
      Get the privacyStatementUri property: Privacy statement uri for the current community gallery image.
      Returns:
      the privacyStatementUri value.
    • withPrivacyStatementUri

      public SharedGalleryImageInner withPrivacyStatementUri(String privacyStatementUri)
      Set the privacyStatementUri property: Privacy statement uri for the current community gallery image.
      Parameters:
      privacyStatementUri - the privacyStatementUri value to set.
      Returns:
      the SharedGalleryImageInner object itself.
    • eula

      public String eula()
      Get the eula property: End-user license agreement for the current community gallery image.
      Returns:
      the eula value.
    • withEula

      public SharedGalleryImageInner withEula(String eula)
      Set the eula property: End-user license agreement for the current community gallery image.
      Parameters:
      eula - the eula value to set.
      Returns:
      the SharedGalleryImageInner object itself.
    • artifactTags

      public Map<String,String> artifactTags()
      Get the artifactTags property: The artifact tags of a shared gallery resource.
      Returns:
      the artifactTags value.
    • withArtifactTags

      public SharedGalleryImageInner withArtifactTags(Map<String,String> artifactTags)
      Set the artifactTags property: The artifact tags of a shared gallery resource.
      Parameters:
      artifactTags - the artifactTags value to set.
      Returns:
      the SharedGalleryImageInner object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class PirSharedGalleryResource
      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<PirResource>
      Overrides:
      toJson in class PirSharedGalleryResource
      Throws:
      IOException
    • fromJson

      public static SharedGalleryImageInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SharedGalleryImageInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SharedGalleryImageInner 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 SharedGalleryImageInner.