Class AttachmentItem

java.lang.Object
com.microsoft.graph.models.AttachmentItem
All Implemented Interfaces:
com.microsoft.graph.serializer.IJsonBackedObject

public class AttachmentItem extends Object implements com.microsoft.graph.serializer.IJsonBackedObject
The class for the Attachment Item.
  • Field Details

    • oDataType

      @SerializedName("@odata.type") @Expose @Nullable public String oDataType
      the OData type of the object as returned by the service
    • attachmentType

      @SerializedName(value="attachmentType", alternate="AttachmentType") @Expose @Nullable public AttachmentType attachmentType
      The Attachment Type. The type of attachment. Possible values are: file, item, reference. Required.
    • contentId

      @SerializedName(value="contentId", alternate="ContentId") @Expose @Nullable public String contentId
      The Content Id. The CID or Content-Id of the attachment for referencing in case of in-line attachments using <img src='cid:contentId'> tag in HTML messages. Optional.
    • contentType

      @SerializedName(value="contentType", alternate="ContentType") @Expose @Nullable public String contentType
      The Content Type. The nature of the data in the attachment. Optional.
    • isInline

      @SerializedName(value="isInline", alternate="IsInline") @Expose @Nullable public Boolean isInline
      The Is Inline. true if the attachment is an inline attachment; otherwise, false. Optional.
    • name

      @SerializedName(value="name", alternate="Name") @Expose @Nullable public String name
      The Name. The display name of the attachment. This can be a descriptive string and does not have to be the actual file name. Required.
    • size

      @SerializedName(value="size", alternate="Size") @Expose @Nullable public Long size
      The Size. The length of the attachment in bytes. Required.
  • Constructor Details

    • AttachmentItem

      public AttachmentItem()
  • Method Details

    • additionalDataManager

      @Nonnull public final com.microsoft.graph.serializer.AdditionalDataManager additionalDataManager()
      Specified by:
      additionalDataManager in interface com.microsoft.graph.serializer.IJsonBackedObject
    • setRawObject

      public void setRawObject(@Nonnull com.microsoft.graph.serializer.ISerializer serializer, @Nonnull com.google.gson.JsonObject json)
      Sets the raw JSON object
      Specified by:
      setRawObject in interface com.microsoft.graph.serializer.IJsonBackedObject
      Parameters:
      serializer - the serializer
      json - the JSON object to set this object to