Class OnenoteSection

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

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

    • OnenoteSection

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

    • createFromDiscriminatorValue

      @Nonnull public static OnenoteSection 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 OnenoteSection
    • 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 section. Read-only.
      Returns:
      a Boolean
    • getLinks

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

      @Nullable public List<OnenotePage> getPages()
      Gets the pages property value. The collection of pages in the section. Read-only. Nullable.
      Returns:
      a List<OnenotePage>
    • getPagesUrl

      @Nullable public String getPagesUrl()
      Gets the pagesUrl property value. The pages endpoint where you can get details for all the pages in the section. Read-only.
      Returns:
      a String
    • getParentNotebook

      @Nullable public Notebook getParentNotebook()
      Gets the parentNotebook property value. The notebook that contains the section. Read-only.
      Returns:
      a Notebook
    • getParentSectionGroup

      @Nullable public SectionGroup getParentSectionGroup()
      Gets the parentSectionGroup property value. The section group that contains the section. Read-only.
      Returns:
      a SectionGroup
    • 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 section. Read-only.
      Parameters:
      value - Value to set for the isDefault property.
    • setLinks

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

      public void setPages(@Nullable List<OnenotePage> value)
      Sets the pages property value. The collection of pages in the section. Read-only. Nullable.
      Parameters:
      value - Value to set for the pages property.
    • setPagesUrl

      public void setPagesUrl(@Nullable String value)
      Sets the pagesUrl property value. The pages endpoint where you can get details for all the pages in the section. Read-only.
      Parameters:
      value - Value to set for the pagesUrl property.
    • setParentNotebook

      public void setParentNotebook(@Nullable Notebook value)
      Sets the parentNotebook property value. The notebook that contains the section. Read-only.
      Parameters:
      value - Value to set for the parentNotebook property.
    • setParentSectionGroup

      public void setParentSectionGroup(@Nullable SectionGroup value)
      Sets the parentSectionGroup property value. The section group that contains the section. Read-only.
      Parameters:
      value - Value to set for the parentSectionGroup property.