Package odata.msgraph.client.entity
Class BaseItem
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.BaseItem
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class BaseItem extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Field Summary
Fields Modifier and Type Field Description protected IdentitySetcreatedByprotected OffsetDateTimecreatedDateTimeprotected Stringdescriptionprotected StringeTagprotected IdentitySetlastModifiedByprotected OffsetDateTimelastModifiedDateTimeprotected Stringnameprotected ItemReferenceparentReferenceprotected StringwebUrl-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseItem()
-
Method Summary
-
-
-
Field Detail
-
createdBy
protected IdentitySet createdBy
-
createdDateTime
protected OffsetDateTime createdDateTime
-
description
protected String description
-
eTag
protected String eTag
-
lastModifiedBy
protected IdentitySet lastModifiedBy
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
name
protected String name
-
parentReference
protected ItemReference parentReference
-
webUrl
protected String webUrl
-
-
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
-
getCreatedBy
public Optional<IdentitySet> getCreatedBy()
-
withCreatedBy
public BaseItem withCreatedBy(IdentitySet createdBy)
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
-
withCreatedDateTime
public BaseItem withCreatedDateTime(OffsetDateTime createdDateTime)
-
getLastModifiedBy
public Optional<IdentitySet> getLastModifiedBy()
-
withLastModifiedBy
public BaseItem withLastModifiedBy(IdentitySet lastModifiedBy)
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
-
withLastModifiedDateTime
public BaseItem withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
-
getParentReference
public Optional<ItemReference> getParentReference()
-
withParentReference
public BaseItem withParentReference(ItemReference parentReference)
-
withUnmappedField
public BaseItem withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classEntity
-
getCreatedByUser
public UserRequest getCreatedByUser()
-
getLastModifiedByUser
public UserRequest getLastModifiedByUser()
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public BaseItem patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public BaseItem put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-