Package com.microsoft.graph.models
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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OnenoteSection
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 isDefault property value.getLinks()
Gets the links property value.getPages()
Gets the pages property value.Gets the pagesUrl property value.Gets the parentNotebook property value.Gets the parentSectionGroup property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setIsDefault
(Boolean value) Sets the isDefault property value.void
setLinks
(SectionLinks value) Sets the links property value.void
setPages
(List<OnenotePage> value) Sets the pages property value.void
setPagesUrl
(String value) Sets the pagesUrl property value.void
setParentNotebook
(Notebook value) Sets the parentNotebook property value.void
Sets the parentSectionGroup property value.Methods inherited from class com.microsoft.graph.models.OnenoteEntityHierarchyModel
getCreatedBy, getDisplayName, getLastModifiedBy, getLastModifiedDateTime, setCreatedBy, setDisplayName, setLastModifiedBy, setLastModifiedDateTime
Methods inherited from class com.microsoft.graph.models.OnenoteEntitySchemaObjectModel
getCreatedDateTime, setCreatedDateTime
Methods inherited from class com.microsoft.graph.models.OnenoteEntityBaseModel
getSelf, setSelf
Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
OnenoteSection
public OnenoteSection()Instantiates a newOnenoteSection
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 interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classOnenoteEntityHierarchyModel
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getIsDefault
Gets the isDefault property value. Indicates whether this is the user's default section. Read-only.- Returns:
- a
Boolean
-
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
Gets the pages property value. The collection of pages in the section. Read-only. Nullable.- Returns:
- a
List<OnenotePage>
-
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
Gets the parentNotebook property value. The notebook that contains the section. Read-only.- Returns:
- a
Notebook
-
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 interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
serialize
in classOnenoteEntityHierarchyModel
- Parameters:
writer
- Serialization writer to use to serialize this model
-
setIsDefault
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
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
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
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
Sets the parentNotebook property value. The notebook that contains the section. Read-only.- Parameters:
value
- Value to set for the parentNotebook property.
-
setParentSectionGroup
Sets the parentSectionGroup property value. The section group that contains the section. Read-only.- Parameters:
value
- Value to set for the parentSectionGroup property.
-