Package odata.msgraph.client.entity
Class Attachment
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.Attachment
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
FileAttachment,ItemAttachment,ReferenceAttachment
public class Attachment extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Field Summary
Fields Modifier and Type Field Description protected StringcontentTypeprotected BooleanisInlineprotected OffsetDateTimelastModifiedDateTimeprotected Stringnameprotected Integersize-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAttachment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getContentType()Optional<Boolean>getIsInline()Optional<OffsetDateTime>getLastModifiedDateTime()Optional<String>getName()Optional<Integer>getSize()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()Attachmentpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)Attachmentput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()AttachmentwithContentType(String contentType)AttachmentwithIsInline(Boolean isInline)AttachmentwithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)AttachmentwithName(String name)AttachmentwithSize(Integer size)AttachmentwithUnmappedField(String name, Object value)
-
-
-
Field Detail
-
contentType
protected String contentType
-
isInline
protected Boolean isInline
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
name
protected String name
-
size
protected Integer size
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
withContentType
public Attachment withContentType(String contentType)
-
withIsInline
public Attachment withIsInline(Boolean isInline)
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
-
withLastModifiedDateTime
public Attachment withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
-
withName
public Attachment withName(String name)
-
withSize
public Attachment withSize(Integer size)
-
withUnmappedField
public Attachment withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classEntity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public Attachment patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public Attachment put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-