Class CloudPcDeviceImage

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

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

    • CloudPcDeviceImage

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

    • createFromDiscriminatorValue

      @Nonnull public static CloudPcDeviceImage 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 CloudPcDeviceImage
    • getDisplayName

      @Nullable public String getDisplayName()
      Gets the displayName property value. The display name of the associated device image. The device image display name and the version are used to uniquely identify the Cloud PC device image. Read-only.
      Returns:
      a String
    • getErrorCode

      @Nullable public CloudPcDeviceImageErrorCode getErrorCode()
      Gets the errorCode property value. The error code of the status of the image that indicates why the upload failed, if applicable. Possible values are: internalServerError, sourceImageNotFound, osVersionNotSupported, sourceImageInvalid, sourceImageNotGeneralized, unknownFutureValue, vmAlreadyAzureAdJoined, paidSourceImageNotSupport, sourceImageNotSupportCustomizeVMName, sourceImageSizeExceedsLimitation. Use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: vmAlreadyAzureAdJoined, paidSourceImageNotSupport, sourceImageNotSupportCustomizeVMName, sourceImageSizeExceedsLimitation. Read-only.
      Returns:
      a CloudPcDeviceImageErrorCode
    • getExpirationDate

      @Nullable public LocalDate getExpirationDate()
      Gets the expirationDate property value. The date when the image became unavailable. 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>>
    • getLastModifiedDateTime

      @Nullable public OffsetDateTime getLastModifiedDateTime()
      Gets the lastModifiedDateTime property value. The data and time when the image was last modified. The timestamp represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
      Returns:
      a OffsetDateTime
    • getOperatingSystem

      @Nullable public String getOperatingSystem()
      Gets the operatingSystem property value. The operating system (OS) of the image. For example, Windows 10 Enterprise. Read-only.
      Returns:
      a String
    • getOsBuildNumber

      @Nullable public String getOsBuildNumber()
      Gets the osBuildNumber property value. The OS build version of the image. For example, 1909. Read-only.
      Returns:
      a String
    • getOsStatus

      @Nullable public CloudPcDeviceImageOsStatus getOsStatus()
      Gets the osStatus property value. The OS status of this image. Possible values are: supported, supportedWithWarning, unknown, unknownFutureValue. The default value is unknown. Read-only.
      Returns:
      a CloudPcDeviceImageOsStatus
    • getSourceImageResourceId

      @Nullable public String getSourceImageResourceId()
      Gets the sourceImageResourceId property value. The unique identifier (ID) of the source image resource on Azure. The required ID format is: '/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}'. Read-only.
      Returns:
      a String
    • getStatus

      @Nullable public CloudPcDeviceImageStatus getStatus()
      Gets the status property value. The status of the image on the Cloud PC. Possible values are: pending, ready, failed, unknownFutureValue. Read-only.
      Returns:
      a CloudPcDeviceImageStatus
    • getVersion

      @Nullable public String getVersion()
      Gets the version property value. The image version. For example, 0.0.1 and 1.5.13. Read-only.
      Returns:
      a String
    • 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 the associated device image. The device image display name and the version are used to uniquely identify the Cloud PC device image. Read-only.
      Parameters:
      value - Value to set for the displayName property.
    • setErrorCode

      public void setErrorCode(@Nullable CloudPcDeviceImageErrorCode value)
      Sets the errorCode property value. The error code of the status of the image that indicates why the upload failed, if applicable. Possible values are: internalServerError, sourceImageNotFound, osVersionNotSupported, sourceImageInvalid, sourceImageNotGeneralized, unknownFutureValue, vmAlreadyAzureAdJoined, paidSourceImageNotSupport, sourceImageNotSupportCustomizeVMName, sourceImageSizeExceedsLimitation. Use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: vmAlreadyAzureAdJoined, paidSourceImageNotSupport, sourceImageNotSupportCustomizeVMName, sourceImageSizeExceedsLimitation. Read-only.
      Parameters:
      value - Value to set for the errorCode property.
    • setExpirationDate

      public void setExpirationDate(@Nullable LocalDate value)
      Sets the expirationDate property value. The date when the image became unavailable. Read-only.
      Parameters:
      value - Value to set for the expirationDate property.
    • setLastModifiedDateTime

      public void setLastModifiedDateTime(@Nullable OffsetDateTime value)
      Sets the lastModifiedDateTime property value. The data and time when the image was last modified. The timestamp represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
      Parameters:
      value - Value to set for the lastModifiedDateTime property.
    • setOperatingSystem

      public void setOperatingSystem(@Nullable String value)
      Sets the operatingSystem property value. The operating system (OS) of the image. For example, Windows 10 Enterprise. Read-only.
      Parameters:
      value - Value to set for the operatingSystem property.
    • setOsBuildNumber

      public void setOsBuildNumber(@Nullable String value)
      Sets the osBuildNumber property value. The OS build version of the image. For example, 1909. Read-only.
      Parameters:
      value - Value to set for the osBuildNumber property.
    • setOsStatus

      public void setOsStatus(@Nullable CloudPcDeviceImageOsStatus value)
      Sets the osStatus property value. The OS status of this image. Possible values are: supported, supportedWithWarning, unknown, unknownFutureValue. The default value is unknown. Read-only.
      Parameters:
      value - Value to set for the osStatus property.
    • setSourceImageResourceId

      public void setSourceImageResourceId(@Nullable String value)
      Sets the sourceImageResourceId property value. The unique identifier (ID) of the source image resource on Azure. The required ID format is: '/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}'. Read-only.
      Parameters:
      value - Value to set for the sourceImageResourceId property.
    • setStatus

      public void setStatus(@Nullable CloudPcDeviceImageStatus value)
      Sets the status property value. The status of the image on the Cloud PC. Possible values are: pending, ready, failed, unknownFutureValue. Read-only.
      Parameters:
      value - Value to set for the status property.
    • setVersion

      public void setVersion(@Nullable String value)
      Sets the version property value. The image version. For example, 0.0.1 and 1.5.13. Read-only.
      Parameters:
      value - Value to set for the version property.