Package com.microsoft.graph.models
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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CloudPcDeviceImage
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the displayName property value.Gets the errorCode property value.Gets the expirationDate property value.The deserialization information for the current modelGets the lastModifiedDateTime property value.Gets the operatingSystem property value.Gets the osBuildNumber property value.Gets the osStatus property value.Gets the sourceImageResourceId property value.Gets the status property value.Gets the version property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setDisplayName
(String value) Sets the displayName property value.void
Sets the errorCode property value.void
setExpirationDate
(LocalDate value) Sets the expirationDate property value.void
Sets the lastModifiedDateTime property value.void
setOperatingSystem
(String value) Sets the operatingSystem property value.void
setOsBuildNumber
(String value) Sets the osBuildNumber property value.void
Sets the osStatus property value.void
setSourceImageResourceId
(String value) Sets the sourceImageResourceId property value.void
Sets the status property value.void
setVersion
(String value) Sets the version property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
CloudPcDeviceImage
public CloudPcDeviceImage()Instantiates a newCloudPcDeviceImage
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
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
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
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 interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
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
Gets the operatingSystem property value. The operating system (OS) of the image. For example, Windows 10 Enterprise. Read-only.- Returns:
- a
String
-
getOsBuildNumber
Gets the osBuildNumber property value. The OS build version of the image. For example, 1909. Read-only.- Returns:
- a
String
-
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
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
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
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 -
setDisplayName
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
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
Sets the expirationDate property value. The date when the image became unavailable. Read-only.- Parameters:
value
- Value to set for the expirationDate property.
-
setLastModifiedDateTime
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
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
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
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
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
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
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.
-