Package com.independentsoft.graph

# Class ItemAttachment

java.lang.Object
com.independentsoft.graph.Attachment
com.independentsoft.graph.ItemAttachment

All Implemented Interfaces:
  `ICreatable`

public class ItemAttachment extends Attachment
Represents an Outlook item attached to a message, event, or post in Microsoft Graph.

An ItemAttachment wraps another Outlook item – such as a message, event, or contact – as an attachment. It is one of the concrete `Attachment` types.

Since:
  1.0
See Also:
  itemAttachment resource type, `Attachment`, `FileAttachment`

- ## Field Summary

  ### Fields inherited from class com.independentsoft.graph.Attachment

  `contentType, id, isInline, lastModifiedTime, name, size`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ItemAttachment()`
  `ItemAttachment​(JsonObject jsonObject)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `toCreateJson()`
  Generates JSON representation for creating this attachment.

  ### Methods inherited from class com.independentsoft.graph.Attachment

  `getContentType, getId, getLastModifiedTime, getName, getSize, isInline, setContentType, setInline, setName`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ItemAttachment

    public ItemAttachment()

  - ### ItemAttachment

    public ItemAttachment​(JsonObject jsonObject)

- ## Method Details

  - ### toCreateJson

    public String toCreateJson()
    Description copied from class: `Attachment`
    Generates JSON representation for creating this attachment.
    Specified by:
      `toCreateJson` in interface `ICreatable`
    Specified by:
      `toCreateJson` in class `Attachment`
    Returns:
      JSON string for creation