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
  • Constructor Details

    • PrintJob

      public PrintJob()
      Instantiates a new PrintJob 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

      @Nullable public OffsetDateTime getAcknowledgedDateTime()
      Gets the acknowledgedDateTime property value. The dateTimeOffset when the job was acknowledged. Read-only.
      Returns:
      a OffsetDateTime
    • getConfiguration

      @Nullable public PrintJobConfiguration getConfiguration()
      Gets the configuration property value. The configuration property
      Returns:
      a PrintJobConfiguration
    • getCreatedBy

      @Nullable public UserIdentity getCreatedBy()
      Gets the createdBy property value. The createdBy property
      Returns:
      a UserIdentity
    • getCreatedDateTime

      @Nullable public OffsetDateTime getCreatedDateTime()
      Gets the createdDateTime property value. The DateTimeOffset when the job was created. Read-only.
      Returns:
      a OffsetDateTime
    • getDocuments

      @Nullable public List<PrintDocument> getDocuments()
      Gets the documents property value. The documents property
      Returns:
      a List<PrintDocument>
    • getErrorCode

      @Nullable public Integer 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 interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getIsFetchable

      @Nullable public Boolean getIsFetchable()
      Gets the isFetchable property value. If true, document can be fetched by printer.
      Returns:
      a Boolean
    • getRedirectedFrom

      @Nullable public String getRedirectedFrom()
      Gets the redirectedFrom property value. Contains the source job URL, if the job has been redirected from another printer.
      Returns:
      a String
    • getRedirectedTo

      @Nullable public 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

      @Nullable public PrintJobStatus getStatus()
      Gets the status property value. The status property
      Returns:
      a PrintJobStatus
    • getTasks

      @Nullable public List<PrintTask> getTasks()
      Gets the tasks property value. A list of printTasks that were triggered by this print job.
      Returns:
      a List<PrintTask>
    • 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
    • setAcknowledgedDateTime

      public void setAcknowledgedDateTime(@Nullable OffsetDateTime value)
      Sets the acknowledgedDateTime property value. The dateTimeOffset when the job was acknowledged. Read-only.
      Parameters:
      value - Value to set for the acknowledgedDateTime property.
    • setConfiguration

      public void setConfiguration(@Nullable PrintJobConfiguration value)
      Sets the configuration property value. The configuration property
      Parameters:
      value - Value to set for the configuration property.
    • setCreatedBy

      public void setCreatedBy(@Nullable UserIdentity value)
      Sets the createdBy property value. The createdBy property
      Parameters:
      value - Value to set for the createdBy property.
    • setCreatedDateTime

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      Sets the createdDateTime property value. The DateTimeOffset when the job was created. Read-only.
      Parameters:
      value - Value to set for the createdDateTime property.
    • setDocuments

      public void setDocuments(@Nullable List<PrintDocument> value)
      Sets the documents property value. The documents property
      Parameters:
      value - Value to set for the documents property.
    • setErrorCode

      public void setErrorCode(@Nullable Integer value)
      Sets the errorCode property value. The error code of the print job. Read-only.
      Parameters:
      value - Value to set for the errorCode property.
    • setIsFetchable

      public void setIsFetchable(@Nullable Boolean value)
      Sets the isFetchable property value. If true, document can be fetched by printer.
      Parameters:
      value - Value to set for the isFetchable property.
    • setRedirectedFrom

      public void setRedirectedFrom(@Nullable String value)
      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

      public void setRedirectedTo(@Nullable String value)
      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

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

      public void setTasks(@Nullable List<PrintTask> value)
      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.