Package microsoft.dynamics.crm.entity
Class Attachment
- java.lang.Object
-
- microsoft.dynamics.crm.entity.Crmbaseentity
-
- microsoft.dynamics.crm.entity.Attachment
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class Attachment extends Crmbaseentity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAttachment.Builder
-
Field Summary
Fields Modifier and Type Field Description protected UUIDattachmentidprotected Stringbodyprotected byte[]body_binaryprotected Stringfilenameprotected Integerfilesizeprotected Stringmimetypeprotected Stringprefixprotected Stringsubjectprotected Longversionnumber-
Fields inherited from class microsoft.dynamics.crm.entity.Crmbaseentity
changedFields, contextPath, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAttachment()
-
Method Summary
-
-
-
Field Detail
-
mimetype
protected String mimetype
-
filename
protected String filename
-
prefix
protected String prefix
-
attachmentid
protected UUID attachmentid
-
body
protected String body
-
body_binary
protected byte[] body_binary
-
filesize
protected Integer filesize
-
subject
protected String subject
-
versionnumber
protected Long versionnumber
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classCrmbaseentity
-
builderAttachment
public static Attachment.Builder builderAttachment()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classCrmbaseentity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classCrmbaseentity
-
withMimetype
public Attachment withMimetype(String mimetype)
-
withFilename
public Attachment withFilename(String filename)
-
withPrefix
public Attachment withPrefix(String prefix)
-
withAttachmentid
public Attachment withAttachmentid(UUID attachmentid)
-
withBody
public Attachment withBody(String body)
-
getBody_binary
public Optional<byte[]> getBody_binary()
-
withBody_binary
public Attachment withBody_binary(byte[] body_binary)
-
withFilesize
public Attachment withFilesize(Integer filesize)
-
withSubject
public Attachment withSubject(String subject)
-
withVersionnumber
public Attachment withVersionnumber(Long versionnumber)
-
withUnmappedField
public Attachment withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classCrmbaseentity
-
getAttachment_SyncErrors
public SyncerrorCollectionRequest getAttachment_SyncErrors()
-
getAttachment_activity_mime_attachments
public ActivitymimeattachmentCollectionRequest getAttachment_activity_mime_attachments()
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classCrmbaseentity
-
patch
public Attachment patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classCrmbaseentity- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public Attachment put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classCrmbaseentity- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
toString
public String toString()
- Overrides:
toStringin classCrmbaseentity
-
-