Class Notebook

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

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

    • Notebook

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

    • createFromDiscriminatorValue

      @Nonnull public static Notebook 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 Notebook
    • 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 OnenoteEntityHierarchyModel
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getIsDefault

      @Nullable public Boolean getIsDefault()
      Gets the isDefault property value. Indicates whether this is the user's default notebook. Read-only.
      Returns:
      a Boolean
    • getIsShared

      @Nullable public Boolean getIsShared()
      Gets the isShared property value. Indicates whether the notebook is shared. If true, the contents of the notebook can be seen by people other than the owner. Read-only.
      Returns:
      a Boolean
    • getLinks

      @Nullable public NotebookLinks getLinks()
      Gets the links property value. Links for opening the notebook. The oneNoteClientURL link opens the notebook in the OneNote native client if it's installed. The oneNoteWebURL link opens the notebook in OneNote on the web.
      Returns:
      a NotebookLinks
    • getSectionGroups

      @Nullable public List<SectionGroup> getSectionGroups()
      Gets the sectionGroups property value. The section groups in the notebook. Read-only. Nullable.
      Returns:
      a List<SectionGroup>
    • getSectionGroupsUrl

      @Nullable public String getSectionGroupsUrl()
      Gets the sectionGroupsUrl property value. The URL for the sectionGroups navigation property, which returns all the section groups in the notebook. Read-only.
      Returns:
      a String
    • getSections

      @Nullable public List<OnenoteSection> getSections()
      Gets the sections property value. The sections in the notebook. Read-only. Nullable.
      Returns:
      a List<OnenoteSection>
    • getSectionsUrl

      @Nullable public String getSectionsUrl()
      Gets the sectionsUrl property value. The URL for the sections navigation property, which returns all the sections in the notebook. Read-only.
      Returns:
      a String
    • getUserRole

      @Nullable public OnenoteUserRole getUserRole()
      Gets the userRole property value. Possible values are: Owner, Contributor, Reader, None. Owner represents owner-level access to the notebook. Contributor represents read/write access to the notebook. Reader represents read-only access to the notebook. Read-only.
      Returns:
      a OnenoteUserRole
    • 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 OnenoteEntityHierarchyModel
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setIsDefault

      public void setIsDefault(@Nullable Boolean value)
      Sets the isDefault property value. Indicates whether this is the user's default notebook. Read-only.
      Parameters:
      value - Value to set for the isDefault property.
    • setIsShared

      public void setIsShared(@Nullable Boolean value)
      Sets the isShared property value. Indicates whether the notebook is shared. If true, the contents of the notebook can be seen by people other than the owner. Read-only.
      Parameters:
      value - Value to set for the isShared property.
    • setLinks

      public void setLinks(@Nullable NotebookLinks value)
      Sets the links property value. Links for opening the notebook. The oneNoteClientURL link opens the notebook in the OneNote native client if it's installed. The oneNoteWebURL link opens the notebook in OneNote on the web.
      Parameters:
      value - Value to set for the links property.
    • setSectionGroups

      public void setSectionGroups(@Nullable List<SectionGroup> value)
      Sets the sectionGroups property value. The section groups in the notebook. Read-only. Nullable.
      Parameters:
      value - Value to set for the sectionGroups property.
    • setSectionGroupsUrl

      public void setSectionGroupsUrl(@Nullable String value)
      Sets the sectionGroupsUrl property value. The URL for the sectionGroups navigation property, which returns all the section groups in the notebook. Read-only.
      Parameters:
      value - Value to set for the sectionGroupsUrl property.
    • setSections

      public void setSections(@Nullable List<OnenoteSection> value)
      Sets the sections property value. The sections in the notebook. Read-only. Nullable.
      Parameters:
      value - Value to set for the sections property.
    • setSectionsUrl

      public void setSectionsUrl(@Nullable String value)
      Sets the sectionsUrl property value. The URL for the sections navigation property, which returns all the sections in the notebook. Read-only.
      Parameters:
      value - Value to set for the sectionsUrl property.
    • setUserRole

      public void setUserRole(@Nullable OnenoteUserRole value)
      Sets the userRole property value. Possible values are: Owner, Contributor, Reader, None. Owner represents owner-level access to the notebook. Contributor represents read/write access to the notebook. Reader represents read-only access to the notebook. Read-only.
      Parameters:
      value - Value to set for the userRole property.