Class Printer

All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

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

    • Printer

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

    • createFromDiscriminatorValue

      @Nonnull public static Printer 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 Printer
    • getConnectors

      @Nullable public List<PrintConnector> getConnectors()
      Gets the connectors property value. The connectors that are associated with the printer.
      Returns:
      a List<PrintConnector>
    • 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 PrinterBase
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getHasPhysicalDevice

      @Nullable public Boolean getHasPhysicalDevice()
      Gets the hasPhysicalDevice property value. True if the printer has a physical device for printing. Read-only.
      Returns:
      a Boolean
    • getIsShared

      @Nullable public Boolean getIsShared()
      Gets the isShared property value. True if the printer is shared; false otherwise. Read-only.
      Returns:
      a Boolean
    • getLastSeenDateTime

      @Nullable public OffsetDateTime getLastSeenDateTime()
      Gets the lastSeenDateTime property value. The most recent dateTimeOffset when a printer interacted with Universal Print. Read-only.
      Returns:
      a OffsetDateTime
    • getRegisteredDateTime

      @Nullable public OffsetDateTime getRegisteredDateTime()
      Gets the registeredDateTime property value. The DateTimeOffset when the printer was registered. Read-only.
      Returns:
      a OffsetDateTime
    • getShares

      @Nullable public List<PrinterShare> getShares()
      Gets the shares property value. The list of printerShares that are associated with the printer. Currently, only one printerShare can be associated with the printer. Read-only. Nullable.
      Returns:
      a List<PrinterShare>
    • getTaskTriggers

      @Nullable public List<PrintTaskTrigger> getTaskTriggers()
      Gets the taskTriggers property value. A list of task triggers that are associated with the printer.
      Returns:
      a List<PrintTaskTrigger>
    • 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 PrinterBase
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setConnectors

      public void setConnectors(@Nullable List<PrintConnector> value)
      Sets the connectors property value. The connectors that are associated with the printer.
      Parameters:
      value - Value to set for the connectors property.
    • setHasPhysicalDevice

      public void setHasPhysicalDevice(@Nullable Boolean value)
      Sets the hasPhysicalDevice property value. True if the printer has a physical device for printing. Read-only.
      Parameters:
      value - Value to set for the hasPhysicalDevice property.
    • setIsShared

      public void setIsShared(@Nullable Boolean value)
      Sets the isShared property value. True if the printer is shared; false otherwise. Read-only.
      Parameters:
      value - Value to set for the isShared property.
    • setLastSeenDateTime

      public void setLastSeenDateTime(@Nullable OffsetDateTime value)
      Sets the lastSeenDateTime property value. The most recent dateTimeOffset when a printer interacted with Universal Print. Read-only.
      Parameters:
      value - Value to set for the lastSeenDateTime property.
    • setRegisteredDateTime

      public void setRegisteredDateTime(@Nullable OffsetDateTime value)
      Sets the registeredDateTime property value. The DateTimeOffset when the printer was registered. Read-only.
      Parameters:
      value - Value to set for the registeredDateTime property.
    • setShares

      public void setShares(@Nullable List<PrinterShare> value)
      Sets the shares property value. The list of printerShares that are associated with the printer. Currently, only one printerShare can be associated with the printer. Read-only. Nullable.
      Parameters:
      value - Value to set for the shares property.
    • setTaskTriggers

      public void setTaskTriggers(@Nullable List<PrintTaskTrigger> value)
      Sets the taskTriggers property value. A list of task triggers that are associated with the printer.
      Parameters:
      value - Value to set for the taskTriggers property.