Class FileClassificationRequest

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

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

      • sensitiveTypeIds

        protected List<String> sensitiveTypeIds
      • sensitiveTypeIdsNextLink

        protected String sensitiveTypeIdsNextLink
    • Constructor Detail

      • FileClassificationRequest

        protected FileClassificationRequest()
    • Method Detail

      • odataTypeName

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

        public static FileClassificationRequest.Builder builderFileClassificationRequest()
        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
      • getFile

        public Optional<com.github.davidmoten.odata.client.StreamProvider> getFile()
      • patchFile

        public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> patchFile()
        If metadata indicate that the stream is editable then returns a StreamUploader which can be used to upload the stream to the file property, using HTTP PATCH.
        Returns:
        a StreamUploader if upload permitted
      • patchChunkedFile

        public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> patchChunkedFile()
        If metadata indicate that the stream is editable then returns a StreamUploaderChunked which can be used to upload the stream to the file property, using HTTP PATCH.
        Returns:
        a StreamUploaderChunked if upload permitted
      • patchFile

        public <T extends com.github.davidmoten.odata.client.StreamUploader<T>> Optional<T> patchFile​(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
      • postFile

        public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> postFile()
        If metadata indicate that the stream is editable then returns a StreamUploader which can be used to upload the stream to the file property, using HTTP POST.
        Returns:
        a StreamUploader if upload permitted
      • postChunkedFile

        public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> postChunkedFile()
        If metadata indicate that the stream is editable then returns a StreamUploaderChunked which can be used to upload the stream to the file property, using HTTP POST.
        Returns:
        a StreamUploaderChunked if upload permitted
      • postFile

        public <T extends com.github.davidmoten.odata.client.StreamUploader<T>> Optional<T> postFile​(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
      • putFile

        public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> putFile()
        If metadata indicate that the stream is editable then returns a StreamUploader which can be used to upload the stream to the file property, using HTTP PUT.
        Returns:
        a StreamUploader if upload permitted
      • putChunkedFile

        public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> putChunkedFile()
        If metadata indicate that the stream is editable then returns a StreamUploaderChunked which can be used to upload the stream to the file property, using HTTP PUT.
        Returns:
        a StreamUploaderChunked if upload permitted
      • putFile

        public <T extends com.github.davidmoten.odata.client.StreamUploader<T>> Optional<T> putFile​(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
      • getSensitiveTypeIds

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getSensitiveTypeIds​(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 FileClassificationRequest 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 FileClassificationRequest 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