Package odata.msgraph.client.entity
Class Notebook
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class Notebook extends OnenoteEntityHierarchyModel implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNotebook.Builder
-
Field Summary
Fields Modifier and Type Field Description protected BooleanisDefaultprotected BooleanisSharedprotected NotebookLinkslinksprotected List<SectionGroup>sectionGroupsprotected StringsectionGroupsUrlprotected List<OnenoteSection>sectionsprotected StringsectionsUrlprotected OnenoteUserRoleuserRole-
Fields inherited from class odata.msgraph.client.entity.OnenoteEntityHierarchyModel
createdBy, displayName, lastModifiedBy, lastModifiedDateTime
-
Fields inherited from class odata.msgraph.client.entity.OnenoteEntitySchemaObjectModel
createdDateTime
-
Fields inherited from class odata.msgraph.client.entity.OnenoteEntityBaseModel
self
-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNotebook()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Notebook.BuilderbuilderNotebook()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<OnenoteOperation>copyNotebook(String groupId, String renameAs, String notebookFolder, String siteCollectionId, String siteId)com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<Boolean>getIsDefault()Optional<Boolean>getIsShared()Optional<NotebookLinks>getLinks()SectionGroupCollectionRequestgetSectionGroups()Optional<String>getSectionGroupsUrl()OnenoteSectionCollectionRequestgetSections()Optional<String>getSectionsUrl()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<OnenoteUserRole>getUserRole()StringodataTypeName()Notebookpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)Notebookput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()NotebookwithIsDefault(Boolean isDefault)NotebookwithIsShared(Boolean isShared)NotebookwithLinks(NotebookLinks links)NotebookwithSectionGroups(List<SectionGroup> sectionGroups)NotebookwithSectionGroupsUrl(String sectionGroupsUrl)NotebookwithSections(List<OnenoteSection> sections)NotebookwithSectionsUrl(String sectionsUrl)NotebookwithUnmappedField(String name, Object value)NotebookwithUserRole(OnenoteUserRole userRole)-
Methods inherited from class odata.msgraph.client.entity.OnenoteEntityHierarchyModel
getCreatedBy, getDisplayName, getLastModifiedBy, getLastModifiedDateTime, withCreatedBy, withDisplayName, withLastModifiedBy, withLastModifiedDateTime
-
Methods inherited from class odata.msgraph.client.entity.OnenoteEntitySchemaObjectModel
getCreatedDateTime, withCreatedDateTime
-
Methods inherited from class odata.msgraph.client.entity.OnenoteEntityBaseModel
getSelf, withSelf
-
-
-
-
Field Detail
-
isDefault
protected Boolean isDefault
-
isShared
protected Boolean isShared
-
links
protected NotebookLinks links
-
sectionGroupsUrl
protected String sectionGroupsUrl
-
sectionsUrl
protected String sectionsUrl
-
userRole
protected OnenoteUserRole userRole
-
sectionGroups
protected List<SectionGroup> sectionGroups
-
sections
protected List<OnenoteSection> sections
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classOnenoteEntityHierarchyModel
-
builderNotebook
public static Notebook.Builder builderNotebook()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classOnenoteEntityHierarchyModel
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classOnenoteEntityHierarchyModel
-
getLinks
public Optional<NotebookLinks> getLinks()
-
withLinks
public Notebook withLinks(NotebookLinks links)
-
getUserRole
public Optional<OnenoteUserRole> getUserRole()
-
withUserRole
public Notebook withUserRole(OnenoteUserRole userRole)
-
withUnmappedField
public Notebook withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classOnenoteEntityHierarchyModel
-
getSectionGroups
public SectionGroupCollectionRequest getSectionGroups()
-
getSections
public OnenoteSectionCollectionRequest getSections()
-
withSectionGroups
public Notebook withSectionGroups(List<SectionGroup> sectionGroups)
-
withSections
public Notebook withSections(List<OnenoteSection> sections)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classOnenoteEntityHierarchyModel
-
patch
public Notebook patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classOnenoteEntityHierarchyModel- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public Notebook put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classOnenoteEntityHierarchyModel- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
copyNotebook
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<OnenoteOperation> copyNotebook(String groupId, String renameAs, String notebookFolder, String siteCollectionId, String siteId)
-
toString
public String toString()
- Overrides:
toStringin classOnenoteEntityHierarchyModel
-
-