public class Picture extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
| Modifier and Type | Class and Description |
|---|---|
static class |
Picture.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected String |
content |
protected String |
contentType |
protected Integer |
height |
protected Integer |
width |
changedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
Picture() |
| Modifier and Type | Method and Description |
|---|---|
static Picture.Builder |
builderPicture()
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> |
getContentType() |
Optional<Integer> |
getHeight() |
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
Optional<Integer> |
getWidth() |
String |
odataTypeName() |
Picture |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
Picture |
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() |
Picture |
withContentType(String contentType) |
Picture |
withHeight(Integer height) |
Picture |
withWidth(Integer width) |
protected Integer width
protected Integer height
protected String contentType
protected String content
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class Entitypublic static Picture.Builder builderPicture()
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityTypegetChangedFields in class Entitypublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepostInject in class Entitypublic 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 com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class Entitypublic Picture patch()
this with changed fields reset.public Picture put()
this
with changed fields reset (they were ignored anyway).Copyright © 2018–2020. All rights reserved.