public class OnenoteResource extends OnenoteEntityBaseModel implements com.github.davidmoten.odata.client.ODataEntityType
| Modifier and Type | Class and Description |
|---|---|
static class |
OnenoteResource.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected String |
content |
protected String |
contentUrl |
selfchangedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
OnenoteResource() |
| Modifier and Type | Method and Description |
|---|---|
static OnenoteResource.Builder |
builderOnenoteResource()
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<String> |
getContentUrl() |
Optional<com.github.davidmoten.odata.client.StreamProvider> |
getStream()
If suitable metadata found a StreamProvider is returned otherwise returns
Optional.empty(). |
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
OnenoteResource |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
OnenoteResource |
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) |
String |
toString() |
OnenoteResource |
withContentUrl(String contentUrl) |
getSelf, withSelfpublic String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class OnenoteEntityBaseModelpublic static OnenoteResource.Builder builderOnenoteResource()
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityTypegetChangedFields in class OnenoteEntityBaseModelpublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepostInject in class OnenoteEntityBaseModelpublic 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 OnenoteResource withContentUrl(String contentUrl)
public com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class OnenoteEntityBaseModelpublic Optional<com.github.davidmoten.odata.client.StreamProvider> getStream()
Optional.empty(). Normally for a stream to be available this entity
needs to have been hydrated with full metadata. Consider calling the builder
method .metadataFull() when getting this instance (either directly or
as part of a collection).Optional.empty()public OnenoteResource patch()
this with changed fields reset.patch in class OnenoteEntityBaseModelthis with changed fields resetcom.github.davidmoten.odata.client.ClientException - if HTTP response is not as expectedpublic OnenoteResource put()
this
with changed fields reset (they were ignored anyway).put in class OnenoteEntityBaseModelthis with changed fields resetcom.github.davidmoten.odata.client.ClientException - if HTTP response is not as expectedpublic String toString()
toString in class OnenoteEntityBaseModelCopyright © 2018–2020. All rights reserved.