Package odata.msgraph.client.entity
Class PrinterShare
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.PrinterBase
-
- odata.msgraph.client.entity.PrinterShare
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class PrinterShare extends PrinterBase implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPrinterShare.Builder
-
Field Summary
Fields Modifier and Type Field Description protected BooleanallowAllUsersprotected OffsetDateTimecreatedDateTimeprotected PrinterShareViewpointviewPoint-
Fields inherited from class odata.msgraph.client.entity.PrinterBase
capabilities, defaults, displayName, isAcceptingJobs, jobs, location, manufacturer, model, status
-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPrinterShare()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PrinterShare.BuilderbuilderPrinterShare()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<Boolean>getAllowAllUsers()GroupCollectionRequestgetAllowedGroups()UserCollectionRequestgetAllowedUsers()com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<OffsetDateTime>getCreatedDateTime()PrinterRequestgetPrinter()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<PrinterShareViewpoint>getViewPoint()StringodataTypeName()PrinterSharepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)PrinterShareput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()PrinterSharewithAllowAllUsers(Boolean allowAllUsers)PrinterSharewithCreatedDateTime(OffsetDateTime createdDateTime)PrinterSharewithUnmappedField(String name, Object value)PrinterSharewithViewPoint(PrinterShareViewpoint viewPoint)-
Methods inherited from class odata.msgraph.client.entity.PrinterBase
getCapabilities, getDefaults, getDisplayName, getIsAcceptingJobs, getJobs, getLocation, getManufacturer, getModel, getStatus, withCapabilities, withDefaults, withDisplayName, withIsAcceptingJobs, withJobs, withLocation, withManufacturer, withModel, withStatus
-
-
-
-
Field Detail
-
allowAllUsers
protected Boolean allowAllUsers
-
createdDateTime
protected OffsetDateTime createdDateTime
-
viewPoint
protected PrinterShareViewpoint viewPoint
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classPrinterBase
-
builderPrinterShare
public static PrinterShare.Builder builderPrinterShare()
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
-
withAllowAllUsers
public PrinterShare withAllowAllUsers(Boolean allowAllUsers)
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
-
withCreatedDateTime
public PrinterShare withCreatedDateTime(OffsetDateTime createdDateTime)
-
getViewPoint
public Optional<PrinterShareViewpoint> getViewPoint()
-
withViewPoint
public PrinterShare withViewPoint(PrinterShareViewpoint viewPoint)
-
withUnmappedField
public PrinterShare withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classPrinterBase
-
getAllowedGroups
public GroupCollectionRequest getAllowedGroups()
-
getAllowedUsers
public UserCollectionRequest getAllowedUsers()
-
getPrinter
public PrinterRequest getPrinter()
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classPrinterBase
-
patch
public PrinterShare 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 PrinterShare 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
-
toString
public String toString()
- Overrides:
toStringin classPrinterBase
-
-