Package com.microsoft.graph.models
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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PrinterBase
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the capabilities property value.Gets the defaults property value.Gets the displayName property value.The deserialization information for the current modelGets the isAcceptingJobs property value.getJobs()
Gets the jobs property value.Gets the location property value.Gets the manufacturer property value.getModel()
Gets the model property value.Gets the status property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
Sets the capabilities property value.void
setDefaults
(PrinterDefaults value) Sets the defaults property value.void
setDisplayName
(String value) Sets the displayName property value.void
setIsAcceptingJobs
(Boolean value) Sets the isAcceptingJobs property value.void
Sets the jobs property value.void
setLocation
(PrinterLocation value) Sets the location property value.void
setManufacturer
(String value) Sets the manufacturer property value.void
Sets the model property value.void
setStatus
(PrinterStatus value) Sets the status property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
PrinterBase
public PrinterBase()Instantiates a newPrinterBase
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
Gets the capabilities property value. The capabilities of the printer/printerShare.- Returns:
- a
PrinterCapabilities
-
getDefaults
Gets the defaults property value. The default print settings of printer/printerShare.- Returns:
- a
PrinterDefaults
-
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 interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getIsAcceptingJobs
Gets the isAcceptingJobs property value. Specifies whether the printer/printerShare is currently accepting new print jobs.- Returns:
- a
Boolean
-
getJobs
Gets the jobs property value. The list of jobs that are queued for printing by the printer/printerShare. -
getLocation
Gets the location property value. The physical and/or organizational location of the printer/printerShare.- Returns:
- a
PrinterLocation
-
getManufacturer
Gets the manufacturer property value. The manufacturer of the printer/printerShare.- Returns:
- a
String
-
getModel
Gets the model property value. The model name of the printer/printerShare.- Returns:
- a
String
-
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 -
setCapabilities
Sets the capabilities property value. The capabilities of the printer/printerShare.- Parameters:
value
- Value to set for the capabilities property.
-
setDefaults
Sets the defaults property value. The default print settings of printer/printerShare.- Parameters:
value
- Value to set for the defaults property.
-
setDisplayName
Sets the displayName property value. The name of the printer/printerShare.- Parameters:
value
- Value to set for the displayName property.
-
setIsAcceptingJobs
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
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
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
Sets the manufacturer property value. The manufacturer of the printer/printerShare.- Parameters:
value
- Value to set for the manufacturer property.
-
setModel
Sets the model property value. The model name of the printer/printerShare.- Parameters:
value
- Value to set for the model property.
-
setStatus
Sets the status property value. The status property- Parameters:
value
- Value to set for the status property.
-