Package odata.msgraph.client.entity
Class PrintJob
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.PrintJob
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class PrintJob extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPrintJob.Builder
-
Field Summary
Fields Modifier and Type Field Description protected PrintJobConfigurationconfigurationprotected UserIdentitycreatedByprotected OffsetDateTimecreatedDateTimeprotected List<PrintDocument>documentsprotected BooleanisFetchableprotected StringredirectedFromprotected StringredirectedToprotected PrintJobStatusstatus-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPrintJob()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.github.davidmoten.odata.client.ActionRequestNoReturnabort(String reason)static PrintJob.BuilderbuilderPrintJob()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.ActionRequestNoReturncancel()com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<PrintJobConfiguration>getConfiguration()Optional<UserIdentity>getCreatedBy()Optional<OffsetDateTime>getCreatedDateTime()PrintDocumentCollectionRequestgetDocuments()Optional<Boolean>getIsFetchable()Optional<String>getRedirectedFrom()Optional<String>getRedirectedTo()Optional<PrintJobStatus>getStatus()PrintTaskCollectionRequestgetTasks()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()PrintJobpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)PrintJobput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<PrintJob>redirect(String destinationPrinterId, PrintJobConfiguration configuration)com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<PrintJobStatus>start()StringtoString()PrintJobwithConfiguration(PrintJobConfiguration configuration)PrintJobwithCreatedBy(UserIdentity createdBy)PrintJobwithCreatedDateTime(OffsetDateTime createdDateTime)PrintJobwithDocuments(List<PrintDocument> documents)PrintJobwithIsFetchable(Boolean isFetchable)PrintJobwithRedirectedFrom(String redirectedFrom)PrintJobwithRedirectedTo(String redirectedTo)PrintJobwithStatus(PrintJobStatus status)PrintJobwithUnmappedField(String name, Object value)
-
-
-
Field Detail
-
configuration
protected PrintJobConfiguration configuration
-
createdBy
protected UserIdentity createdBy
-
createdDateTime
protected OffsetDateTime createdDateTime
-
isFetchable
protected Boolean isFetchable
-
redirectedFrom
protected String redirectedFrom
-
redirectedTo
protected String redirectedTo
-
status
protected PrintJobStatus status
-
documents
protected List<PrintDocument> documents
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderPrintJob
public static PrintJob.Builder builderPrintJob()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getConfiguration
public Optional<PrintJobConfiguration> getConfiguration()
-
withConfiguration
public PrintJob withConfiguration(PrintJobConfiguration configuration)
-
getCreatedBy
public Optional<UserIdentity> getCreatedBy()
-
withCreatedBy
public PrintJob withCreatedBy(UserIdentity createdBy)
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
-
withCreatedDateTime
public PrintJob withCreatedDateTime(OffsetDateTime createdDateTime)
-
getStatus
public Optional<PrintJobStatus> getStatus()
-
withStatus
public PrintJob withStatus(PrintJobStatus status)
-
withUnmappedField
public PrintJob withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classEntity
-
getDocuments
public PrintDocumentCollectionRequest getDocuments()
-
getTasks
public PrintTaskCollectionRequest getTasks()
-
withDocuments
public PrintJob withDocuments(List<PrintDocument> documents)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public PrintJob patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public PrintJob put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
cancel
public com.github.davidmoten.odata.client.ActionRequestNoReturn cancel()
-
start
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<PrintJobStatus> start()
-
abort
public com.github.davidmoten.odata.client.ActionRequestNoReturn abort(String reason)
-
redirect
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<PrintJob> redirect(String destinationPrinterId, PrintJobConfiguration configuration)
-
-