Class Thumbnail

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

    public class Thumbnail
    extends Object
    implements com.github.davidmoten.odata.client.ODataType
    • Field Detail

      • contextPath

        protected com.github.davidmoten.odata.client.ContextPath contextPath
      • unmappedFields

        protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
      • odataType

        protected String odataType
      • content

        protected String content
      • sourceItemId

        protected String sourceItemId
    • Constructor Detail

      • Thumbnail

        protected Thumbnail()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
      • 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)
      • withSourceItemId

        public Thumbnail withSourceItemId​(String sourceItemId)
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
      • postInject

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

        public static Thumbnail.Builder builder()
        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