Package com.microsoft.graph.models
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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Onenote
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueThe deserialization information for the current modelGets the notebooks property value.Gets the operations property value.getPages()
Gets the pages property value.Gets the resources property value.Gets the sectionGroups property value.Gets the sections property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setNotebooks
(List<Notebook> value) Sets the notebooks property value.void
setOperations
(List<OnenoteOperation> value) Sets the operations property value.void
setPages
(List<OnenotePage> value) Sets the pages property value.void
setResources
(List<OnenoteResource> value) Sets the resources property value.void
setSectionGroups
(List<SectionGroup> value) Sets the sectionGroups property value.void
setSections
(List<OnenoteSection> value) Sets the sections property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
Onenote
public Onenote()Instantiates a newOnenote
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 interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getNotebooks
Gets the notebooks property value. The collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable. -
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
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
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
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
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 -
setNotebooks
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
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
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
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
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
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.
-