Package com.microsoft.graph.models
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 Summary
FieldsModifier and TypeFieldDescriptionThe Attachment Type.The Content Id.The Content Type.The Is Inline.The Name.the OData type of the object as returned by the serviceThe Size. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal com.microsoft.graph.serializer.AdditionalDataManager
void
setRawObject
(com.microsoft.graph.serializer.ISerializer serializer, com.google.gson.JsonObject json) Sets the raw JSON object
-
Field Details
-
oDataType
the OData type of the object as returned by the service -
attachmentType
@SerializedName(value="attachmentType", alternate="AttachmentType") @Expose @Nullable public AttachmentType attachmentTypeThe Attachment Type. The type of attachment. Possible values are: file, item, reference. Required. -
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 contentTypeThe Content Type. The nature of the data in the attachment. Optional. -
isInline
The Is Inline. true if the attachment is an inline attachment; otherwise, false. Optional. -
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
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 interfacecom.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 interfacecom.microsoft.graph.serializer.IJsonBackedObject
- Parameters:
serializer
- the serializerjson
- the JSON object to set this object to
-