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

MicrosoftGraphOnenotePage Class

public final class MicrosoftGraphOnenotePage
extends MicrosoftGraphOnenoteEntitySchemaObjectModel

onenotePage.

Constructor Summary

Constructor Description
MicrosoftGraphOnenotePage()

Creates an instance of MicrosoftGraphOnenotePage class.

Method Summary

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

Get the additionalProperties property: onenotePage.

byte[] content()

Get the content property: The page's HTML content.

String contentUrl()

Get the contentUrl property: The URL for the page's HTML content.

String createdByAppId()

Get the createdByAppId property: The unique identifier of the application that created the page.

static MicrosoftGraphOnenotePage fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphOnenotePage from the JsonReader.

OffsetDateTime lastModifiedDateTime()

Get the lastModifiedDateTime property: The date and time when the page was last modified.

Integer level()

Get the level property: The indentation level of the page.

MicrosoftGraphPageLinks links()

Get the links property: pageLinks.

Integer order()

Get the order property: The order of the page within its parent section.

MicrosoftGraphNotebook parentNotebook()

Get the parentNotebook property: notebook.

MicrosoftGraphOnenoteSection parentSection()

Get the parentSection property: onenoteSection.

String title()

Get the title property: The title of the page.

JsonWriter toJson(JsonWriter jsonWriter)
List<String> userTags()

Get the userTags property: The userTags property.

void validate()

Validates the instance.

MicrosoftGraphOnenotePage withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: onenotePage.

MicrosoftGraphOnenotePage withContent(byte[] content)

Set the content property: The page's HTML content.

MicrosoftGraphOnenotePage withContentUrl(String contentUrl)

Set the contentUrl property: The URL for the page's HTML content.

MicrosoftGraphOnenotePage withCreatedByAppId(String createdByAppId)

Set the createdByAppId property: The unique identifier of the application that created the page.

MicrosoftGraphOnenotePage withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: The date and time when the page was created.

MicrosoftGraphOnenotePage withId(String id)

Set the id property: Read-only.

MicrosoftGraphOnenotePage withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Set the lastModifiedDateTime property: The date and time when the page was last modified.

MicrosoftGraphOnenotePage withLevel(Integer level)

Set the level property: The indentation level of the page.

MicrosoftGraphOnenotePage withLinks(MicrosoftGraphPageLinks links)

Set the links property: pageLinks.

MicrosoftGraphOnenotePage withOrder(Integer order)

Set the order property: The order of the page within its parent section.

MicrosoftGraphOnenotePage withParentNotebook(MicrosoftGraphNotebook parentNotebook)

Set the parentNotebook property: notebook.

MicrosoftGraphOnenotePage withParentSection(MicrosoftGraphOnenoteSection parentSection)

Set the parentSection property: onenoteSection.

MicrosoftGraphOnenotePage withSelf(String self)

Set the self property: The endpoint where you can get details about the page.

MicrosoftGraphOnenotePage withTitle(String title)

Set the title property: The title of the page.

MicrosoftGraphOnenotePage withUserTags(List<String> userTags)

Set the userTags property: The userTags property.

Methods inherited from MicrosoftGraphEntity

id

Methods inherited from MicrosoftGraphOnenoteEntityBaseModel

Methods inherited from MicrosoftGraphOnenoteEntitySchemaObjectModel

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphOnenotePage

public MicrosoftGraphOnenotePage()

Creates an instance of MicrosoftGraphOnenotePage class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: onenotePage.

Overrides:

MicrosoftGraphOnenotePage.additionalProperties()

Returns:

the additionalProperties value.

content

public byte[] content()

Get the content property: The page's HTML content.

Returns:

the content value.

contentUrl

public String contentUrl()

Get the contentUrl property: The URL for the page's HTML content. Read-only.

Returns:

the contentUrl value.

createdByAppId

public String createdByAppId()

Get the createdByAppId property: The unique identifier of the application that created the page. Read-only.

Returns:

the createdByAppId value.

fromJson

public static MicrosoftGraphOnenotePage fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphOnenotePage from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphOnenotePage 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 MicrosoftGraphOnenotePage.

lastModifiedDateTime

public OffsetDateTime lastModifiedDateTime()

Get the lastModifiedDateTime property: The date and time when the page 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.

Returns:

the lastModifiedDateTime value.

level

public Integer level()

Get the level property: The indentation level of the page. Read-only.

Returns:

the level value.

links

public MicrosoftGraphPageLinks links()

Get the links property: pageLinks.

Returns:

the links value.

order

public Integer order()

Get the order property: The order of the page within its parent section. Read-only.

Returns:

the order value.

parentNotebook

public MicrosoftGraphNotebook parentNotebook()

Get the parentNotebook property: notebook.

Returns:

the parentNotebook value.

parentSection

public MicrosoftGraphOnenoteSection parentSection()

Get the parentSection property: onenoteSection.

Returns:

the parentSection value.

title

public String title()

Get the title property: The title of the page.

Returns:

the title value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphOnenotePage.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

userTags

public List userTags()

Get the userTags property: The userTags property.

Returns:

the userTags value.

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphOnenotePage.validate()

withAdditionalProperties

public MicrosoftGraphOnenotePage withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: onenotePage.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphOnenotePage object itself.

withContent

public MicrosoftGraphOnenotePage withContent(byte[] content)

Set the content property: The page's HTML content.

Parameters:

content - the content value to set.

Returns:

the MicrosoftGraphOnenotePage object itself.

withContentUrl

public MicrosoftGraphOnenotePage withContentUrl(String contentUrl)

Set the contentUrl property: The URL for the page's HTML content. Read-only.

Parameters:

contentUrl - the contentUrl value to set.

Returns:

the MicrosoftGraphOnenotePage object itself.

withCreatedByAppId

public MicrosoftGraphOnenotePage withCreatedByAppId(String createdByAppId)

Set the createdByAppId property: The unique identifier of the application that created the page. Read-only.

Parameters:

createdByAppId - the createdByAppId value to set.

Returns:

the MicrosoftGraphOnenotePage object itself.

withCreatedDateTime

public MicrosoftGraphOnenotePage withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: The date and time when the page 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.

Overrides:

MicrosoftGraphOnenotePage.withCreatedDateTime(OffsetDateTime createdDateTime)

Parameters:

createdDateTime

withId

public MicrosoftGraphOnenotePage withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphOnenotePage.withId(String id)

Parameters:

id

withLastModifiedDateTime

public MicrosoftGraphOnenotePage withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Set the lastModifiedDateTime property: The date and time when the page 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.

Parameters:

lastModifiedDateTime - the lastModifiedDateTime value to set.

Returns:

the MicrosoftGraphOnenotePage object itself.

withLevel

public MicrosoftGraphOnenotePage withLevel(Integer level)

Set the level property: The indentation level of the page. Read-only.

Parameters:

level - the level value to set.

Returns:

the MicrosoftGraphOnenotePage object itself.

withLinks

public MicrosoftGraphOnenotePage withLinks(MicrosoftGraphPageLinks links)

Set the links property: pageLinks.

Parameters:

links - the links value to set.

Returns:

the MicrosoftGraphOnenotePage object itself.

withOrder

public MicrosoftGraphOnenotePage withOrder(Integer order)

Set the order property: The order of the page within its parent section. Read-only.

Parameters:

order - the order value to set.

Returns:

the MicrosoftGraphOnenotePage object itself.

withParentNotebook

public MicrosoftGraphOnenotePage withParentNotebook(MicrosoftGraphNotebook parentNotebook)

Set the parentNotebook property: notebook.

Parameters:

parentNotebook - the parentNotebook value to set.

Returns:

the MicrosoftGraphOnenotePage object itself.

withParentSection

public MicrosoftGraphOnenotePage withParentSection(MicrosoftGraphOnenoteSection parentSection)

Set the parentSection property: onenoteSection.

Parameters:

parentSection - the parentSection value to set.

Returns:

the MicrosoftGraphOnenotePage object itself.

withSelf

public MicrosoftGraphOnenotePage withSelf(String self)

Set the self property: The endpoint where you can get details about the page. Read-only.

Overrides:

MicrosoftGraphOnenotePage.withSelf(String self)

Parameters:

self

withTitle

public MicrosoftGraphOnenotePage withTitle(String title)

Set the title property: The title of the page.

Parameters:

title - the title value to set.

Returns:

the MicrosoftGraphOnenotePage object itself.

withUserTags

public MicrosoftGraphOnenotePage withUserTags(List userTags)

Set the userTags property: The userTags property.

Parameters:

userTags - the userTags value to set.

Returns:

the MicrosoftGraphOnenotePage object itself.

Applies to