Class List.ListBuilder<C extends List,B extends List.ListBuilder<C,B>>

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

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

    • ListBuilder

      public ListBuilder()
  • Method Details

    • system

      public B system(Object system)
      Indicates that this is a system-managed list. Note: Either null or defined as empty.
      Returns:
      this.
    • columns

      public B columns(List<ColumnDefinition> columns)
      The column definitions that apply to this list.
      Returns:
      this.
    • contentTypes

      public B contentTypes(List<ContentType> contentTypes)
      The content types for this list.
      Returns:
      this.
    • drive

      public B drive(Drive drive)
      When defined, indicates that this list exists within a document library and can be treated as a drive.
      Returns:
      this.
    • siteId

      public B siteId(String siteId)
      The associated site identifier that this list is associated with.
      Returns:
      this.
    • connection

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

      public B displayName(String displayName)
      The list title.
      Returns:
      this.
    • list

      public B list(ListInfo list)
      Additional list information.
      Returns:
      this.
    • build

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

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