Package com.microsoft.graph.models
Class Attachment
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.Attachment
- All Implemented Interfaces:
com.microsoft.graph.serializer.IJsonBackedObject
- Direct Known Subclasses:
FileAttachment
,ItemAttachment
,ReferenceAttachment
The class for the Attachment.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe Content Type.The Is Inline.The Last Modified Date Time.The Name.The 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
-
contentType
@SerializedName(value="contentType", alternate="ContentType") @Expose @Nullable public String contentTypeThe Content Type. The MIME type. -
isInline
The Is Inline. true if the attachment is an inline attachment; otherwise, false. -
lastModifiedDateTime
@SerializedName(value="lastModifiedDateTime", alternate="LastModifiedDateTime") @Expose @Nullable public OffsetDateTime lastModifiedDateTimeThe Last Modified Date Time. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z -
name
The Name. The attachment's file name. -
size
The Size. The length of the attachment in bytes.
-
-
Constructor Details
-
Attachment
public Attachment()
-
-
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 classEntity
- Parameters:
serializer
- the serializerjson
- the JSON object to set this object to
-