Package com.microsoft.graph.models
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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Notebook
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.Gets the isShared property value.getLinks()
Gets the links property value.Gets the sectionGroups property value.Gets the sectionGroupsUrl property value.Gets the sections property value.Gets the sectionsUrl property value.Gets the userRole property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setIsDefault
(Boolean value) Sets the isDefault property value.void
setIsShared
(Boolean value) Sets the isShared property value.void
setLinks
(NotebookLinks value) Sets the links property value.void
setSectionGroups
(List<SectionGroup> value) Sets the sectionGroups property value.void
setSectionGroupsUrl
(String value) Sets the sectionGroupsUrl property value.void
setSections
(List<OnenoteSection> value) Sets the sections property value.void
setSectionsUrl
(String value) Sets the sectionsUrl property value.void
setUserRole
(OnenoteUserRole value) Sets the userRole 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
-
Notebook
public Notebook()Instantiates a newNotebook
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 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 notebook. Read-only.- Returns:
- a
Boolean
-
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
Gets the sectionGroups property value. The section groups in the notebook. Read-only. Nullable.- Returns:
- a
List<SectionGroup>
-
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
Gets the sections property value. The sections in the notebook. Read-only. Nullable.- Returns:
- a
List<OnenoteSection>
-
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
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 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 notebook. Read-only.- Parameters:
value
- Value to set for the isDefault property.
-
setLinks
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
Sets the sectionGroups property value. The section groups in the notebook. Read-only. Nullable.- Parameters:
value
- Value to set for the sectionGroups property.
-
setSectionGroupsUrl
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
Sets the sections property value. The sections in the notebook. Read-only. Nullable.- Parameters:
value
- Value to set for the sections property.
-
setSectionsUrl
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
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.
-