Class ServiceUpdateMessage

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

    public class ServiceUpdateMessage
    extends ServiceAnnouncementBase
    implements com.github.davidmoten.odata.client.ODataEntityType
    • Constructor Detail

      • ServiceUpdateMessage

        protected ServiceUpdateMessage()
    • Method Detail

      • builderServiceUpdateMessage

        public static ServiceUpdateMessage.Builder builderServiceUpdateMessage()
        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 ServiceAnnouncementBase
      • postInject

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

        public Optional<com.github.davidmoten.odata.client.StreamProvider> getAttachmentsArchive()
      • patchAttachmentsArchive

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

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

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

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

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

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

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

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

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

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

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

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

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

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