Package odata.msgraph.client.beta.entity
Class OnenotePage
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.OnenoteEntityBaseModel
-
- odata.msgraph.client.beta.entity.OnenoteEntitySchemaObjectModel
-
- odata.msgraph.client.beta.entity.OnenotePage
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class OnenotePage extends OnenoteEntitySchemaObjectModel implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOnenotePage.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Stringcontentprotected StringcontentUrlprotected StringcreatedByAppIdprotected OffsetDateTimelastModifiedDateTimeprotected Integerlevelprotected PageLinkslinksprotected Integerorderprotected Stringtitleprotected List<String>userTagsprotected StringuserTagsNextLink-
Fields inherited from class odata.msgraph.client.beta.entity.OnenoteEntitySchemaObjectModel
createdDateTime
-
Fields inherited from class odata.msgraph.client.beta.entity.OnenoteEntityBaseModel
self
-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedOnenotePage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OnenotePage.BuilderbuilderOnenotePage()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.ChangedFieldsgetChangedFields()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()NotebookRequestgetParentNotebook()OnenoteSectionRequestgetParentSection()Optional<com.github.davidmoten.odata.client.StreamProvider>getStream()If suitable metadata found a StreamProvider is returned otherwise returnsOptional.empty().Optional<String>getTitle()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()com.github.davidmoten.odata.client.CollectionPage<String>getUserTags()com.github.davidmoten.odata.client.CollectionPage<String>getUserTags(com.github.davidmoten.odata.client.HttpRequestOptions options)StringodataTypeName()com.github.davidmoten.odata.client.ActionRequestNoReturnonenotePatchContent(List<OnenotePatchContentCommand> commands)OnenotePagepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.Optional<com.github.davidmoten.odata.client.StreamUploaderChunked>patchChunkedContent()If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thecontentproperty, using HTTP PATCH.Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall>patchContent()If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thecontentproperty, using HTTP PATCH.<T extends com.github.davidmoten.odata.client.StreamUploader<T>>
Optional<T>patchContent(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)Optional<com.github.davidmoten.odata.client.StreamUploaderChunked>postChunkedContent()If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thecontentproperty, using HTTP POST.Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall>postContent()If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thecontentproperty, using HTTP POST.<T extends com.github.davidmoten.odata.client.StreamUploader<T>>
Optional<T>postContent(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)voidpostInject(boolean addKeysToContextPath)com.github.davidmoten.odata.client.FunctionRequestReturningNonCollectionUnwrapped<OnenotePagePreview>preview()OnenotePageput()Submits all fields for update and returns an immutable copy ofthiswith 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 aStreamUploaderChunkedwhich can be used to upload the stream to thecontentproperty, using HTTP PUT.Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall>putContent()If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thecontentproperty, using HTTP PUT.<T extends com.github.davidmoten.odata.client.StreamUploader<T>>
Optional<T>putContent(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)StringtoString()OnenotePagewithContentUrl(String contentUrl)OnenotePagewithCreatedByAppId(String createdByAppId)OnenotePagewithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)OnenotePagewithLevel(Integer level)OnenotePagewithLinks(PageLinks links)OnenotePagewithOrder(Integer order)OnenotePagewithTitle(String title)OnenotePagewithUnmappedField(String name, String value)OnenotePagewithUserTags(List<String> userTags)-
Methods inherited from class odata.msgraph.client.beta.entity.OnenoteEntitySchemaObjectModel
getCreatedDateTime, withCreatedDateTime
-
Methods inherited from class odata.msgraph.client.beta.entity.OnenoteEntityBaseModel
getSelf, withSelf
-
-
-
-
Field Detail
-
content
protected String content
-
contentUrl
protected String contentUrl
-
createdByAppId
protected String createdByAppId
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
level
protected Integer level
-
links
protected PageLinks links
-
order
protected Integer order
-
title
protected String title
-
userTagsNextLink
protected String userTagsNextLink
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classOnenoteEntitySchemaObjectModel
-
builderOnenotePage
public static OnenotePage.Builder builderOnenotePage()
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 classOnenoteEntitySchemaObjectModel
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classOnenoteEntitySchemaObjectModel
-
getContent
public Optional<com.github.davidmoten.odata.client.StreamProvider> getContent()
-
postContent
public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> postContent()
If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thecontentproperty, using HTTP POST.- Returns:
- a StreamUploader if upload permitted
-
postChunkedContent
public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> postChunkedContent()
If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thecontentproperty, using HTTP POST.- Returns:
- a StreamUploaderChunked if upload permitted
-
postContent
public <T extends com.github.davidmoten.odata.client.StreamUploader<T>> Optional<T> postContent(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
-
patchContent
public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> patchContent()
If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thecontentproperty, using HTTP PATCH.- Returns:
- a StreamUploader if upload permitted
-
patchChunkedContent
public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> patchChunkedContent()
If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thecontentproperty, using HTTP PATCH.- Returns:
- a StreamUploaderChunked if upload permitted
-
patchContent
public <T extends com.github.davidmoten.odata.client.StreamUploader<T>> Optional<T> patchContent(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
-
putContent
public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> putContent()
If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thecontentproperty, using HTTP PUT.- Returns:
- a StreamUploader if upload permitted
-
putChunkedContent
public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> putChunkedContent()
If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thecontentproperty, using HTTP PUT.- Returns:
- a StreamUploaderChunked if upload permitted
-
putContent
public <T extends com.github.davidmoten.odata.client.StreamUploader<T>> Optional<T> putContent(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
-
withContentUrl
public OnenotePage withContentUrl(String contentUrl)
-
withCreatedByAppId
public OnenotePage withCreatedByAppId(String createdByAppId)
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
-
withLastModifiedDateTime
public OnenotePage withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
-
withLevel
public OnenotePage withLevel(Integer level)
-
withLinks
public OnenotePage withLinks(PageLinks links)
-
withOrder
public OnenotePage withOrder(Integer order)
-
withTitle
public OnenotePage withTitle(String title)
-
getUserTags
public com.github.davidmoten.odata.client.CollectionPage<String> getUserTags()
-
withUserTags
public OnenotePage withUserTags(List<String> userTags)
-
getUserTags
public com.github.davidmoten.odata.client.CollectionPage<String> getUserTags(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
withUnmappedField
public OnenotePage withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classOnenoteEntitySchemaObjectModel
-
getParentNotebook
public NotebookRequest getParentNotebook()
-
getParentSection
public OnenoteSectionRequest getParentSection()
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classOnenoteEntitySchemaObjectModel
-
getStream
public Optional<com.github.davidmoten.odata.client.StreamProvider> getStream()
If suitable metadata found a StreamProvider is returned otherwise returnsOptional.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).- Returns:
- StreamProvider if suitable metadata found otherwise returns
Optional.empty()
-
patch
public OnenotePage patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classOnenoteEntitySchemaObjectModel- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public OnenotePage put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classOnenoteEntitySchemaObjectModel- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
copyToSection
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<OnenoteOperation> copyToSection(String id, String groupId, String siteCollectionId, String siteId)
-
onenotePatchContent
public com.github.davidmoten.odata.client.ActionRequestNoReturn onenotePatchContent(List<OnenotePatchContentCommand> commands)
-
preview
public com.github.davidmoten.odata.client.FunctionRequestReturningNonCollectionUnwrapped<OnenotePagePreview> preview()
-
toString
public String toString()
- Overrides:
toStringin classOnenoteEntitySchemaObjectModel
-
-