public class ReferenceAttachment extends Attachment implements com.github.davidmoten.odata.client.ODataEntityType
| Modifier and Type | Class and Description |
|---|---|
static class |
ReferenceAttachment.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
isFolder |
protected ReferenceAttachmentPermission |
permission |
protected String |
previewUrl |
protected ReferenceAttachmentProvider |
providerType |
protected String |
sourceUrl |
protected String |
thumbnailUrl |
contentType, isInline, lastModifiedDateTime, name, sizechangedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
ReferenceAttachment() |
| Modifier and Type | Method and Description |
|---|---|
static ReferenceAttachment.Builder |
builderReferenceAttachment()
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<Boolean> |
getIsFolder() |
Optional<ReferenceAttachmentPermission> |
getPermission() |
Optional<String> |
getPreviewUrl()
Org.OData.Core.V1.IsURL
|
Optional<ReferenceAttachmentProvider> |
getProviderType() |
Optional<String> |
getSourceUrl()
Org.OData.Core.V1.IsURL
|
Optional<String> |
getThumbnailUrl()
Org.OData.Core.V1.IsURL
|
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
ReferenceAttachment |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
ReferenceAttachment |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
String |
toString() |
ReferenceAttachment |
withIsFolder(Boolean isFolder) |
ReferenceAttachment |
withPermission(ReferenceAttachmentPermission permission) |
ReferenceAttachment |
withPreviewUrl(String previewUrl)
Returns an immutable copy of
this with just the previewUrl field
changed. |
ReferenceAttachment |
withProviderType(ReferenceAttachmentProvider providerType) |
ReferenceAttachment |
withSourceUrl(String sourceUrl)
Returns an immutable copy of
this with just the sourceUrl field
changed. |
ReferenceAttachment |
withThumbnailUrl(String thumbnailUrl)
Returns an immutable copy of
this with just the thumbnailUrl
field changed. |
getContentType, getIsInline, getLastModifiedDateTime, getName, getSize, withContentType, withIsInline, withLastModifiedDateTime, withName, withSizeprotected String sourceUrl
protected ReferenceAttachmentProvider providerType
protected String thumbnailUrl
protected String previewUrl
protected ReferenceAttachmentPermission permission
protected Boolean isFolder
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class Attachmentpublic static ReferenceAttachment.Builder builderReferenceAttachment()
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityTypegetChangedFields in class Attachmentpublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepostInject in class Attachmentpublic Optional<String> getSourceUrl()
Org.OData.Core.V1.IsURL
true
public ReferenceAttachment withSourceUrl(String sourceUrl)
this with just the sourceUrl field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
Org.OData.Core.V1.IsURL
true
sourceUrl - new value of sourceUrl field (as defined in service metadata)this with just the sourceUrl field changedpublic Optional<ReferenceAttachmentProvider> getProviderType()
public ReferenceAttachment withProviderType(ReferenceAttachmentProvider providerType)
public Optional<String> getThumbnailUrl()
Org.OData.Core.V1.IsURL
true
public ReferenceAttachment withThumbnailUrl(String thumbnailUrl)
this with just the thumbnailUrl
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
Org.OData.Core.V1.IsURL
true
thumbnailUrl - new value of thumbnailUrl field (as defined in service metadata)this with just the thumbnailUrl field changedpublic Optional<String> getPreviewUrl()
Org.OData.Core.V1.IsURL
true
public ReferenceAttachment withPreviewUrl(String previewUrl)
this with just the previewUrl field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
Org.OData.Core.V1.IsURL
true
previewUrl - new value of previewUrl field (as defined in service metadata)this with just the previewUrl field changedpublic Optional<ReferenceAttachmentPermission> getPermission()
public ReferenceAttachment withPermission(ReferenceAttachmentPermission permission)
public ReferenceAttachment withIsFolder(Boolean isFolder)
public com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class Attachmentpublic ReferenceAttachment patch()
this with changed fields reset.patch in class Attachmentthis with changed fields resetcom.github.davidmoten.odata.client.ClientException - if HTTP response is not as expectedpublic ReferenceAttachment put()
this
with changed fields reset (they were ignored anyway).put in class Attachmentthis with changed fields resetcom.github.davidmoten.odata.client.ClientException - if HTTP response is not as expectedpublic String toString()
toString in class AttachmentCopyright © 2018–2020. All rights reserved.