Class MailMessageEntity
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.securityinsights.fluent.models.EntityInner
-
- com.azure.resourcemanager.securityinsights.models.MailMessageEntity
-
public final class MailMessageEntity extends EntityInner
Represents a mail message entity.
-
-
Constructor Summary
Constructors Constructor Description MailMessageEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.String
internetMessageId()
Get the internetMessageId property: The internet message id of this mail message.String
language()
Get the language property: The language of this mail message.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.List<String>
threatDetectionMethods()
Get the threatDetectionMethods property: The threat detection methods.List<String>
threats()
Get the threats property: The threats of this mail message.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 class com.azure.resourcemanager.securityinsights.fluent.models.EntityInner
systemData
-
-
-
-
Method Detail
-
fileEntityIds
public List<String> fileEntityIds()
Get the fileEntityIds property: The File entity ids of this mail message's attachments.- Returns:
- the fileEntityIds 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.
-
urls
public List<String> urls()
Get the urls property: The Urls contained in this mail message.- Returns:
- the urls value.
-
threats
public List<String> threats()
Get the threats property: The threats of this mail message.- Returns:
- the threats 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.
-
senderIp
public String senderIp()
Get the senderIp property: The sender's IP address.- Returns:
- the senderIp 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.
-
networkMessageId
public UUID networkMessageId()
Get the networkMessageId property: The network message id of this mail message.- Returns:
- the networkMessageId value.
-
internetMessageId
public String internetMessageId()
Get the internetMessageId property: The internet message id of this mail message.- Returns:
- the internetMessageId value.
-
subject
public String subject()
Get the subject property: The subject of this mail message.- Returns:
- the subject value.
-
language
public String language()
Get the language property: The language of this mail message.- Returns:
- the language value.
-
threatDetectionMethods
public List<String> threatDetectionMethods()
Get the threatDetectionMethods property: The threat detection methods.- Returns:
- the threatDetectionMethods value.
-
bodyFingerprintBin1
public Integer bodyFingerprintBin1()
Get the bodyFingerprintBin1 property: The bodyFingerprintBin1.- Returns:
- the bodyFingerprintBin1 value.
-
withBodyFingerprintBin1
public MailMessageEntity withBodyFingerprintBin1(Integer bodyFingerprintBin1)
Set the bodyFingerprintBin1 property: The bodyFingerprintBin1.- Parameters:
bodyFingerprintBin1
- the bodyFingerprintBin1 value to set.- Returns:
- the MailMessageEntity object itself.
-
bodyFingerprintBin2
public Integer bodyFingerprintBin2()
Get the bodyFingerprintBin2 property: The bodyFingerprintBin2.- Returns:
- the bodyFingerprintBin2 value.
-
withBodyFingerprintBin2
public MailMessageEntity withBodyFingerprintBin2(Integer bodyFingerprintBin2)
Set the bodyFingerprintBin2 property: The bodyFingerprintBin2.- Parameters:
bodyFingerprintBin2
- the bodyFingerprintBin2 value to set.- Returns:
- the MailMessageEntity object itself.
-
bodyFingerprintBin3
public Integer bodyFingerprintBin3()
Get the bodyFingerprintBin3 property: The bodyFingerprintBin3.- Returns:
- the bodyFingerprintBin3 value.
-
withBodyFingerprintBin3
public MailMessageEntity withBodyFingerprintBin3(Integer bodyFingerprintBin3)
Set the bodyFingerprintBin3 property: The bodyFingerprintBin3.- Parameters:
bodyFingerprintBin3
- the bodyFingerprintBin3 value to set.- Returns:
- the MailMessageEntity object itself.
-
bodyFingerprintBin4
public Integer bodyFingerprintBin4()
Get the bodyFingerprintBin4 property: The bodyFingerprintBin4.- Returns:
- the bodyFingerprintBin4 value.
-
withBodyFingerprintBin4
public MailMessageEntity withBodyFingerprintBin4(Integer bodyFingerprintBin4)
Set the bodyFingerprintBin4 property: The bodyFingerprintBin4.- Parameters:
bodyFingerprintBin4
- the bodyFingerprintBin4 value to set.- Returns:
- the MailMessageEntity object itself.
-
bodyFingerprintBin5
public Integer bodyFingerprintBin5()
Get the bodyFingerprintBin5 property: The bodyFingerprintBin5.- Returns:
- the bodyFingerprintBin5 value.
-
withBodyFingerprintBin5
public MailMessageEntity withBodyFingerprintBin5(Integer bodyFingerprintBin5)
Set the bodyFingerprintBin5 property: The bodyFingerprintBin5.- Parameters:
bodyFingerprintBin5
- the bodyFingerprintBin5 value to set.- Returns:
- the MailMessageEntity object itself.
-
antispamDirection
public AntispamMailDirection antispamDirection()
Get the antispamDirection property: The directionality of this mail message.- Returns:
- the antispamDirection value.
-
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.
-
deliveryAction
public DeliveryAction deliveryAction()
Get the deliveryAction property: The delivery action of this mail message like Delivered, Blocked, Replaced etc.- Returns:
- the deliveryAction value.
-
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.
-
deliveryLocation
public DeliveryLocation deliveryLocation()
Get the deliveryLocation property: The delivery location of this mail message like Inbox, JunkFolder etc.- Returns:
- the deliveryLocation value.
-
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.
-
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.
-
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.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classEntityInner
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-