Class MicrosoftGraphSite


public final class MicrosoftGraphSite extends MicrosoftGraphBaseItemInner
site.
  • Constructor Details

    • MicrosoftGraphSite

      public MicrosoftGraphSite()
      Creates an instance of MicrosoftGraphSite class.
  • Method Details

    • displayName

      public String displayName()
      Get the displayName property: The full title for the site. Read-only.
      Returns:
      the displayName value.
    • withDisplayName

      public MicrosoftGraphSite withDisplayName(String displayName)
      Set the displayName property: The full title for the site. Read-only.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the MicrosoftGraphSite object itself.
    • error

      public MicrosoftGraphPublicError error()
      Get the error property: publicError.
      Returns:
      the error value.
    • withError

      Set the error property: publicError.
      Parameters:
      error - the error value to set.
      Returns:
      the MicrosoftGraphSite object itself.
    • root

      public Map<String,Object> root()
      Get the root property: root.
      Returns:
      the root value.
    • withRoot

      public MicrosoftGraphSite withRoot(Map<String,Object> root)
      Set the root property: root.
      Parameters:
      root - the root value to set.
      Returns:
      the MicrosoftGraphSite object itself.
    • sharepointIds

      public MicrosoftGraphSharepointIds sharepointIds()
      Get the sharepointIds property: sharepointIds.
      Returns:
      the sharepointIds value.
    • withSharepointIds

      public MicrosoftGraphSite withSharepointIds(MicrosoftGraphSharepointIds sharepointIds)
      Set the sharepointIds property: sharepointIds.
      Parameters:
      sharepointIds - the sharepointIds value to set.
      Returns:
      the MicrosoftGraphSite object itself.
    • siteCollection

      public MicrosoftGraphSiteCollection siteCollection()
      Get the siteCollection property: siteCollection.
      Returns:
      the siteCollection value.
    • withSiteCollection

      public MicrosoftGraphSite withSiteCollection(MicrosoftGraphSiteCollection siteCollection)
      Set the siteCollection property: siteCollection.
      Parameters:
      siteCollection - the siteCollection value to set.
      Returns:
      the MicrosoftGraphSite object itself.
    • analytics

      public MicrosoftGraphItemAnalytics analytics()
      Get the analytics property: itemAnalytics.
      Returns:
      the analytics value.
    • withAnalytics

      public MicrosoftGraphSite withAnalytics(MicrosoftGraphItemAnalytics analytics)
      Set the analytics property: itemAnalytics.
      Parameters:
      analytics - the analytics value to set.
      Returns:
      the MicrosoftGraphSite object itself.
    • columns

      Get the columns property: The collection of column definitions reusable across lists under this site.
      Returns:
      the columns value.
    • withColumns

      Set the columns property: The collection of column definitions reusable across lists under this site.
      Parameters:
      columns - the columns value to set.
      Returns:
      the MicrosoftGraphSite object itself.
    • contentTypes

      public List<MicrosoftGraphContentType> contentTypes()
      Get the contentTypes property: The collection of content types defined for this site.
      Returns:
      the contentTypes value.
    • withContentTypes

      public MicrosoftGraphSite withContentTypes(List<MicrosoftGraphContentType> contentTypes)
      Set the contentTypes property: The collection of content types defined for this site.
      Parameters:
      contentTypes - the contentTypes value to set.
      Returns:
      the MicrosoftGraphSite object itself.
    • drive

      public MicrosoftGraphDrive drive()
      Get the drive property: drive.
      Returns:
      the drive value.
    • withDrive

      public MicrosoftGraphSite withDrive(MicrosoftGraphDrive drive)
      Set the drive property: drive.
      Parameters:
      drive - the drive value to set.
      Returns:
      the MicrosoftGraphSite object itself.
    • drives

      public List<MicrosoftGraphDrive> drives()
      Get the drives property: The collection of drives (document libraries) under this site.
      Returns:
      the drives value.
    • withDrives

      public MicrosoftGraphSite withDrives(List<MicrosoftGraphDrive> drives)
      Set the drives property: The collection of drives (document libraries) under this site.
      Parameters:
      drives - the drives value to set.
      Returns:
      the MicrosoftGraphSite object itself.
    • items

      Get the items property: Used to address any item contained in this site. This collection cannot be enumerated.
      Returns:
      the items value.
    • withItems

      Set the items property: Used to address any item contained in this site. This collection cannot be enumerated.
      Parameters:
      items - the items value to set.
      Returns:
      the MicrosoftGraphSite object itself.
    • lists

      public List<MicrosoftGraphList> lists()
      Get the lists property: The collection of lists under this site.
      Returns:
      the lists value.
    • withLists

      public MicrosoftGraphSite withLists(List<MicrosoftGraphList> lists)
      Set the lists property: The collection of lists under this site.
      Parameters:
      lists - the lists value to set.
      Returns:
      the MicrosoftGraphSite object itself.
    • sites

      public List<MicrosoftGraphSite> sites()
      Get the sites property: The collection of the sub-sites under this site.
      Returns:
      the sites value.
    • withSites

      public MicrosoftGraphSite withSites(List<MicrosoftGraphSite> sites)
      Set the sites property: The collection of the sub-sites under this site.
      Parameters:
      sites - the sites value to set.
      Returns:
      the MicrosoftGraphSite object itself.
    • onenote

      public MicrosoftGraphOnenote onenote()
      Get the onenote property: onenote.
      Returns:
      the onenote value.
    • withOnenote

      public MicrosoftGraphSite withOnenote(MicrosoftGraphOnenote onenote)
      Set the onenote property: onenote.
      Parameters:
      onenote - the onenote value to set.
      Returns:
      the MicrosoftGraphSite object itself.
    • additionalProperties

      public Map<String,Object> additionalProperties()
      Get the additionalProperties property: site.
      Overrides:
      additionalProperties in class MicrosoftGraphBaseItemInner
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public MicrosoftGraphSite withAdditionalProperties(Map<String,Object> additionalProperties)
      Set the additionalProperties property: site.
      Overrides:
      withAdditionalProperties in class MicrosoftGraphBaseItemInner
      Parameters:
      additionalProperties - the additionalProperties value to set.
      Returns:
      the MicrosoftGraphSite object itself.
    • withCreatedBy

      public MicrosoftGraphSite withCreatedBy(MicrosoftGraphIdentitySet createdBy)
      Set the createdBy property: identitySet.
      Overrides:
      withCreatedBy in class MicrosoftGraphBaseItemInner
      Parameters:
      createdBy - the createdBy value to set.
      Returns:
      the MicrosoftGraphBaseItemInner object itself.
    • withCreatedDateTime

      public MicrosoftGraphSite withCreatedDateTime(OffsetDateTime createdDateTime)
      Set the createdDateTime property: Date and time of item creation. Read-only.
      Overrides:
      withCreatedDateTime in class MicrosoftGraphBaseItemInner
      Parameters:
      createdDateTime - the createdDateTime value to set.
      Returns:
      the MicrosoftGraphBaseItemInner object itself.
    • withDescription

      public MicrosoftGraphSite withDescription(String description)
      Set the description property: Provides a user-visible description of the item. Optional.
      Overrides:
      withDescription in class MicrosoftGraphBaseItemInner
      Parameters:
      description - the description value to set.
      Returns:
      the MicrosoftGraphBaseItemInner object itself.
    • withEtag

      public MicrosoftGraphSite withEtag(String etag)
      Set the etag property: ETag for the item. Read-only.
      Overrides:
      withEtag in class MicrosoftGraphBaseItemInner
      Parameters:
      etag - the etag value to set.
      Returns:
      the MicrosoftGraphBaseItemInner object itself.
    • withLastModifiedBy

      public MicrosoftGraphSite withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)
      Set the lastModifiedBy property: identitySet.
      Overrides:
      withLastModifiedBy in class MicrosoftGraphBaseItemInner
      Parameters:
      lastModifiedBy - the lastModifiedBy value to set.
      Returns:
      the MicrosoftGraphBaseItemInner object itself.
    • withLastModifiedDateTime

      public MicrosoftGraphSite withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
      Set the lastModifiedDateTime property: Date and time the item was last modified. Read-only.
      Overrides:
      withLastModifiedDateTime in class MicrosoftGraphBaseItemInner
      Parameters:
      lastModifiedDateTime - the lastModifiedDateTime value to set.
      Returns:
      the MicrosoftGraphBaseItemInner object itself.
    • withName

      public MicrosoftGraphSite withName(String name)
      Set the name property: The name of the item. Read-write.
      Overrides:
      withName in class MicrosoftGraphBaseItemInner
      Parameters:
      name - the name value to set.
      Returns:
      the MicrosoftGraphBaseItemInner object itself.
    • withParentReference

      public MicrosoftGraphSite withParentReference(MicrosoftGraphItemReference parentReference)
      Set the parentReference property: itemReference.
      Overrides:
      withParentReference in class MicrosoftGraphBaseItemInner
      Parameters:
      parentReference - the parentReference value to set.
      Returns:
      the MicrosoftGraphBaseItemInner object itself.
    • withWebUrl

      public MicrosoftGraphSite withWebUrl(String webUrl)
      Set the webUrl property: URL that displays the resource in the browser. Read-only.
      Overrides:
      withWebUrl in class MicrosoftGraphBaseItemInner
      Parameters:
      webUrl - the webUrl value to set.
      Returns:
      the MicrosoftGraphBaseItemInner object itself.
    • withCreatedByUser

      public MicrosoftGraphSite withCreatedByUser(MicrosoftGraphUserInner createdByUser)
      Set the createdByUser property: user

      Represents an Azure Active Directory user object.

      Overrides:
      withCreatedByUser in class MicrosoftGraphBaseItemInner
      Parameters:
      createdByUser - the createdByUser value to set.
      Returns:
      the MicrosoftGraphBaseItemInner object itself.
    • withLastModifiedByUser

      public MicrosoftGraphSite withLastModifiedByUser(MicrosoftGraphUserInner lastModifiedByUser)
      Set the lastModifiedByUser property: user

      Represents an Azure Active Directory user object.

      Overrides:
      withLastModifiedByUser in class MicrosoftGraphBaseItemInner
      Parameters:
      lastModifiedByUser - the lastModifiedByUser value to set.
      Returns:
      the MicrosoftGraphBaseItemInner object itself.
    • withId

      public MicrosoftGraphSite withId(String id)
      Set the id property: Read-only.
      Overrides:
      withId in class MicrosoftGraphBaseItemInner
      Parameters:
      id - the id value to set.
      Returns:
      the MicrosoftGraphEntity object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class MicrosoftGraphBaseItemInner
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.