Class FileAttachment

All Implemented Interfaces:
com.microsoft.graph.serializer.IJsonBackedObject

public class FileAttachment extends Attachment implements com.microsoft.graph.serializer.IJsonBackedObject
The class for the File Attachment.
  • Field Details

    • contentBytes

      @SerializedName(value="contentBytes", alternate="ContentBytes") @Expose @Nullable public byte[] contentBytes
      The Content Bytes. The base64-encoded contents of the file.
    • contentId

      @SerializedName(value="contentId", alternate="ContentId") @Expose @Nullable public String contentId
      The Content Id. The ID of the attachment in the Exchange store.
    • contentLocation

      @SerializedName(value="contentLocation", alternate="ContentLocation") @Expose @Nullable public String contentLocation
      The Content Location. Do not use this property as it is not supported.
  • Constructor Details

    • FileAttachment

      public FileAttachment()
  • Method Details

    • 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
      Overrides:
      setRawObject in class Attachment
      Parameters:
      serializer - the serializer
      json - the JSON object to set this object to