public class DriveItemVersion extends BaseItemVersion implements com.github.davidmoten.odata.client.ODataEntityType
| Modifier and Type | Class and Description |
|---|---|
static class |
DriveItemVersion.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected String |
content |
protected Long |
size |
lastModifiedBy, lastModifiedDateTime, publicationchangedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
DriveItemVersion() |
| Modifier and Type | Method and Description |
|---|---|
static DriveItemVersion.Builder |
builderDriveItemVersion()
Returns a builder which is used to create a new
instance of this class (given that this class is immutable).
|
com.github.davidmoten.odata.client.internal.ChangedFields |
getChangedFields() |
Optional<com.github.davidmoten.odata.client.StreamProvider> |
getContent() |
Optional<Long> |
getSize() |
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
DriveItemVersion |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
DriveItemVersion |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
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. |
Optional<com.github.davidmoten.odata.client.StreamUploader> |
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. |
<T> T |
putContent(com.github.davidmoten.odata.client.UploadStrategy<T> strategy) |
com.github.davidmoten.odata.client.ActionRequestNoReturn |
restoreVersion() |
String |
toString() |
DriveItemVersion |
withSize(Long size) |
getLastModifiedBy, getLastModifiedDateTime, getPublication, withLastModifiedBy, withLastModifiedDateTime, withPublicationpublic String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class BaseItemVersionpublic static DriveItemVersion.Builder builderDriveItemVersion()
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityTypegetChangedFields in class BaseItemVersionpublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepostInject in class BaseItemVersionpublic Optional<com.github.davidmoten.odata.client.StreamProvider> getContent()
public Optional<com.github.davidmoten.odata.client.StreamUploader> putContent()
StreamUploader which can be used to upload the stream
to the content property.public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> putChunkedContent()
StreamUploaderChunked which can be used to upload the stream
to the content property.public <T> T putContent(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
public DriveItemVersion withSize(Long size)
public com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class BaseItemVersionpublic DriveItemVersion patch()
this with changed fields reset.patch in class BaseItemVersionthis with changed fields resetcom.github.davidmoten.odata.client.ClientException - if HTTP response is not as expectedpublic DriveItemVersion put()
this
with changed fields reset (they were ignored anyway).put in class BaseItemVersionthis with changed fields resetcom.github.davidmoten.odata.client.ClientException - if HTTP response is not as expectedpublic com.github.davidmoten.odata.client.ActionRequestNoReturn restoreVersion()
public String toString()
toString in class BaseItemVersionCopyright © 2018–2020. All rights reserved.