Class AttachmentSession

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataEntityType, com.github.davidmoten.odata.client.ODataType

    public class AttachmentSession
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    • Field Detail

      • content

        protected String content
      • nextExpectedRanges

        protected List<String> nextExpectedRanges
      • nextExpectedRangesNextLink

        protected String nextExpectedRangesNextLink
    • Constructor Detail

      • AttachmentSession

        protected AttachmentSession()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • builderAttachmentSession

        public static AttachmentSession.Builder builderAttachmentSession()
        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 Entity
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class Entity
      • getContent

        public Optional<com.github.davidmoten.odata.client.StreamProvider> getContent()
      • 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)
      • 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)
      • getNextExpectedRanges

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getNextExpectedRanges​(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 Entity
      • patch

        public AttachmentSession patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class Entity
        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 AttachmentSession 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 Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected