Package odata.msgraph.client.entity
Class ListItem
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.BaseItem
-
- odata.msgraph.client.entity.ListItem
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class ListItem extends BaseItem implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classListItem.Builder
-
Field Summary
Fields Modifier and Type Field Description protected ContentTypeInfocontentTypeprotected List<DocumentSetVersion>documentSetVersionsprotected DriveItemdriveItemprotected FieldValueSetfieldsprotected SharepointIdssharepointIdsprotected List<ListItemVersion>versions-
Fields inherited from class odata.msgraph.client.entity.BaseItem
createdBy, createdDateTime, description, eTag, lastModifiedBy, lastModifiedDateTime, name, parentReference, webUrl
-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedListItem()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ListItem.BuilderbuilderListItem()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.CollectionPageNonEntityRequest<ItemActivityStat>getActivitiesByInterval()com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<ItemActivityStat>getActivitiesByInterval_Function(String startDateTime, String endDateTime, String interval)ItemAnalyticsRequestgetAnalytics()com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<ContentTypeInfo>getContentType()DocumentSetVersionCollectionRequestgetDocumentSetVersions()DriveItemRequestgetDriveItem()FieldValueSetRequestgetFields()Optional<SharepointIds>getSharepointIds()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()ListItemVersionCollectionRequestgetVersions()StringodataTypeName()ListItempatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)ListItemput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()ListItemwithContentType(ContentTypeInfo contentType)ListItemwithDocumentSetVersions(List<DocumentSetVersion> documentSetVersions)ListItemwithDriveItem(DriveItem driveItem)ListItemwithFields(FieldValueSet fields)ListItemwithSharepointIds(SharepointIds sharepointIds)ListItemwithUnmappedField(String name, Object value)ListItemwithVersions(List<ListItemVersion> versions)-
Methods inherited from class odata.msgraph.client.entity.BaseItem
getCreatedBy, getCreatedByUser, getCreatedDateTime, getDescription, getETag, getLastModifiedBy, getLastModifiedByUser, getLastModifiedDateTime, getName, getParentReference, getWebUrl, withCreatedBy, withCreatedDateTime, withDescription, withETag, withLastModifiedBy, withLastModifiedDateTime, withName, withParentReference, withWebUrl
-
-
-
-
Field Detail
-
contentType
protected ContentTypeInfo contentType
-
sharepointIds
protected SharepointIds sharepointIds
-
documentSetVersions
protected List<DocumentSetVersion> documentSetVersions
-
driveItem
protected DriveItem driveItem
-
fields
protected FieldValueSet fields
-
versions
protected List<ListItemVersion> versions
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classBaseItem
-
builderListItem
public static ListItem.Builder builderListItem()
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 classBaseItem
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classBaseItem
-
getContentType
public Optional<ContentTypeInfo> getContentType()
-
withContentType
public ListItem withContentType(ContentTypeInfo contentType)
-
getSharepointIds
public Optional<SharepointIds> getSharepointIds()
-
withSharepointIds
public ListItem withSharepointIds(SharepointIds sharepointIds)
-
withUnmappedField
public ListItem withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classBaseItem
-
getAnalytics
public ItemAnalyticsRequest getAnalytics()
-
getDocumentSetVersions
public DocumentSetVersionCollectionRequest getDocumentSetVersions()
-
getDriveItem
public DriveItemRequest getDriveItem()
-
getFields
public FieldValueSetRequest getFields()
-
getVersions
public ListItemVersionCollectionRequest getVersions()
-
withDocumentSetVersions
public ListItem withDocumentSetVersions(List<DocumentSetVersion> documentSetVersions)
-
withFields
public ListItem withFields(FieldValueSet fields)
-
withVersions
public ListItem withVersions(List<ListItemVersion> versions)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classBaseItem
-
patch
public ListItem patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public ListItem put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
getActivitiesByInterval
public com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<ItemActivityStat> getActivitiesByInterval()
-
getActivitiesByInterval_Function
public com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<ItemActivityStat> getActivitiesByInterval_Function(String startDateTime, String endDateTime, String interval)
-
-