Class PrinterBase

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.PrinterBase
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel
Direct Known Subclasses:
Printer, PrinterShare

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

    • PrinterBase

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

    • createFromDiscriminatorValue

      @Nonnull public static PrinterBase 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 PrinterBase
    • getCapabilities

      @Nullable public PrinterCapabilities getCapabilities()
      Gets the capabilities property value. The capabilities of the printer/printerShare.
      Returns:
      a PrinterCapabilities
    • getDefaults

      @Nullable public PrinterDefaults getDefaults()
      Gets the defaults property value. The default print settings of printer/printerShare.
      Returns:
      a PrinterDefaults
    • getDisplayName

      @Nullable public String getDisplayName()
      Gets the displayName property value. The name of the printer/printerShare.
      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>>
    • getIsAcceptingJobs

      @Nullable public Boolean getIsAcceptingJobs()
      Gets the isAcceptingJobs property value. Specifies whether the printer/printerShare is currently accepting new print jobs.
      Returns:
      a Boolean
    • getJobs

      @Nullable public List<PrintJob> getJobs()
      Gets the jobs property value. The list of jobs that are queued for printing by the printer/printerShare.
      Returns:
      a List<PrintJob>
    • getLocation

      @Nullable public PrinterLocation getLocation()
      Gets the location property value. The physical and/or organizational location of the printer/printerShare.
      Returns:
      a PrinterLocation
    • getManufacturer

      @Nullable public String getManufacturer()
      Gets the manufacturer property value. The manufacturer of the printer/printerShare.
      Returns:
      a String
    • getModel

      @Nullable public String getModel()
      Gets the model property value. The model name of the printer/printerShare.
      Returns:
      a String
    • getStatus

      @Nullable public PrinterStatus getStatus()
      Gets the status property value. The status property
      Returns:
      a PrinterStatus
    • 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
    • setCapabilities

      public void setCapabilities(@Nullable PrinterCapabilities value)
      Sets the capabilities property value. The capabilities of the printer/printerShare.
      Parameters:
      value - Value to set for the capabilities property.
    • setDefaults

      public void setDefaults(@Nullable PrinterDefaults value)
      Sets the defaults property value. The default print settings of printer/printerShare.
      Parameters:
      value - Value to set for the defaults property.
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. The name of the printer/printerShare.
      Parameters:
      value - Value to set for the displayName property.
    • setIsAcceptingJobs

      public void setIsAcceptingJobs(@Nullable Boolean value)
      Sets the isAcceptingJobs property value. Specifies whether the printer/printerShare is currently accepting new print jobs.
      Parameters:
      value - Value to set for the isAcceptingJobs property.
    • setJobs

      public void setJobs(@Nullable List<PrintJob> value)
      Sets the jobs property value. The list of jobs that are queued for printing by the printer/printerShare.
      Parameters:
      value - Value to set for the jobs property.
    • setLocation

      public void setLocation(@Nullable PrinterLocation value)
      Sets the location property value. The physical and/or organizational location of the printer/printerShare.
      Parameters:
      value - Value to set for the location property.
    • setManufacturer

      public void setManufacturer(@Nullable String value)
      Sets the manufacturer property value. The manufacturer of the printer/printerShare.
      Parameters:
      value - Value to set for the manufacturer property.
    • setModel

      public void setModel(@Nullable String value)
      Sets the model property value. The model name of the printer/printerShare.
      Parameters:
      value - Value to set for the model property.
    • setStatus

      public void setStatus(@Nullable PrinterStatus value)
      Sets the status property value. The status property
      Parameters:
      value - Value to set for the status property.