Share via


MailMessageEntity Class

public final class MailMessageEntity
extends Entity

Represents a mail message entity.

Constructor Summary

Constructor Description
MailMessageEntity()

Creates an instance of MailMessageEntity class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalData()

Get the additionalData property: A bag of custom fields that should be part of the entity and will be presented to the user.

AntispamMailDirection antispamDirection()

Get the antispamDirection property: The directionality of this mail message.

Integer bodyFingerprintBin1()

Get the bodyFingerprintBin1 property: The bodyFingerprintBin1.

Integer bodyFingerprintBin2()

Get the bodyFingerprintBin2 property: The bodyFingerprintBin2.

Integer bodyFingerprintBin3()

Get the bodyFingerprintBin3 property: The bodyFingerprintBin3.

Integer bodyFingerprintBin4()

Get the bodyFingerprintBin4 property: The bodyFingerprintBin4.

Integer bodyFingerprintBin5()

Get the bodyFingerprintBin5 property: The bodyFingerprintBin5.

DeliveryAction deliveryAction()

Get the deliveryAction property: The delivery action of this mail message like Delivered, Blocked, Replaced etc.

DeliveryLocation deliveryLocation()

Get the deliveryLocation property: The delivery location of this mail message like Inbox, JunkFolder etc.

List<String> fileEntityIds()

Get the fileEntityIds property: The File entity ids of this mail message's attachments.

String friendlyName()

Get the friendlyName property: The graph item display name which is a short humanly readable description of the graph item instance.

static MailMessageEntity fromJson(JsonReader jsonReader)

Reads an instance of MailMessageEntity from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String internetMessageId()

Get the internetMessageId property: The internet message id of this mail message.

EntityKindEnum kind()

Get the kind property: The kind of the entity.

String language()

Get the language property: The language of this mail message.

String name()

Get the name property: The name of the resource.

UUID networkMessageId()

Get the networkMessageId property: The network message id of this mail message.

String p1Sender()

Get the p1Sender property: The p1 sender's email address.

String p1SenderDisplayName()

Get the p1SenderDisplayName property: The p1 sender's display name.

String p1SenderDomain()

Get the p1SenderDomain property: The p1 sender's domain.

String p2Sender()

Get the p2Sender property: The p2 sender's email address.

String p2SenderDisplayName()

Get the p2SenderDisplayName property: The p2 sender's display name.

String p2SenderDomain()

Get the p2SenderDomain property: The p2 sender's domain.

OffsetDateTime receiveDate()

Get the receiveDate property: The receive date of this message.

String recipient()

Get the recipient property: The recipient of this mail message.

String senderIp()

Get the senderIp property: The sender's IP address.

String subject()

Get the subject property: The subject of this mail message.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

List<String> threatDetectionMethods()

Get the threatDetectionMethods property: The threat detection methods.

List<String> threats()

Get the threats property: The threats of this mail message.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

List<String> urls()

Get the urls property: The Urls contained in this mail message.

void validate()

Validates the instance.

MailMessageEntity withAntispamDirection(AntispamMailDirection antispamDirection)

Set the antispamDirection property: The directionality of this mail message.

MailMessageEntity withBodyFingerprintBin1(Integer bodyFingerprintBin1)

Set the bodyFingerprintBin1 property: The bodyFingerprintBin1.

MailMessageEntity withBodyFingerprintBin2(Integer bodyFingerprintBin2)

Set the bodyFingerprintBin2 property: The bodyFingerprintBin2.

MailMessageEntity withBodyFingerprintBin3(Integer bodyFingerprintBin3)

Set the bodyFingerprintBin3 property: The bodyFingerprintBin3.

MailMessageEntity withBodyFingerprintBin4(Integer bodyFingerprintBin4)

Set the bodyFingerprintBin4 property: The bodyFingerprintBin4.

MailMessageEntity withBodyFingerprintBin5(Integer bodyFingerprintBin5)

Set the bodyFingerprintBin5 property: The bodyFingerprintBin5.

MailMessageEntity withDeliveryAction(DeliveryAction deliveryAction)

Set the deliveryAction property: The delivery action of this mail message like Delivered, Blocked, Replaced etc.

MailMessageEntity withDeliveryLocation(DeliveryLocation deliveryLocation)

Set the deliveryLocation property: The delivery location of this mail message like Inbox, JunkFolder etc.

Methods inherited from Entity

Methods inherited from java.lang.Object

Constructor Details

MailMessageEntity

public MailMessageEntity()

Creates an instance of MailMessageEntity class.

Method Details

additionalData

public Map<String,Object> additionalData()

Get the additionalData property: A bag of custom fields that should be part of the entity and will be presented to the user.

Returns:

the additionalData value.

antispamDirection

public AntispamMailDirection antispamDirection()

Get the antispamDirection property: The directionality of this mail message.

Returns:

the antispamDirection value.

bodyFingerprintBin1

public Integer bodyFingerprintBin1()

Get the bodyFingerprintBin1 property: The bodyFingerprintBin1.

Returns:

the bodyFingerprintBin1 value.

bodyFingerprintBin2

public Integer bodyFingerprintBin2()

Get the bodyFingerprintBin2 property: The bodyFingerprintBin2.

Returns:

the bodyFingerprintBin2 value.

bodyFingerprintBin3

public Integer bodyFingerprintBin3()

Get the bodyFingerprintBin3 property: The bodyFingerprintBin3.

Returns:

the bodyFingerprintBin3 value.

bodyFingerprintBin4

public Integer bodyFingerprintBin4()

Get the bodyFingerprintBin4 property: The bodyFingerprintBin4.

Returns:

the bodyFingerprintBin4 value.

bodyFingerprintBin5

public Integer bodyFingerprintBin5()

Get the bodyFingerprintBin5 property: The bodyFingerprintBin5.

Returns:

the bodyFingerprintBin5 value.

deliveryAction

public DeliveryAction deliveryAction()

Get the deliveryAction property: The delivery action of this mail message like Delivered, Blocked, Replaced etc.

Returns:

the deliveryAction value.

deliveryLocation

public DeliveryLocation deliveryLocation()

Get the deliveryLocation property: The delivery location of this mail message like Inbox, JunkFolder etc.

Returns:

the deliveryLocation value.

fileEntityIds

public List<String> fileEntityIds()

Get the fileEntityIds property: The File entity ids of this mail message's attachments.

Returns:

the fileEntityIds value.

friendlyName

public String friendlyName()

Get the friendlyName property: The graph item display name which is a short humanly readable description of the graph item instance. This property is optional and might be system generated.

Returns:

the friendlyName value.

fromJson

public static MailMessageEntity fromJson(JsonReader jsonReader)

Reads an instance of MailMessageEntity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MailMessageEntity if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

MailMessageEntity.id()

Returns:

the id value.

internetMessageId

public String internetMessageId()

Get the internetMessageId property: The internet message id of this mail message.

Returns:

the internetMessageId value.

kind

public EntityKindEnum kind()

Get the kind property: The kind of the entity.

Overrides:

MailMessageEntity.kind()

Returns:

the kind value.

language

public String language()

Get the language property: The language of this mail message.

Returns:

the language value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

MailMessageEntity.name()

Returns:

the name value.

networkMessageId

public UUID networkMessageId()

Get the networkMessageId property: The network message id of this mail message.

Returns:

the networkMessageId value.

p1Sender

public String p1Sender()

Get the p1Sender property: The p1 sender's email address.

Returns:

the p1Sender value.

p1SenderDisplayName

public String p1SenderDisplayName()

Get the p1SenderDisplayName property: The p1 sender's display name.

Returns:

the p1SenderDisplayName value.

p1SenderDomain

public String p1SenderDomain()

Get the p1SenderDomain property: The p1 sender's domain.

Returns:

the p1SenderDomain value.

p2Sender

public String p2Sender()

Get the p2Sender property: The p2 sender's email address.

Returns:

the p2Sender value.

p2SenderDisplayName

public String p2SenderDisplayName()

Get the p2SenderDisplayName property: The p2 sender's display name.

Returns:

the p2SenderDisplayName value.

p2SenderDomain

public String p2SenderDomain()

Get the p2SenderDomain property: The p2 sender's domain.

Returns:

the p2SenderDomain value.

receiveDate

public OffsetDateTime receiveDate()

Get the receiveDate property: The receive date of this message.

Returns:

the receiveDate value.

recipient

public String recipient()

Get the recipient property: The recipient of this mail message. Note that in case of multiple recipients the mail message is forked and each copy has one recipient.

Returns:

the recipient value.

senderIp

public String senderIp()

Get the senderIp property: The sender's IP address.

Returns:

the senderIp value.

subject

public String subject()

Get the subject property: The subject of this mail message.

Returns:

the subject value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Overrides:

MailMessageEntity.systemData()

Returns:

the systemData value.

threatDetectionMethods

public List<String> threatDetectionMethods()

Get the threatDetectionMethods property: The threat detection methods.

Returns:

the threatDetectionMethods value.

threats

public List<String> threats()

Get the threats property: The threats of this mail message.

Returns:

the threats value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MailMessageEntity.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

MailMessageEntity.type()

Returns:

the type value.

urls

public List<String> urls()

Get the urls property: The Urls contained in this mail message.

Returns:

the urls value.

validate

public void validate()

Validates the instance.

Overrides:

MailMessageEntity.validate()

withAntispamDirection

public MailMessageEntity withAntispamDirection(AntispamMailDirection antispamDirection)

Set the antispamDirection property: The directionality of this mail message.

Parameters:

antispamDirection - the antispamDirection value to set.

Returns:

the MailMessageEntity object itself.

withBodyFingerprintBin1

public MailMessageEntity withBodyFingerprintBin1(Integer bodyFingerprintBin1)

Set the bodyFingerprintBin1 property: The bodyFingerprintBin1.

Parameters:

bodyFingerprintBin1 - the bodyFingerprintBin1 value to set.

Returns:

the MailMessageEntity object itself.

withBodyFingerprintBin2

public MailMessageEntity withBodyFingerprintBin2(Integer bodyFingerprintBin2)

Set the bodyFingerprintBin2 property: The bodyFingerprintBin2.

Parameters:

bodyFingerprintBin2 - the bodyFingerprintBin2 value to set.

Returns:

the MailMessageEntity object itself.

withBodyFingerprintBin3

public MailMessageEntity withBodyFingerprintBin3(Integer bodyFingerprintBin3)

Set the bodyFingerprintBin3 property: The bodyFingerprintBin3.

Parameters:

bodyFingerprintBin3 - the bodyFingerprintBin3 value to set.

Returns:

the MailMessageEntity object itself.

withBodyFingerprintBin4

public MailMessageEntity withBodyFingerprintBin4(Integer bodyFingerprintBin4)

Set the bodyFingerprintBin4 property: The bodyFingerprintBin4.

Parameters:

bodyFingerprintBin4 - the bodyFingerprintBin4 value to set.

Returns:

the MailMessageEntity object itself.

withBodyFingerprintBin5

public MailMessageEntity withBodyFingerprintBin5(Integer bodyFingerprintBin5)

Set the bodyFingerprintBin5 property: The bodyFingerprintBin5.

Parameters:

bodyFingerprintBin5 - the bodyFingerprintBin5 value to set.

Returns:

the MailMessageEntity object itself.

withDeliveryAction

public MailMessageEntity withDeliveryAction(DeliveryAction deliveryAction)

Set the deliveryAction property: The delivery action of this mail message like Delivered, Blocked, Replaced etc.

Parameters:

deliveryAction - the deliveryAction value to set.

Returns:

the MailMessageEntity object itself.

withDeliveryLocation

public MailMessageEntity withDeliveryLocation(DeliveryLocation deliveryLocation)

Set the deliveryLocation property: The delivery location of this mail message like Inbox, JunkFolder etc.

Parameters:

deliveryLocation - the deliveryLocation value to set.

Returns:

the MailMessageEntity object itself.

Applies to