public class OnenotePage extends OnenoteEntitySchemaObjectModel implements com.github.davidmoten.odata.client.ODataEntityType
| Modifier and Type | Class and Description |
|---|---|
static class |
OnenotePage.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected String |
content |
protected String |
contentUrl |
protected String |
createdByAppId |
protected OffsetDateTime |
lastModifiedDateTime |
protected Integer |
level |
protected PageLinks |
links |
protected Integer |
order |
protected String |
title |
protected List<String> |
userTags |
protected String |
userTagsNextLink |
createdDateTimeselfchangedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
OnenotePage() |
| Modifier and Type | Method and Description |
|---|---|
static OnenotePage.Builder |
builderOnenotePage()
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> |
copyToSection(String id,
String groupId,
String siteCollectionId,
String siteId) |
com.github.davidmoten.odata.client.internal.ChangedFields |
getChangedFields() |
Optional<com.github.davidmoten.odata.client.StreamProvider> |
getContent() |
Optional<String> |
getContentUrl() |
Optional<String> |
getCreatedByAppId() |
Optional<OffsetDateTime> |
getLastModifiedDateTime() |
Optional<Integer> |
getLevel() |
Optional<PageLinks> |
getLinks() |
Optional<Integer> |
getOrder() |
NotebookRequest |
getParentNotebook() |
OnenoteSectionRequest |
getParentSection() |
Optional<com.github.davidmoten.odata.client.StreamProvider> |
getStream()
If suitable metadata found a StreamProvider is returned otherwise returns
Optional.empty(). |
Optional<String> |
getTitle() |
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
com.github.davidmoten.odata.client.CollectionPage<String> |
getUserTags() |
com.github.davidmoten.odata.client.CollectionPage<String> |
getUserTags(com.github.davidmoten.odata.client.HttpRequestOptions options) |
String |
odataTypeName() |
com.github.davidmoten.odata.client.ActionRequestNoReturn |
onenotePatchContent(List<OnenotePatchContentCommand> commands) |
OnenotePage |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
com.github.davidmoten.odata.client.FunctionRequestReturningNonCollectionUnwrapped<OnenotePagePreview> |
preview() |
OnenotePage |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> |
putChunkedContent()
If metadata indicate that the stream is editable then returns
a
StreamUploaderChunked which can be used to upload the stream
to the content property. |
Optional<com.github.davidmoten.odata.client.StreamUploader> |
putContent()
If metadata indicate that the stream is editable then returns
a
StreamUploader which can be used to upload the stream
to the content property. |
<T> T |
putContent(com.github.davidmoten.odata.client.UploadStrategy<T> strategy) |
String |
toString() |
OnenotePage |
withContentUrl(String contentUrl) |
OnenotePage |
withCreatedByAppId(String createdByAppId) |
OnenotePage |
withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime) |
OnenotePage |
withLevel(Integer level) |
OnenotePage |
withLinks(PageLinks links) |
OnenotePage |
withOrder(Integer order) |
OnenotePage |
withTitle(String title) |
getCreatedDateTime, withCreatedDateTimegetSelf, withSelfprotected String title
protected String createdByAppId
protected PageLinks links
protected String contentUrl
protected String content
protected OffsetDateTime lastModifiedDateTime
protected Integer level
protected Integer order
protected String userTagsNextLink
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class OnenoteEntitySchemaObjectModelpublic static OnenotePage.Builder builderOnenotePage()
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityTypegetChangedFields in class OnenoteEntitySchemaObjectModelpublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepostInject in class OnenoteEntitySchemaObjectModelpublic OnenotePage withTitle(String title)
public OnenotePage withCreatedByAppId(String createdByAppId)
public OnenotePage withLinks(PageLinks links)
public OnenotePage withContentUrl(String contentUrl)
public Optional<com.github.davidmoten.odata.client.StreamProvider> getContent()
public Optional<com.github.davidmoten.odata.client.StreamUploader> putContent()
StreamUploader which can be used to upload the stream
to the content property.public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> putChunkedContent()
StreamUploaderChunked which can be used to upload the stream
to the content property.public <T> T putContent(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
public Optional<OffsetDateTime> getLastModifiedDateTime()
public OnenotePage withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
public OnenotePage withLevel(Integer level)
public OnenotePage withOrder(Integer order)
public com.github.davidmoten.odata.client.CollectionPage<String> getUserTags()
public com.github.davidmoten.odata.client.CollectionPage<String> getUserTags(com.github.davidmoten.odata.client.HttpRequestOptions options)
public OnenoteSectionRequest getParentSection()
public NotebookRequest getParentNotebook()
public com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class OnenoteEntitySchemaObjectModelpublic Optional<com.github.davidmoten.odata.client.StreamProvider> getStream()
Optional.empty(). Normally for a stream to be available this entity
needs to have been hydrated with full metadata. Consider calling the builder
method .metadataFull() when getting this instance (either directly or
as part of a collection).Optional.empty()public OnenotePage patch()
this with changed fields reset.patch in class OnenoteEntitySchemaObjectModelthis with changed fields resetcom.github.davidmoten.odata.client.ClientException - if HTTP response is not as expectedpublic OnenotePage put()
this
with changed fields reset (they were ignored anyway).put in class OnenoteEntitySchemaObjectModelthis with changed fields resetcom.github.davidmoten.odata.client.ClientException - if HTTP response is not as expectedpublic com.github.davidmoten.odata.client.ActionRequestNoReturn onenotePatchContent(List<OnenotePatchContentCommand> commands)
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<OnenoteOperation> copyToSection(String id, String groupId, String siteCollectionId, String siteId)
public com.github.davidmoten.odata.client.FunctionRequestReturningNonCollectionUnwrapped<OnenotePagePreview> preview()
public String toString()
toString in class OnenoteEntitySchemaObjectModelCopyright © 2018–2020. All rights reserved.