public class Notebook extends Object
https://docs.microsoft.com/en-us/graph/api/resources/notebook?view=graph-rest-1.0 A OneNote notebook.
Constructor and Description |
---|
Notebook() |
Modifier and Type | Method and Description |
---|---|
IdentitySet |
getCreatedBy()
Identity of the user, device, and application which created the item.
|
DateTimeOffset |
getCreatedDateTime()
The date and time when the notebook was created.
|
String |
getDisplayName()
The name of the notebook.
|
String |
getId()
The unique identifier of the notebook.
|
IdentitySet |
getLastModifiedBy()
Identity of the user, device, and application which created the item.
|
DateTimeOffset |
getLastModifiedDateTime()
The date and time when the notebook was last modified.
|
NotebookLinks |
getLinks()
Links for opening the notebook.
|
String |
getSectionGroupsUrl()
The URL for the sectionGroups navigation property, which returns all the section groups in the notebook.
|
String |
getSectionsUrl()
The URL for the sections navigation property, which returns all the sections in the notebook.
|
String |
getSelf()
The endpoint where you can get details about the notebook.
|
int |
getUserRole()
Possible values are: Owner, Contributor, Reader, None.
|
boolean |
isCreatedDateTimeSpecified()
Indicates whether CreatedDateTime property is specified.
|
boolean |
isDefault()
Indicates whether this is the user's default notebook.
|
boolean |
isDefaultSpecified()
Indicates whether IsDefault property is specified.
|
boolean |
isLastModifiedDateTimeSpecified()
Indicates whether LastModifiedDateTime property is specified.
|
Nullable<Boolean> |
isShared()
Indicates whether the notebook is shared.
|
boolean |
isSharedSpecified()
Indicates whether IsShared property is specified.
|
void |
setCreatedDateTimeSpecified(boolean value)
Indicates whether CreatedDateTime property is specified.
|
void |
setDefaultSpecified(boolean value)
Indicates whether IsDefault property is specified.
|
void |
setDisplayName(String value)
The name of the notebook.
|
void |
setLastModifiedDateTimeSpecified(boolean value)
Indicates whether LastModifiedDateTime property is specified.
|
void |
setLinks(NotebookLinks value)
Links for opening the notebook.
|
void |
setSharedSpecified(boolean value)
Indicates whether IsShared property is specified.
|
public final IdentitySet getCreatedBy()
Identity of the user, device, and application which created the item. Read-only.
public final DateTimeOffset getCreatedDateTime()
The date and time when the notebook was created. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Read-only.
public final boolean isCreatedDateTimeSpecified()
Indicates whether CreatedDateTime property is specified.
public final void setCreatedDateTimeSpecified(boolean value)
Indicates whether CreatedDateTime property is specified.
public final String getId()
The unique identifier of the notebook. Read-only.
public final boolean isDefault()
Indicates whether this is the user's default notebook. Read-only.
public final boolean isDefaultSpecified()
Indicates whether IsDefault property is specified.
public final void setDefaultSpecified(boolean value)
Indicates whether IsDefault property is specified.
public final Nullable<Boolean> isShared()
Indicates whether the notebook is shared. If true, the contents of the notebook can be seen by people other than the owner. Read-only.
public final boolean isSharedSpecified()
Indicates whether IsShared property is specified.
public final void setSharedSpecified(boolean value)
Indicates whether IsShared property is specified.
public final IdentitySet getLastModifiedBy()
Identity of the user, device, and application which created the item. Read-only.
public final DateTimeOffset getLastModifiedDateTime()
The date and time when the notebook was last modified. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Read-only.
public final boolean isLastModifiedDateTimeSpecified()
Indicates whether LastModifiedDateTime property is specified.
public final void setLastModifiedDateTimeSpecified(boolean value)
Indicates whether LastModifiedDateTime property is specified.
public final NotebookLinks getLinks()
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.
public final void setLinks(NotebookLinks 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.
public final String getDisplayName()
The name of the notebook.
public final void setDisplayName(String value)
The name of the notebook.
public final String getSectionGroupsUrl()
The URL for the sectionGroups navigation property, which returns all the section groups in the notebook. Read-only.
public final String getSectionsUrl()
The URL for the sections navigation property, which returns all the sections in the notebook. Read-only.
public final String getSelf()
The endpoint where you can get details about the notebook. Read-only.
public final int getUserRole()
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.