Package com.microsoft.graph.models
Class DeviceInstallState
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.DeviceInstallState
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class DeviceInstallState
extends Entity
implements com.microsoft.kiota.serialization.Parsable
Contains properties for the installation state for a device.
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DeviceInstallState
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the deviceId property value.Gets the deviceName property value.Gets the errorCode property value.The deserialization information for the current modelGets the installState property value.Gets the lastSyncDateTime property value.Gets the osDescription property value.Gets the osVersion property value.Gets the userName property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setDeviceId
(String value) Sets the deviceId property value.void
setDeviceName
(String value) Sets the deviceName property value.void
setErrorCode
(String value) Sets the errorCode property value.void
setInstallState
(InstallState value) Sets the installState property value.void
Sets the lastSyncDateTime property value.void
setOsDescription
(String value) Sets the osDescription property value.void
setOsVersion
(String value) Sets the osVersion property value.void
setUserName
(String value) Sets the userName property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
DeviceInstallState
public DeviceInstallState()Instantiates a newDeviceInstallState
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static DeviceInstallState 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
DeviceInstallState
-
getDeviceId
Gets the deviceId property value. Device Id.- Returns:
- a
String
-
getDeviceName
Gets the deviceName property value. Device name.- Returns:
- a
String
-
getErrorCode
Gets the errorCode property value. The error code for install failures.- Returns:
- a
String
-
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>>
-
getInstallState
Gets the installState property value. Possible values for install state.- Returns:
- a
InstallState
-
getLastSyncDateTime
Gets the lastSyncDateTime property value. Last sync date and time.- Returns:
- a
OffsetDateTime
-
getOsDescription
Gets the osDescription property value. OS Description.- Returns:
- a
String
-
getOsVersion
Gets the osVersion property value. OS Version.- Returns:
- a
String
-
getUserName
Gets the userName property value. Device User Name.- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setDeviceId
Sets the deviceId property value. Device Id.- Parameters:
value
- Value to set for the deviceId property.
-
setDeviceName
Sets the deviceName property value. Device name.- Parameters:
value
- Value to set for the deviceName property.
-
setErrorCode
Sets the errorCode property value. The error code for install failures.- Parameters:
value
- Value to set for the errorCode property.
-
setInstallState
Sets the installState property value. Possible values for install state.- Parameters:
value
- Value to set for the installState property.
-
setLastSyncDateTime
Sets the lastSyncDateTime property value. Last sync date and time.- Parameters:
value
- Value to set for the lastSyncDateTime property.
-
setOsDescription
Sets the osDescription property value. OS Description.- Parameters:
value
- Value to set for the osDescription property.
-
setOsVersion
Sets the osVersion property value. OS Version.- Parameters:
value
- Value to set for the osVersion property.
-
setUserName
Sets the userName property value. Device User Name.- Parameters:
value
- Value to set for the userName property.
-