Package com.microsoft.graph.models
Class Printer
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.PrinterBase
com.microsoft.graph.models.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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Printer
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the connectors property value.The deserialization information for the current modelGets the hasPhysicalDevice property value.Gets the isShared property value.Gets the lastSeenDateTime property value.Gets the registeredDateTime property value.Gets the shares property value.Gets the taskTriggers property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setConnectors
(List<PrintConnector> value) Sets the connectors property value.void
setHasPhysicalDevice
(Boolean value) Sets the hasPhysicalDevice property value.void
setIsShared
(Boolean value) Sets the isShared property value.void
Sets the lastSeenDateTime property value.void
Sets the registeredDateTime property value.void
setShares
(List<PrinterShare> value) Sets the shares property value.void
setTaskTriggers
(List<PrintTaskTrigger> value) Sets the taskTriggers property value.Methods inherited from class com.microsoft.graph.models.PrinterBase
getCapabilities, getDefaults, getDisplayName, getIsAcceptingJobs, getJobs, getLocation, getManufacturer, getModel, getStatus, setCapabilities, setDefaults, setDisplayName, setIsAcceptingJobs, setJobs, setLocation, setManufacturer, setModel, setStatus
Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
Printer
public Printer()Instantiates a newPrinter
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
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 interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classPrinterBase
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getHasPhysicalDevice
Gets the hasPhysicalDevice property value. True if the printer has a physical device for printing. Read-only.- Returns:
- a
Boolean
-
getLastSeenDateTime
Gets the lastSeenDateTime property value. The most recent dateTimeOffset when a printer interacted with Universal Print. Read-only.- Returns:
- a
OffsetDateTime
-
getRegisteredDateTime
Gets the registeredDateTime property value. The DateTimeOffset when the printer was registered. Read-only.- Returns:
- a
OffsetDateTime
-
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 interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
serialize
in classPrinterBase
- Parameters:
writer
- Serialization writer to use to serialize this model
-
setConnectors
Sets the connectors property value. The connectors that are associated with the printer.- Parameters:
value
- Value to set for the connectors property.
-
setHasPhysicalDevice
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.
-
setLastSeenDateTime
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
Sets the registeredDateTime property value. The DateTimeOffset when the printer was registered. Read-only.- Parameters:
value
- Value to set for the registeredDateTime property.
-
setTaskTriggers
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.
-