Package com.independentsoft.graph
Class AttachmentItem
java.lang.Object
com.independentsoft.graph.AttachmentItem
- All Implemented Interfaces:
ICreatable
-
Constructor Summary
ConstructorsConstructorDescriptionAttachmentItem(String filePath)AttachmentItem(String name, AttachmentType type, long size) -
Method Summary
Modifier and TypeMethodDescriptiongetName()longgetSize()getType()booleanisInline()voidsetAsInline(boolean isInline)voidsetContentId(String contentId)voidsetContentType(String contentType)voidvoidsetSize(long size)voidsetType(AttachmentType type)Converts this object to its JSON representation for creation.toString()
-
Constructor Details
-
AttachmentItem
public AttachmentItem() -
AttachmentItem
- Throws:
IOException
-
AttachmentItem
-
-
Method Details
-
toCreateJson
Description copied from interface:ICreatableConverts this object to its JSON representation for creation.This method generates a JSON string containing all properties needed to create a new instance of this resource in Microsoft Graph. Only properties appropriate for creation should be included (e.g., excluding read-only properties like ID, createdTime, etc.).
- Specified by:
toCreateJsonin interfaceICreatable- Returns:
- JSON string representation for creating this resource
-
toString
-
getType
-
setType
-
getContentId
-
setContentId
-
getContentType
-
setContentType
-
isInline
public boolean isInline() -
setAsInline
public void setAsInline(boolean isInline) -
getName
-
setName
-
getSize
public long getSize() -
setSize
public void setSize(long size)
-