Class Site

All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class Site extends BaseItem implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • Site

      public Site()
      Instantiates a new Site and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static Site createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a Site
    • getAnalytics

      @Nullable public ItemAnalytics getAnalytics()
      Gets the analytics property value. Analytics about the view activities that took place on this site.
      Returns:
      a ItemAnalytics
    • getColumns

      @Nullable public List<ColumnDefinition> getColumns()
      Gets the columns property value. The collection of column definitions reusable across lists under this site.
      Returns:
      a List<ColumnDefinition>
    • getContentTypes

      @Nullable public List<ContentType> getContentTypes()
      Gets the contentTypes property value. The collection of content types defined for this site.
      Returns:
      a List<ContentType>
    • getDisplayName

      @Nullable public String getDisplayName()
      Gets the displayName property value. The full title for the site. Read-only.
      Returns:
      a String
    • getDrive

      @Nullable public Drive getDrive()
      Gets the drive property value. The default drive (document library) for this site.
      Returns:
      a Drive
    • getDrives

      @Nullable public List<Drive> getDrives()
      Gets the drives property value. The collection of drives (document libraries) under this site.
      Returns:
      a List<Drive>
    • getError

      @Nullable public PublicError getError()
      Gets the error property value. The error property
      Returns:
      a PublicError
    • getExternalColumns

      @Nullable public List<ColumnDefinition> getExternalColumns()
      Gets the externalColumns property value. The externalColumns property
      Returns:
      a List<ColumnDefinition>
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class BaseItem
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getIsPersonalSite

      @Nullable public Boolean getIsPersonalSite()
      Gets the isPersonalSite property value. Identifies whether the site is personal or not. Read-only.
      Returns:
      a Boolean
    • getItems

      @Nullable public List<BaseItem> getItems()
      Gets the items property value. Used to address any item contained in this site. This collection can't be enumerated.
      Returns:
      a List<BaseItem>
    • getLists

      @Nullable public List<List> getLists()
      Gets the lists property value. The collection of lists under this site.
      Returns:
      a List<List>
    • getOnenote

      @Nullable public Onenote getOnenote()
      Gets the onenote property value. Calls the OneNote service for notebook related operations.
      Returns:
      a Onenote
    • getOperations

      @Nullable public List<RichLongRunningOperation> getOperations()
      Gets the operations property value. The collection of long-running operations on the site.
      Returns:
      a List<RichLongRunningOperation>
    • getPages

      @Nullable public List<BaseSitePage> getPages()
      Gets the pages property value. The collection of pages in the baseSitePages list in this site.
      Returns:
      a List<BaseSitePage>
    • getPermissions

      @Nullable public List<Permission> getPermissions()
      Gets the permissions property value. The permissions associated with the site. Nullable.
      Returns:
      a List<Permission>
    • getRoot

      @Nullable public Root getRoot()
      Gets the root property value. If present, provides the root site in the site collection. Read-only.
      Returns:
      a Root
    • getSharepointIds

      @Nullable public SharepointIds getSharepointIds()
      Gets the sharepointIds property value. Returns identifiers useful for SharePoint REST compatibility. Read-only.
      Returns:
      a SharepointIds
    • getSiteCollection

      @Nullable public SiteCollection getSiteCollection()
      Gets the siteCollection property value. Provides details about the site's site collection. Available only on the root site. Read-only.
      Returns:
      a SiteCollection
    • getSites

      @Nullable public List<Site> getSites()
      Gets the sites property value. The collection of the sub-sites under this site.
      Returns:
      a List<Site>
    • getTermStore

      @Nullable public Store getTermStore()
      Gets the termStore property value. The default termStore under this site.
      Returns:
      a Store
    • getTermStores

      @Nullable public List<Store> getTermStores()
      Gets the termStores property value. The collection of termStores under this site.
      Returns:
      a List<Store>
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class BaseItem
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAnalytics

      public void setAnalytics(@Nullable ItemAnalytics value)
      Sets the analytics property value. Analytics about the view activities that took place on this site.
      Parameters:
      value - Value to set for the analytics property.
    • setColumns

      public void setColumns(@Nullable List<ColumnDefinition> value)
      Sets the columns property value. The collection of column definitions reusable across lists under this site.
      Parameters:
      value - Value to set for the columns property.
    • setContentTypes

      public void setContentTypes(@Nullable List<ContentType> value)
      Sets the contentTypes property value. The collection of content types defined for this site.
      Parameters:
      value - Value to set for the contentTypes property.
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. The full title for the site. Read-only.
      Parameters:
      value - Value to set for the displayName property.
    • setDrive

      public void setDrive(@Nullable Drive value)
      Sets the drive property value. The default drive (document library) for this site.
      Parameters:
      value - Value to set for the drive property.
    • setDrives

      public void setDrives(@Nullable List<Drive> value)
      Sets the drives property value. The collection of drives (document libraries) under this site.
      Parameters:
      value - Value to set for the drives property.
    • setError

      public void setError(@Nullable PublicError value)
      Sets the error property value. The error property
      Parameters:
      value - Value to set for the error property.
    • setExternalColumns

      public void setExternalColumns(@Nullable List<ColumnDefinition> value)
      Sets the externalColumns property value. The externalColumns property
      Parameters:
      value - Value to set for the externalColumns property.
    • setIsPersonalSite

      public void setIsPersonalSite(@Nullable Boolean value)
      Sets the isPersonalSite property value. Identifies whether the site is personal or not. Read-only.
      Parameters:
      value - Value to set for the isPersonalSite property.
    • setItems

      public void setItems(@Nullable List<BaseItem> value)
      Sets the items property value. Used to address any item contained in this site. This collection can't be enumerated.
      Parameters:
      value - Value to set for the items property.
    • setLists

      public void setLists(@Nullable List<List> value)
      Sets the lists property value. The collection of lists under this site.
      Parameters:
      value - Value to set for the lists property.
    • setOnenote

      public void setOnenote(@Nullable Onenote value)
      Sets the onenote property value. Calls the OneNote service for notebook related operations.
      Parameters:
      value - Value to set for the onenote property.
    • setOperations

      public void setOperations(@Nullable List<RichLongRunningOperation> value)
      Sets the operations property value. The collection of long-running operations on the site.
      Parameters:
      value - Value to set for the operations property.
    • setPages

      public void setPages(@Nullable List<BaseSitePage> value)
      Sets the pages property value. The collection of pages in the baseSitePages list in this site.
      Parameters:
      value - Value to set for the pages property.
    • setPermissions

      public void setPermissions(@Nullable List<Permission> value)
      Sets the permissions property value. The permissions associated with the site. Nullable.
      Parameters:
      value - Value to set for the permissions property.
    • setRoot

      public void setRoot(@Nullable Root value)
      Sets the root property value. If present, provides the root site in the site collection. Read-only.
      Parameters:
      value - Value to set for the root property.
    • setSharepointIds

      public void setSharepointIds(@Nullable SharepointIds value)
      Sets the sharepointIds property value. Returns identifiers useful for SharePoint REST compatibility. Read-only.
      Parameters:
      value - Value to set for the sharepointIds property.
    • setSiteCollection

      public void setSiteCollection(@Nullable SiteCollection value)
      Sets the siteCollection property value. Provides details about the site's site collection. Available only on the root site. Read-only.
      Parameters:
      value - Value to set for the siteCollection property.
    • setSites

      public void setSites(@Nullable List<Site> value)
      Sets the sites property value. The collection of the sub-sites under this site.
      Parameters:
      value - Value to set for the sites property.
    • setTermStore

      public void setTermStore(@Nullable Store value)
      Sets the termStore property value. The default termStore under this site.
      Parameters:
      value - Value to set for the termStore property.
    • setTermStores

      public void setTermStores(@Nullable List<Store> value)
      Sets the termStores property value. The collection of termStores under this site.
      Parameters:
      value - Value to set for the termStores property.