Package com.microsoft.graph.models
Class FileAttachment
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.Attachment
com.microsoft.graph.models.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 Summary
FieldsModifier and TypeFieldDescriptionbyte[]
The Content Bytes.The Content Id.The Content Location.Fields inherited from class com.microsoft.graph.models.Attachment
contentType, isInline, lastModifiedDateTime, name, size
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setRawObject
(com.microsoft.graph.serializer.ISerializer serializer, com.google.gson.JsonObject json) Sets the raw JSON objectMethods inherited from class com.microsoft.graph.models.Entity
additionalDataManager
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.microsoft.graph.serializer.IJsonBackedObject
additionalDataManager
-
Field Details
-
contentBytes
@SerializedName(value="contentBytes", alternate="ContentBytes") @Expose @Nullable public byte[] contentBytesThe Content Bytes. The base64-encoded contents of the file. -
contentId
The Content Id. The ID of the attachment in the Exchange store. -
contentLocation
@SerializedName(value="contentLocation", alternate="ContentLocation") @Expose @Nullable public String contentLocationThe 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 interfacecom.microsoft.graph.serializer.IJsonBackedObject
- Overrides:
setRawObject
in classAttachment
- Parameters:
serializer
- the serializerjson
- the JSON object to set this object to
-