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.
  • Constructor Details

    • DeviceInstallState

      public DeviceInstallState()
      Instantiates a new DeviceInstallState 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

      @Nullable public String getDeviceId()
      Gets the deviceId property value. Device Id.
      Returns:
      a String
    • getDeviceName

      @Nullable public String getDeviceName()
      Gets the deviceName property value. Device name.
      Returns:
      a String
    • getErrorCode

      @Nullable public 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 interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getInstallState

      @Nullable public InstallState getInstallState()
      Gets the installState property value. Possible values for install state.
      Returns:
      a InstallState
    • getLastSyncDateTime

      @Nullable public OffsetDateTime getLastSyncDateTime()
      Gets the lastSyncDateTime property value. Last sync date and time.
      Returns:
      a OffsetDateTime
    • getOsDescription

      @Nullable public String getOsDescription()
      Gets the osDescription property value. OS Description.
      Returns:
      a String
    • getOsVersion

      @Nullable public String getOsVersion()
      Gets the osVersion property value. OS Version.
      Returns:
      a String
    • getUserName

      @Nullable public 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
      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
    • setDeviceId

      public void setDeviceId(@Nullable String value)
      Sets the deviceId property value. Device Id.
      Parameters:
      value - Value to set for the deviceId property.
    • setDeviceName

      public void setDeviceName(@Nullable String value)
      Sets the deviceName property value. Device name.
      Parameters:
      value - Value to set for the deviceName property.
    • setErrorCode

      public void setErrorCode(@Nullable String value)
      Sets the errorCode property value. The error code for install failures.
      Parameters:
      value - Value to set for the errorCode property.
    • setInstallState

      public void setInstallState(@Nullable InstallState value)
      Sets the installState property value. Possible values for install state.
      Parameters:
      value - Value to set for the installState property.
    • setLastSyncDateTime

      public void setLastSyncDateTime(@Nullable OffsetDateTime value)
      Sets the lastSyncDateTime property value. Last sync date and time.
      Parameters:
      value - Value to set for the lastSyncDateTime property.
    • setOsDescription

      public void setOsDescription(@Nullable String value)
      Sets the osDescription property value. OS Description.
      Parameters:
      value - Value to set for the osDescription property.
    • setOsVersion

      public void setOsVersion(@Nullable String value)
      Sets the osVersion property value. OS Version.
      Parameters:
      value - Value to set for the osVersion property.
    • setUserName

      public void setUserName(@Nullable String value)
      Sets the userName property value. Device User Name.
      Parameters:
      value - Value to set for the userName property.