Package odata.msgraph.client.entity
Class PrinterBase
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.PrinterBase
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
Printer,PrinterShare
public class PrinterBase extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Field Summary
Fields Modifier and Type Field Description protected PrinterCapabilitiescapabilitiesprotected PrinterDefaultsdefaultsprotected StringdisplayNameprotected BooleanisAcceptingJobsprotected List<PrintJob>jobsprotected PrinterLocationlocationprotected Stringmanufacturerprotected Stringmodelprotected PrinterStatusstatus-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPrinterBase()
-
Method Summary
-
-
-
Field Detail
-
capabilities
protected PrinterCapabilities capabilities
-
defaults
protected PrinterDefaults defaults
-
displayName
protected String displayName
-
isAcceptingJobs
protected Boolean isAcceptingJobs
-
location
protected PrinterLocation location
-
manufacturer
protected String manufacturer
-
model
protected String model
-
status
protected PrinterStatus status
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
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
-
getCapabilities
public Optional<PrinterCapabilities> getCapabilities()
-
withCapabilities
public PrinterBase withCapabilities(PrinterCapabilities capabilities)
-
getDefaults
public Optional<PrinterDefaults> getDefaults()
-
withDefaults
public PrinterBase withDefaults(PrinterDefaults defaults)
-
withDisplayName
public PrinterBase withDisplayName(String displayName)
-
withIsAcceptingJobs
public PrinterBase withIsAcceptingJobs(Boolean isAcceptingJobs)
-
getLocation
public Optional<PrinterLocation> getLocation()
-
withLocation
public PrinterBase withLocation(PrinterLocation location)
-
withManufacturer
public PrinterBase withManufacturer(String manufacturer)
-
withModel
public PrinterBase withModel(String model)
-
getStatus
public Optional<PrinterStatus> getStatus()
-
withStatus
public PrinterBase withStatus(PrinterStatus status)
-
withUnmappedField
public PrinterBase withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classEntity
-
getJobs
public PrintJobCollectionRequest getJobs()
-
withJobs
public PrinterBase withJobs(List<PrintJob> jobs)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public PrinterBase patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public PrinterBase put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-