Class 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
    • Constructor Detail

      • OnenotePage

        protected OnenotePage()
    • Method Detail

      • 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:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class OnenoteEntitySchemaObjectModel
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class OnenoteEntitySchemaObjectModel
      • 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 a StreamUploader which can be used to upload the stream to the content property, 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 a StreamUploaderChunked which can be used to upload the stream to the content property, 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 a StreamUploader which can be used to upload the stream to the content property, 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 a StreamUploaderChunked which can be used to upload the stream to the content property, 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 a StreamUploader which can be used to upload the stream to the content property, 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 a StreamUploaderChunked which can be used to upload the stream to the content property, 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)
      • withCreatedByAppId

        public OnenotePage withCreatedByAppId​(String createdByAppId)
      • getUserTags

        public com.github.davidmoten.odata.client.CollectionPage<String> getUserTags()
      • getUserTags

        public com.github.davidmoten.odata.client.CollectionPage<String> getUserTags​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class OnenoteEntitySchemaObjectModel
      • getStream

        public Optional<com.github.davidmoten.odata.client.StreamProvider> getStream()
        If suitable metadata found a StreamProvider is returned otherwise returns 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).
        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 of this with changed fields reset.
        Overrides:
        patch in class OnenoteEntitySchemaObjectModel
        Returns:
        a copy of this with 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 of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class OnenoteEntitySchemaObjectModel
        Returns:
        a copy of this with 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()