Class Onenote

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.Onenote
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

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

    • Onenote

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

    • createFromDiscriminatorValue

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

      @Nullable public List<Notebook> getNotebooks()
      Gets the notebooks property value. The collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable.
      Returns:
      a List<Notebook>
    • getOperations

      @Nullable public List<OnenoteOperation> getOperations()
      Gets the operations property value. The status of OneNote operations. Getting an operations collection isn't supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable.
      Returns:
      a List<OnenoteOperation>
    • getPages

      @Nullable public List<OnenotePage> getPages()
      Gets the pages property value. The pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable.
      Returns:
      a List<OnenotePage>
    • getResources

      @Nullable public List<OnenoteResource> getResources()
      Gets the resources property value. The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable.
      Returns:
      a List<OnenoteResource>
    • getSectionGroups

      @Nullable public List<SectionGroup> getSectionGroups()
      Gets the sectionGroups property value. The section groups in all OneNote notebooks that are owned by the user or group. Read-only. Nullable.
      Returns:
      a List<SectionGroup>
    • getSections

      @Nullable public List<OnenoteSection> getSections()
      Gets the sections property value. The sections in all OneNote notebooks that are owned by the user or group. Read-only. Nullable.
      Returns:
      a List<OnenoteSection>
    • 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 Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setNotebooks

      public void setNotebooks(@Nullable List<Notebook> value)
      Sets the notebooks property value. The collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable.
      Parameters:
      value - Value to set for the notebooks property.
    • setOperations

      public void setOperations(@Nullable List<OnenoteOperation> value)
      Sets the operations property value. The status of OneNote operations. Getting an operations collection isn't supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable.
      Parameters:
      value - Value to set for the operations property.
    • setPages

      public void setPages(@Nullable List<OnenotePage> value)
      Sets the pages property value. The pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable.
      Parameters:
      value - Value to set for the pages property.
    • setResources

      public void setResources(@Nullable List<OnenoteResource> value)
      Sets the resources property value. The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable.
      Parameters:
      value - Value to set for the resources property.
    • setSectionGroups

      public void setSectionGroups(@Nullable List<SectionGroup> value)
      Sets the sectionGroups property value. The section groups in all OneNote notebooks that are owned by the user or group. Read-only. Nullable.
      Parameters:
      value - Value to set for the sectionGroups property.
    • setSections

      public void setSections(@Nullable List<OnenoteSection> value)
      Sets the sections property value. The sections in all OneNote notebooks that are owned by the user or group. Read-only. Nullable.
      Parameters:
      value - Value to set for the sections property.