Class ListItem.ListItemBuilder<C extends ListItem,B extends ListItem.ListItemBuilder<C,B>>

java.lang.Object
com.amilesend.onedrive.resource.item.BaseItem.BaseItemBuilder<C,B>
com.amilesend.onedrive.resource.site.ListItem.ListItemBuilder<C,B>
Enclosing class:
ListItem

public abstract static class ListItem.ListItemBuilder<C extends ListItem,B extends ListItem.ListItemBuilder<C,B>> extends BaseItem.BaseItemBuilder<C,B>
  • Constructor Details

    • ListItemBuilder

      public ListItemBuilder()
  • Method Details

    • fields

      public B fields(Map<String,Object> fields)
      The key is the name of the column, the value is the associated value of the columns set on this list item.
      Returns:
      this.
    • sharepointIds

      public B sharepointIds(SharePointIds sharepointIds)
      The Sharepoint identifiers.
      Returns:
      this.
    • driveItem

      public B driveItem(DriveItem driveItem)
      For document libraries, the list item as a drive item.
      Returns:
      this.
    • siteId

      public B siteId(String siteId)
      The associated site identifier.
      Returns:
      this.
    • listId

      public B listId(String listId)
      The associated list identifier.
      Returns:
      this.
    • connection

      public B connection(OneDriveConnection connection)
      The OneDrive API connection.
      Returns:
      this.
    • contentType

      public B contentType(ContentType contentType)
      The content type of this list item.
      Returns:
      this.
    • deleted

      public B deleted(boolean deleted)
      Indicates if this item is deleted or not (read-only).
      Returns:
      this.
    • build

      public abstract C build()
      Specified by:
      build in class BaseItem.BaseItemBuilder<C extends ListItem,B extends ListItem.ListItemBuilder<C,B>>
    • toString

      public String toString()
      Overrides:
      toString in class BaseItem.BaseItemBuilder<C extends ListItem,B extends ListItem.ListItemBuilder<C,B>>