Class CloudPcGalleryImage

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.CloudPcGalleryImage
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class CloudPcGalleryImage extends Entity implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • CloudPcGalleryImage

      public CloudPcGalleryImage()
      Instantiates a new CloudPcGalleryImage and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static CloudPcGalleryImage createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a CloudPcGalleryImage
    • getDisplayName

      @Nullable public String getDisplayName()
      Gets the displayName property value. The display name of this gallery image. For example, Windows 11 Enterprise + Microsoft 365 Apps 22H2. Read-only.
      Returns:
      a String
    • getEndDate

      @Nullable public LocalDate getEndDate()
      Gets the endDate property value. The date when the status of the image becomes supportedWithWarning. Users can still provision new Cloud PCs if the current time is later than endDate and earlier than expirationDate. For example, assume the endDate of a gallery image is 2023-9-14 and expirationDate is 2024-3-14, users are able to provision new Cloud PCs if today is 2023-10-01. Read-only.
      Returns:
      a LocalDate
    • getExpirationDate

      @Nullable public LocalDate getExpirationDate()
      Gets the expirationDate property value. The date when the image is no longer available. Users are unable to provision new Cloud PCs if the current time is later than expirationDate. The value is usually endDate plus six months. For example, if the startDate is 2025-10-14, the expirationDate is usually 2026-04-14. Read-only.
      Returns:
      a LocalDate
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getOfferName

      @Nullable public String getOfferName()
      Gets the offerName property value. The offer name of this gallery image that is passed to Azure Resource Manager (ARM) to retrieve the image resource. Read-only.
      Returns:
      a String
    • getPublisherName

      @Nullable public String getPublisherName()
      Gets the publisherName property value. The publisher name of this gallery image that is passed to Azure Resource Manager (ARM) to retrieve the image resource. Read-only.
      Returns:
      a String
    • getSizeInGB

      @Nullable public Integer getSizeInGB()
      Gets the sizeInGB property value. Indicates the size of this image in gigabytes. For example, 64. Read-only.
      Returns:
      a Integer
    • getSkuName

      @Nullable public String getSkuName()
      Gets the skuName property value. The SKU name of this image that is passed to Azure Resource Manager (ARM) to retrieve the image resource. Read-only.
      Returns:
      a String
    • getStartDate

      @Nullable public LocalDate getStartDate()
      Gets the startDate property value. The date when the Cloud PC image is available for provisioning new Cloud PCs. For example, 2022-09-20. Read-only.
      Returns:
      a LocalDate
    • getStatus

      @Nullable public CloudPcGalleryImageStatus getStatus()
      Gets the status property value. The status of the gallery image on the Cloud PC. Possible values are: supported, supportedWithWarning, notSupported, unknownFutureValue. The default value is supported. Read-only.
      Returns:
      a CloudPcGalleryImageStatus
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. The display name of this gallery image. For example, Windows 11 Enterprise + Microsoft 365 Apps 22H2. Read-only.
      Parameters:
      value - Value to set for the displayName property.
    • setEndDate

      public void setEndDate(@Nullable LocalDate value)
      Sets the endDate property value. The date when the status of the image becomes supportedWithWarning. Users can still provision new Cloud PCs if the current time is later than endDate and earlier than expirationDate. For example, assume the endDate of a gallery image is 2023-9-14 and expirationDate is 2024-3-14, users are able to provision new Cloud PCs if today is 2023-10-01. Read-only.
      Parameters:
      value - Value to set for the endDate property.
    • setExpirationDate

      public void setExpirationDate(@Nullable LocalDate value)
      Sets the expirationDate property value. The date when the image is no longer available. Users are unable to provision new Cloud PCs if the current time is later than expirationDate. The value is usually endDate plus six months. For example, if the startDate is 2025-10-14, the expirationDate is usually 2026-04-14. Read-only.
      Parameters:
      value - Value to set for the expirationDate property.
    • setOfferName

      public void setOfferName(@Nullable String value)
      Sets the offerName property value. The offer name of this gallery image that is passed to Azure Resource Manager (ARM) to retrieve the image resource. Read-only.
      Parameters:
      value - Value to set for the offerName property.
    • setPublisherName

      public void setPublisherName(@Nullable String value)
      Sets the publisherName property value. The publisher name of this gallery image that is passed to Azure Resource Manager (ARM) to retrieve the image resource. Read-only.
      Parameters:
      value - Value to set for the publisherName property.
    • setSizeInGB

      public void setSizeInGB(@Nullable Integer value)
      Sets the sizeInGB property value. Indicates the size of this image in gigabytes. For example, 64. Read-only.
      Parameters:
      value - Value to set for the sizeInGB property.
    • setSkuName

      public void setSkuName(@Nullable String value)
      Sets the skuName property value. The SKU name of this image that is passed to Azure Resource Manager (ARM) to retrieve the image resource. Read-only.
      Parameters:
      value - Value to set for the skuName property.
    • setStartDate

      public void setStartDate(@Nullable LocalDate value)
      Sets the startDate property value. The date when the Cloud PC image is available for provisioning new Cloud PCs. For example, 2022-09-20. Read-only.
      Parameters:
      value - Value to set for the startDate property.
    • setStatus

      public void setStatus(@Nullable CloudPcGalleryImageStatus value)
      Sets the status property value. The status of the gallery image on the Cloud PC. Possible values are: supported, supportedWithWarning, notSupported, unknownFutureValue. The default value is supported. Read-only.
      Parameters:
      value - Value to set for the status property.