Package odata.msgraph.client.beta.entity
Class Printer
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.PrinterBase
-
- odata.msgraph.client.beta.entity.Printer
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class Printer extends PrinterBase implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPrinter.Builder
-
Field Summary
Fields Modifier and Type Field Description protected BooleanacceptingJobsprotected BooleanhasPhysicalDeviceprotected BooleanisSharedprotected OffsetDateTimelastSeenDateTimeprotected OffsetDateTimeregisteredDateTime-
Fields inherited from class odata.msgraph.client.beta.entity.PrinterBase
capabilities, defaults, displayName, isAcceptingJobs, location, manufacturer, model, name, status
-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPrinter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Printer.BuilderbuilderPrinter()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<Boolean>getAcceptingJobs()com.github.davidmoten.odata.client.FunctionRequestReturningNonCollectionUnwrapped<PrinterCapabilities>getCapabilities_Function()com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()PrintConnectorCollectionRequestgetConnectors()Optional<Boolean>getHasPhysicalDevice()Optional<Boolean>getIsShared()Optional<OffsetDateTime>getLastSeenDateTime()Optional<OffsetDateTime>getRegisteredDateTime()PrinterShareRequestgetShare()PrinterShareCollectionRequestgetShares()PrintTaskTriggerCollectionRequestgetTaskTriggers()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()Printerpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)Printerput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).com.github.davidmoten.odata.client.ActionRequestNoReturnresetDefaults()com.github.davidmoten.odata.client.ActionRequestNoReturnrestoreFactoryDefaults()StringtoString()PrinterwithAcceptingJobs(Boolean acceptingJobs)PrinterwithHasPhysicalDevice(Boolean hasPhysicalDevice)PrinterwithIsShared(Boolean isShared)PrinterwithLastSeenDateTime(OffsetDateTime lastSeenDateTime)PrinterwithRegisteredDateTime(OffsetDateTime registeredDateTime)PrinterwithUnmappedField(String name, String value)-
Methods inherited from class odata.msgraph.client.beta.entity.PrinterBase
getCapabilities, getDefaults, getDisplayName, getIsAcceptingJobs, getJobs, getLocation, getManufacturer, getModel, getName, getStatus, withCapabilities, withDefaults, withDisplayName, withIsAcceptingJobs, withLocation, withManufacturer, withModel, withName, withStatus
-
-
-
-
Field Detail
-
acceptingJobs
protected Boolean acceptingJobs
-
hasPhysicalDevice
protected Boolean hasPhysicalDevice
-
isShared
protected Boolean isShared
-
lastSeenDateTime
protected OffsetDateTime lastSeenDateTime
-
registeredDateTime
protected OffsetDateTime registeredDateTime
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classPrinterBase
-
builderPrinter
public static Printer.Builder builderPrinter()
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 classPrinterBase
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classPrinterBase
-
getLastSeenDateTime
public Optional<OffsetDateTime> getLastSeenDateTime()
-
withLastSeenDateTime
public Printer withLastSeenDateTime(OffsetDateTime lastSeenDateTime)
-
getRegisteredDateTime
public Optional<OffsetDateTime> getRegisteredDateTime()
-
withRegisteredDateTime
public Printer withRegisteredDateTime(OffsetDateTime registeredDateTime)
-
withUnmappedField
public Printer withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classPrinterBase
-
getConnectors
public PrintConnectorCollectionRequest getConnectors()
-
getShare
public PrinterShareRequest getShare()
-
getShares
public PrinterShareCollectionRequest getShares()
-
getTaskTriggers
public PrintTaskTriggerCollectionRequest getTaskTriggers()
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classPrinterBase
-
patch
public Printer patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classPrinterBase- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public Printer put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classPrinterBase- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
resetDefaults
public com.github.davidmoten.odata.client.ActionRequestNoReturn resetDefaults()
-
restoreFactoryDefaults
public com.github.davidmoten.odata.client.ActionRequestNoReturn restoreFactoryDefaults()
-
getCapabilities_Function
public com.github.davidmoten.odata.client.FunctionRequestReturningNonCollectionUnwrapped<PrinterCapabilities> getCapabilities_Function()
-
toString
public String toString()
- Overrides:
toStringin classPrinterBase
-
-