Package com.microsoft.graph.models
Class PrintJob
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.PrintJob
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class PrintJob
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 PrintJob
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the acknowledgedDateTime property value.Gets the configuration property value.Gets the createdBy property value.Gets the createdDateTime property value.Gets the documents property value.Gets the errorCode property value.The deserialization information for the current modelGets the isFetchable property value.Gets the redirectedFrom property value.Gets the redirectedTo property value.Gets the status property value.getTasks()
Gets the tasks property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
Sets the acknowledgedDateTime property value.void
Sets the configuration property value.void
setCreatedBy
(UserIdentity value) Sets the createdBy property value.void
setCreatedDateTime
(OffsetDateTime value) Sets the createdDateTime property value.void
setDocuments
(List<PrintDocument> value) Sets the documents property value.void
setErrorCode
(Integer value) Sets the errorCode property value.void
setIsFetchable
(Boolean value) Sets the isFetchable property value.void
setRedirectedFrom
(String value) Sets the redirectedFrom property value.void
setRedirectedTo
(String value) Sets the redirectedTo property value.void
setStatus
(PrintJobStatus value) Sets the status property value.void
Sets the tasks property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
PrintJob
public PrintJob()Instantiates a newPrintJob
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static PrintJob 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
PrintJob
-
getAcknowledgedDateTime
Gets the acknowledgedDateTime property value. The dateTimeOffset when the job was acknowledged. Read-only.- Returns:
- a
OffsetDateTime
-
getConfiguration
Gets the configuration property value. The configuration property- Returns:
- a
PrintJobConfiguration
-
getCreatedBy
Gets the createdBy property value. The createdBy property- Returns:
- a
UserIdentity
-
getCreatedDateTime
Gets the createdDateTime property value. The DateTimeOffset when the job was created. Read-only.- Returns:
- a
OffsetDateTime
-
getDocuments
Gets the documents property value. The documents property- Returns:
- a
List<PrintDocument>
-
getErrorCode
Gets the errorCode property value. The error code of the print job. Read-only.- Returns:
- a
Integer
-
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>>
-
getIsFetchable
Gets the isFetchable property value. If true, document can be fetched by printer.- Returns:
- a
Boolean
-
getRedirectedFrom
Gets the redirectedFrom property value. Contains the source job URL, if the job has been redirected from another printer.- Returns:
- a
String
-
getRedirectedTo
Gets the redirectedTo property value. Contains the destination job URL, if the job has been redirected to another printer.- Returns:
- a
String
-
getStatus
Gets the status property value. The status property- Returns:
- a
PrintJobStatus
-
getTasks
Gets the tasks property value. A list of printTasks that were triggered by this print job. -
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setAcknowledgedDateTime
Sets the acknowledgedDateTime property value. The dateTimeOffset when the job was acknowledged. Read-only.- Parameters:
value
- Value to set for the acknowledgedDateTime property.
-
setConfiguration
Sets the configuration property value. The configuration property- Parameters:
value
- Value to set for the configuration property.
-
setCreatedBy
Sets the createdBy property value. The createdBy property- Parameters:
value
- Value to set for the createdBy property.
-
setCreatedDateTime
Sets the createdDateTime property value. The DateTimeOffset when the job was created. Read-only.- Parameters:
value
- Value to set for the createdDateTime property.
-
setDocuments
Sets the documents property value. The documents property- Parameters:
value
- Value to set for the documents property.
-
setErrorCode
Sets the errorCode property value. The error code of the print job. Read-only.- Parameters:
value
- Value to set for the errorCode property.
-
setIsFetchable
Sets the isFetchable property value. If true, document can be fetched by printer.- Parameters:
value
- Value to set for the isFetchable property.
-
setRedirectedFrom
Sets the redirectedFrom property value. Contains the source job URL, if the job has been redirected from another printer.- Parameters:
value
- Value to set for the redirectedFrom property.
-
setRedirectedTo
Sets the redirectedTo property value. Contains the destination job URL, if the job has been redirected to another printer.- Parameters:
value
- Value to set for the redirectedTo property.
-
setStatus
Sets the status property value. The status property- Parameters:
value
- Value to set for the status property.
-
setTasks
Sets the tasks property value. A list of printTasks that were triggered by this print job.- Parameters:
value
- Value to set for the tasks property.
-