你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MicrosoftGraphOnenote Class

public final class MicrosoftGraphOnenote
extends MicrosoftGraphEntity

onenote.

Constructor Summary

Constructor Description
MicrosoftGraphOnenote()

Creates an instance of MicrosoftGraphOnenote class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: onenote.

static MicrosoftGraphOnenote fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphOnenote from the JsonReader.

List<MicrosoftGraphNotebook> notebooks()

Get the notebooks property: The collection of OneNote notebooks that are owned by the user or group.

List<MicrosoftGraphOnenoteOperation> operations()

Get the operations property: The status of OneNote operations.

List<MicrosoftGraphOnenotePage> pages()

Get the pages property: The pages in all OneNote notebooks that are owned by the user or group.

List<MicrosoftGraphOnenoteResource> resources()

Get the resources property: The image and other file resources in OneNote pages.

List<MicrosoftGraphSectionGroup> sectionGroups()

Get the sectionGroups property: The section groups in all OneNote notebooks that are owned by the user or group.

List<MicrosoftGraphOnenoteSection> sections()

Get the sections property: The sections in all OneNote notebooks that are owned by the user or group.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphOnenote withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: onenote.

MicrosoftGraphOnenote withId(String id)

Set the id property: Read-only.

MicrosoftGraphOnenote withNotebooks(List<MicrosoftGraphNotebook> notebooks)

Set the notebooks property: The collection of OneNote notebooks that are owned by the user or group.

MicrosoftGraphOnenote withOperations(List<MicrosoftGraphOnenoteOperation> operations)

Set the operations property: The status of OneNote operations.

MicrosoftGraphOnenote withPages(List<MicrosoftGraphOnenotePage> pages)

Set the pages property: The pages in all OneNote notebooks that are owned by the user or group.

MicrosoftGraphOnenote withResources(List<MicrosoftGraphOnenoteResource> resources)

Set the resources property: The image and other file resources in OneNote pages.

MicrosoftGraphOnenote withSectionGroups(List<MicrosoftGraphSectionGroup> sectionGroups)

Set the sectionGroups property: The section groups in all OneNote notebooks that are owned by the user or group.

MicrosoftGraphOnenote withSections(List<MicrosoftGraphOnenoteSection> sections)

Set the sections property: The sections in all OneNote notebooks that are owned by the user or group.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphOnenote

public MicrosoftGraphOnenote()

Creates an instance of MicrosoftGraphOnenote class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: onenote.

Overrides:

MicrosoftGraphOnenote.additionalProperties()

Returns:

the additionalProperties value.

fromJson

public static MicrosoftGraphOnenote fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphOnenote from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphOnenote if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphOnenote.

notebooks

public List notebooks()

Get the notebooks property: The collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable.

Returns:

the notebooks value.

operations

public List operations()

Get the operations property: The status of OneNote operations. Getting an operations collection is not 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:

the operations value.

pages

public List pages()

Get the pages property: The pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable.

Returns:

the pages value.

resources

public List resources()

Get the resources property: The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable.

Returns:

the resources value.

sectionGroups

public List sectionGroups()

Get the sectionGroups property: The section groups in all OneNote notebooks that are owned by the user or group. Read-only. Nullable.

Returns:

the sectionGroups value.

sections

public List sections()

Get the sections property: The sections in all OneNote notebooks that are owned by the user or group. Read-only. Nullable.

Returns:

the sections value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphOnenote.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphOnenote.validate()

withAdditionalProperties

public MicrosoftGraphOnenote withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: onenote.

Overrides:

MicrosoftGraphOnenote.withAdditionalProperties(Map<String,Object> additionalProperties)

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphOnenote object itself.

withId

public MicrosoftGraphOnenote withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphOnenote.withId(String id)

Parameters:

id

withNotebooks

public MicrosoftGraphOnenote withNotebooks(List notebooks)

Set the notebooks property: The collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable.

Parameters:

notebooks - the notebooks value to set.

Returns:

the MicrosoftGraphOnenote object itself.

withOperations

public MicrosoftGraphOnenote withOperations(List operations)

Set the operations property: The status of OneNote operations. Getting an operations collection is not 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:

operations - the operations value to set.

Returns:

the MicrosoftGraphOnenote object itself.

withPages

public MicrosoftGraphOnenote withPages(List pages)

Set the pages property: The pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable.

Parameters:

pages - the pages value to set.

Returns:

the MicrosoftGraphOnenote object itself.

withResources

public MicrosoftGraphOnenote withResources(List resources)

Set the resources property: The image and other file resources in OneNote pages. Getting a resources collection is not supported, but you can get the binary content of a specific resource. Read-only. Nullable.

Parameters:

resources - the resources value to set.

Returns:

the MicrosoftGraphOnenote object itself.

withSectionGroups

public MicrosoftGraphOnenote withSectionGroups(List sectionGroups)

Set the sectionGroups property: The section groups in all OneNote notebooks that are owned by the user or group. Read-only. Nullable.

Parameters:

sectionGroups - the sectionGroups value to set.

Returns:

the MicrosoftGraphOnenote object itself.

withSections

public MicrosoftGraphOnenote withSections(List sections)

Set the sections property: The sections in all OneNote notebooks that are owned by the user or group. Read-only. Nullable.

Parameters:

sections - the sections value to set.

Returns:

the MicrosoftGraphOnenote object itself.

Applies to