public class Attachment extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
| Modifier and Type | Field and Description |
|---|---|
protected String |
contentType |
protected Boolean |
isInline |
protected OffsetDateTime |
lastModifiedDateTime |
protected String |
name |
protected Integer |
size |
changedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
Attachment() |
| Modifier and Type | Method and Description |
|---|---|
com.github.davidmoten.odata.client.internal.ChangedFields |
getChangedFields() |
Optional<String> |
getContentType() |
Optional<Boolean> |
getIsInline() |
Optional<OffsetDateTime> |
getLastModifiedDateTime() |
Optional<String> |
getName() |
Optional<Integer> |
getSize() |
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
Attachment |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
Attachment |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
String |
toString() |
Attachment |
withContentType(String contentType) |
Attachment |
withIsInline(Boolean isInline) |
Attachment |
withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime) |
Attachment |
withName(String name) |
Attachment |
withSize(Integer size) |
protected OffsetDateTime lastModifiedDateTime
protected String name
protected String contentType
protected Integer size
protected Boolean isInline
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class Entitypublic 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<OffsetDateTime> getLastModifiedDateTime()
public Attachment withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
public Attachment withName(String name)
public Attachment withContentType(String contentType)
public Attachment withSize(Integer size)
public Attachment withIsInline(Boolean isInline)
public com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class Entitypublic Attachment patch()
this with changed fields reset.public Attachment put()
this
with changed fields reset (they were ignored anyway).Copyright © 2018–2020. All rights reserved.