MicrosoftGraphMessageRulePredicates Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphMessageRulePredicates

Implements

public final class MicrosoftGraphMessageRulePredicates
implements JsonSerializable<MicrosoftGraphMessageRulePredicates>

messageRulePredicates.

Constructor Summary

Constructor Description
MicrosoftGraphMessageRulePredicates()

Creates an instance of MicrosoftGraphMessageRulePredicates class.

Method Summary

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

Get the additionalProperties property: messageRulePredicates.

List<String> bodyContains()

Get the bodyContains property: Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply.

List<String> bodyOrSubjectContains()

Get the bodyOrSubjectContains property: Represents the strings that should appear in the body or subject of an incoming message in order for the condition or exception to apply.

List<String> categories()

Get the categories property: Represents the categories that an incoming message should be labeled with in order for the condition or exception to apply.

List<MicrosoftGraphRecipient> fromAddresses()

Get the fromAddresses property: Represents the specific sender email addresses of an incoming message in order for the condition or exception to apply.

static MicrosoftGraphMessageRulePredicates fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphMessageRulePredicates from the JsonReader.

Boolean hasAttachments()

Get the hasAttachments property: Indicates whether an incoming message must have attachments in order for the condition or exception to apply.

List<String> headerContains()

Get the headerContains property: Represents the strings that appear in the headers of an incoming message in order for the condition or exception to apply.

MicrosoftGraphImportance importance()

Get the importance property: importance.

Boolean isApprovalRequest()

Get the isApprovalRequest property: Indicates whether an incoming message must be an approval request in order for the condition or exception to apply.

Boolean isAutomaticForward()

Get the isAutomaticForward property: Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply.

Boolean isAutomaticReply()

Get the isAutomaticReply property: Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply.

Boolean isEncrypted()

Get the isEncrypted property: Indicates whether an incoming message must be encrypted in order for the condition or exception to apply.

Boolean isMeetingRequest()

Get the isMeetingRequest property: Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply.

Boolean isMeetingResponse()

Get the isMeetingResponse property: Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply.

Boolean isNonDeliveryReport()

Get the isNonDeliveryReport property: Indicates whether an incoming message must be a non-delivery report in order for the condition or exception to apply.

Boolean isPermissionControlled()

Get the isPermissionControlled property: Indicates whether an incoming message must be permission controlled (RMS-protected) in order for the condition or exception to apply.

Boolean isReadReceipt()

Get the isReadReceipt property: Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply.

Boolean isSigned()

Get the isSigned property: Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply.

Boolean isVoicemail()

Get the isVoicemail property: Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply.

MicrosoftGraphMessageActionFlag messageActionFlag()

Get the messageActionFlag property: messageActionFlag.

Boolean notSentToMe()

Get the notSentToMe property: Indicates whether the owner of the mailbox must not be a recipient of an incoming message in order for the condition or exception to apply.

List<String> recipientContains()

Get the recipientContains property: Represents the strings that appear in either the toRecipients or ccRecipients properties of an incoming message in order for the condition or exception to apply.

List<String> senderContains()

Get the senderContains property: Represents the strings that appear in the from property of an incoming message in order for the condition or exception to apply.

MicrosoftGraphSensitivity sensitivity()

Get the sensitivity property: sensitivity.

Boolean sentCcMe()

Get the sentCcMe property: Indicates whether the owner of the mailbox must be in the ccRecipients property of an incoming message in order for the condition or exception to apply.

Boolean sentOnlyToMe()

Get the sentOnlyToMe property: Indicates whether the owner of the mailbox must be the only recipient in an incoming message in order for the condition or exception to apply.

List<MicrosoftGraphRecipient> sentToAddresses()

Get the sentToAddresses property: Represents the email addresses that an incoming message must have been sent to in order for the condition or exception to apply.

Boolean sentToMe()

Get the sentToMe property: Indicates whether the owner of the mailbox must be in the toRecipients property of an incoming message in order for the condition or exception to apply.

Boolean sentToOrCcMe()

Get the sentToOrCcMe property: Indicates whether the owner of the mailbox must be in either a toRecipients or ccRecipients property of an incoming message in order for the condition or exception to apply.

List<String> subjectContains()

Get the subjectContains property: Represents the strings that appear in the subject of an incoming message in order for the condition or exception to apply.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphMessageRulePredicates withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: messageRulePredicates.

MicrosoftGraphMessageRulePredicates withBodyContains(List<String> bodyContains)

Set the bodyContains property: Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply.

MicrosoftGraphMessageRulePredicates withBodyOrSubjectContains(List<String> bodyOrSubjectContains)

Set the bodyOrSubjectContains property: Represents the strings that should appear in the body or subject of an incoming message in order for the condition or exception to apply.

MicrosoftGraphMessageRulePredicates withCategories(List<String> categories)

Set the categories property: Represents the categories that an incoming message should be labeled with in order for the condition or exception to apply.

MicrosoftGraphMessageRulePredicates withFromAddresses(List<MicrosoftGraphRecipient> fromAddresses)

Set the fromAddresses property: Represents the specific sender email addresses of an incoming message in order for the condition or exception to apply.

MicrosoftGraphMessageRulePredicates withHasAttachments(Boolean hasAttachments)

Set the hasAttachments property: Indicates whether an incoming message must have attachments in order for the condition or exception to apply.

MicrosoftGraphMessageRulePredicates withHeaderContains(List<String> headerContains)

Set the headerContains property: Represents the strings that appear in the headers of an incoming message in order for the condition or exception to apply.

MicrosoftGraphMessageRulePredicates withImportance(MicrosoftGraphImportance importance)

Set the importance property: importance.

MicrosoftGraphMessageRulePredicates withIsApprovalRequest(Boolean isApprovalRequest)

Set the isApprovalRequest property: Indicates whether an incoming message must be an approval request in order for the condition or exception to apply.

MicrosoftGraphMessageRulePredicates withIsAutomaticForward(Boolean isAutomaticForward)

Set the isAutomaticForward property: Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply.

MicrosoftGraphMessageRulePredicates withIsAutomaticReply(Boolean isAutomaticReply)

Set the isAutomaticReply property: Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply.

MicrosoftGraphMessageRulePredicates withIsEncrypted(Boolean isEncrypted)

Set the isEncrypted property: Indicates whether an incoming message must be encrypted in order for the condition or exception to apply.

MicrosoftGraphMessageRulePredicates withIsMeetingRequest(Boolean isMeetingRequest)

Set the isMeetingRequest property: Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply.

MicrosoftGraphMessageRulePredicates withIsMeetingResponse(Boolean isMeetingResponse)

Set the isMeetingResponse property: Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply.

MicrosoftGraphMessageRulePredicates withIsNonDeliveryReport(Boolean isNonDeliveryReport)

Set the isNonDeliveryReport property: Indicates whether an incoming message must be a non-delivery report in order for the condition or exception to apply.

MicrosoftGraphMessageRulePredicates withIsPermissionControlled(Boolean isPermissionControlled)

Set the isPermissionControlled property: Indicates whether an incoming message must be permission controlled (RMS-protected) in order for the condition or exception to apply.

MicrosoftGraphMessageRulePredicates withIsReadReceipt(Boolean isReadReceipt)

Set the isReadReceipt property: Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply.

MicrosoftGraphMessageRulePredicates withIsSigned(Boolean isSigned)

Set the isSigned property: Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply.

MicrosoftGraphMessageRulePredicates withIsVoicemail(Boolean isVoicemail)

Set the isVoicemail property: Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply.

MicrosoftGraphMessageRulePredicates withMessageActionFlag(MicrosoftGraphMessageActionFlag messageActionFlag)

Set the messageActionFlag property: messageActionFlag.

MicrosoftGraphMessageRulePredicates withNotSentToMe(Boolean notSentToMe)

Set the notSentToMe property: Indicates whether the owner of the mailbox must not be a recipient of an incoming message in order for the condition or exception to apply.

MicrosoftGraphMessageRulePredicates withRecipientContains(List<String> recipientContains)

Set the recipientContains property: Represents the strings that appear in either the toRecipients or ccRecipients properties of an incoming message in order for the condition or exception to apply.

MicrosoftGraphMessageRulePredicates withSenderContains(List<String> senderContains)

Set the senderContains property: Represents the strings that appear in the from property of an incoming message in order for the condition or exception to apply.

MicrosoftGraphMessageRulePredicates withSensitivity(MicrosoftGraphSensitivity sensitivity)

Set the sensitivity property: sensitivity.

MicrosoftGraphMessageRulePredicates withSentCcMe(Boolean sentCcMe)

Set the sentCcMe property: Indicates whether the owner of the mailbox must be in the ccRecipients property of an incoming message in order for the condition or exception to apply.

MicrosoftGraphMessageRulePredicates withSentOnlyToMe(Boolean sentOnlyToMe)

Set the sentOnlyToMe property: Indicates whether the owner of the mailbox must be the only recipient in an incoming message in order for the condition or exception to apply.

MicrosoftGraphMessageRulePredicates withSentToAddresses(List<MicrosoftGraphRecipient> sentToAddresses)

Set the sentToAddresses property: Represents the email addresses that an incoming message must have been sent to in order for the condition or exception to apply.

MicrosoftGraphMessageRulePredicates withSentToMe(Boolean sentToMe)

Set the sentToMe property: Indicates whether the owner of the mailbox must be in the toRecipients property of an incoming message in order for the condition or exception to apply.

MicrosoftGraphMessageRulePredicates withSentToOrCcMe(Boolean sentToOrCcMe)

Set the sentToOrCcMe property: Indicates whether the owner of the mailbox must be in either a toRecipients or ccRecipients property of an incoming message in order for the condition or exception to apply.

MicrosoftGraphMessageRulePredicates withSubjectContains(List<String> subjectContains)

Set the subjectContains property: Represents the strings that appear in the subject of an incoming message in order for the condition or exception to apply.

MicrosoftGraphMessageRulePredicates withWithinSizeRange(MicrosoftGraphSizeRange withinSizeRange)

Set the withinSizeRange property: sizeRange.

MicrosoftGraphSizeRange withinSizeRange()

Get the withinSizeRange property: sizeRange.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphMessageRulePredicates

public MicrosoftGraphMessageRulePredicates()

Creates an instance of MicrosoftGraphMessageRulePredicates class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: messageRulePredicates.

Returns:

the additionalProperties value.

bodyContains

public List bodyContains()

Get the bodyContains property: Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply.

Returns:

the bodyContains value.

bodyOrSubjectContains

public List bodyOrSubjectContains()

Get the bodyOrSubjectContains property: Represents the strings that should appear in the body or subject of an incoming message in order for the condition or exception to apply.

Returns:

the bodyOrSubjectContains value.

categories

public List categories()

Get the categories property: Represents the categories that an incoming message should be labeled with in order for the condition or exception to apply.

Returns:

the categories value.

fromAddresses

public List fromAddresses()

Get the fromAddresses property: Represents the specific sender email addresses of an incoming message in order for the condition or exception to apply.

Returns:

the fromAddresses value.

fromJson

public static MicrosoftGraphMessageRulePredicates fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphMessageRulePredicates from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphMessageRulePredicates.

hasAttachments

public Boolean hasAttachments()

Get the hasAttachments property: Indicates whether an incoming message must have attachments in order for the condition or exception to apply.

Returns:

the hasAttachments value.

headerContains

public List headerContains()

Get the headerContains property: Represents the strings that appear in the headers of an incoming message in order for the condition or exception to apply.

Returns:

the headerContains value.

importance

public MicrosoftGraphImportance importance()

Get the importance property: importance.

Returns:

the importance value.

isApprovalRequest

public Boolean isApprovalRequest()

Get the isApprovalRequest property: Indicates whether an incoming message must be an approval request in order for the condition or exception to apply.

Returns:

the isApprovalRequest value.

isAutomaticForward

public Boolean isAutomaticForward()

Get the isAutomaticForward property: Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply.

Returns:

the isAutomaticForward value.

isAutomaticReply

public Boolean isAutomaticReply()

Get the isAutomaticReply property: Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply.

Returns:

the isAutomaticReply value.

isEncrypted

public Boolean isEncrypted()

Get the isEncrypted property: Indicates whether an incoming message must be encrypted in order for the condition or exception to apply.

Returns:

the isEncrypted value.

isMeetingRequest

public Boolean isMeetingRequest()

Get the isMeetingRequest property: Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply.

Returns:

the isMeetingRequest value.

isMeetingResponse

public Boolean isMeetingResponse()

Get the isMeetingResponse property: Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply.

Returns:

the isMeetingResponse value.

isNonDeliveryReport

public Boolean isNonDeliveryReport()

Get the isNonDeliveryReport property: Indicates whether an incoming message must be a non-delivery report in order for the condition or exception to apply.

Returns:

the isNonDeliveryReport value.

isPermissionControlled

public Boolean isPermissionControlled()

Get the isPermissionControlled property: Indicates whether an incoming message must be permission controlled (RMS-protected) in order for the condition or exception to apply.

Returns:

the isPermissionControlled value.

isReadReceipt

public Boolean isReadReceipt()

Get the isReadReceipt property: Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply.

Returns:

the isReadReceipt value.

isSigned

public Boolean isSigned()

Get the isSigned property: Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply.

Returns:

the isSigned value.

isVoicemail

public Boolean isVoicemail()

Get the isVoicemail property: Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply.

Returns:

the isVoicemail value.

messageActionFlag

public MicrosoftGraphMessageActionFlag messageActionFlag()

Get the messageActionFlag property: messageActionFlag.

Returns:

the messageActionFlag value.

notSentToMe

public Boolean notSentToMe()

Get the notSentToMe property: Indicates whether the owner of the mailbox must not be a recipient of an incoming message in order for the condition or exception to apply.

Returns:

the notSentToMe value.

recipientContains

public List recipientContains()

Get the recipientContains property: Represents the strings that appear in either the toRecipients or ccRecipients properties of an incoming message in order for the condition or exception to apply.

Returns:

the recipientContains value.

senderContains

public List senderContains()

Get the senderContains property: Represents the strings that appear in the from property of an incoming message in order for the condition or exception to apply.

Returns:

the senderContains value.

sensitivity

public MicrosoftGraphSensitivity sensitivity()

Get the sensitivity property: sensitivity.

Returns:

the sensitivity value.

sentCcMe

public Boolean sentCcMe()

Get the sentCcMe property: Indicates whether the owner of the mailbox must be in the ccRecipients property of an incoming message in order for the condition or exception to apply.

Returns:

the sentCcMe value.

sentOnlyToMe

public Boolean sentOnlyToMe()

Get the sentOnlyToMe property: Indicates whether the owner of the mailbox must be the only recipient in an incoming message in order for the condition or exception to apply.

Returns:

the sentOnlyToMe value.

sentToAddresses

public List sentToAddresses()

Get the sentToAddresses property: Represents the email addresses that an incoming message must have been sent to in order for the condition or exception to apply.

Returns:

the sentToAddresses value.

sentToMe

public Boolean sentToMe()

Get the sentToMe property: Indicates whether the owner of the mailbox must be in the toRecipients property of an incoming message in order for the condition or exception to apply.

Returns:

the sentToMe value.

sentToOrCcMe

public Boolean sentToOrCcMe()

Get the sentToOrCcMe property: Indicates whether the owner of the mailbox must be in either a toRecipients or ccRecipients property of an incoming message in order for the condition or exception to apply.

Returns:

the sentToOrCcMe value.

subjectContains

public List subjectContains()

Get the subjectContains property: Represents the strings that appear in the subject of an incoming message in order for the condition or exception to apply.

Returns:

the subjectContains value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphMessageRulePredicates withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: messageRulePredicates.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withBodyContains

public MicrosoftGraphMessageRulePredicates withBodyContains(List bodyContains)

Set the bodyContains property: Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply.

Parameters:

bodyContains - the bodyContains value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withBodyOrSubjectContains

public MicrosoftGraphMessageRulePredicates withBodyOrSubjectContains(List bodyOrSubjectContains)

Set the bodyOrSubjectContains property: Represents the strings that should appear in the body or subject of an incoming message in order for the condition or exception to apply.

Parameters:

bodyOrSubjectContains - the bodyOrSubjectContains value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withCategories

public MicrosoftGraphMessageRulePredicates withCategories(List categories)

Set the categories property: Represents the categories that an incoming message should be labeled with in order for the condition or exception to apply.

Parameters:

categories - the categories value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withFromAddresses

public MicrosoftGraphMessageRulePredicates withFromAddresses(List fromAddresses)

Set the fromAddresses property: Represents the specific sender email addresses of an incoming message in order for the condition or exception to apply.

Parameters:

fromAddresses - the fromAddresses value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withHasAttachments

public MicrosoftGraphMessageRulePredicates withHasAttachments(Boolean hasAttachments)

Set the hasAttachments property: Indicates whether an incoming message must have attachments in order for the condition or exception to apply.

Parameters:

hasAttachments - the hasAttachments value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withHeaderContains

public MicrosoftGraphMessageRulePredicates withHeaderContains(List headerContains)

Set the headerContains property: Represents the strings that appear in the headers of an incoming message in order for the condition or exception to apply.

Parameters:

headerContains - the headerContains value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withImportance

public MicrosoftGraphMessageRulePredicates withImportance(MicrosoftGraphImportance importance)

Set the importance property: importance.

Parameters:

importance - the importance value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withIsApprovalRequest

public MicrosoftGraphMessageRulePredicates withIsApprovalRequest(Boolean isApprovalRequest)

Set the isApprovalRequest property: Indicates whether an incoming message must be an approval request in order for the condition or exception to apply.

Parameters:

isApprovalRequest - the isApprovalRequest value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withIsAutomaticForward

public MicrosoftGraphMessageRulePredicates withIsAutomaticForward(Boolean isAutomaticForward)

Set the isAutomaticForward property: Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply.

Parameters:

isAutomaticForward - the isAutomaticForward value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withIsAutomaticReply

public MicrosoftGraphMessageRulePredicates withIsAutomaticReply(Boolean isAutomaticReply)

Set the isAutomaticReply property: Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply.

Parameters:

isAutomaticReply - the isAutomaticReply value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withIsEncrypted

public MicrosoftGraphMessageRulePredicates withIsEncrypted(Boolean isEncrypted)

Set the isEncrypted property: Indicates whether an incoming message must be encrypted in order for the condition or exception to apply.

Parameters:

isEncrypted - the isEncrypted value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withIsMeetingRequest

public MicrosoftGraphMessageRulePredicates withIsMeetingRequest(Boolean isMeetingRequest)

Set the isMeetingRequest property: Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply.

Parameters:

isMeetingRequest - the isMeetingRequest value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withIsMeetingResponse

public MicrosoftGraphMessageRulePredicates withIsMeetingResponse(Boolean isMeetingResponse)

Set the isMeetingResponse property: Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply.

Parameters:

isMeetingResponse - the isMeetingResponse value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withIsNonDeliveryReport

public MicrosoftGraphMessageRulePredicates withIsNonDeliveryReport(Boolean isNonDeliveryReport)

Set the isNonDeliveryReport property: Indicates whether an incoming message must be a non-delivery report in order for the condition or exception to apply.

Parameters:

isNonDeliveryReport - the isNonDeliveryReport value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withIsPermissionControlled

public MicrosoftGraphMessageRulePredicates withIsPermissionControlled(Boolean isPermissionControlled)

Set the isPermissionControlled property: Indicates whether an incoming message must be permission controlled (RMS-protected) in order for the condition or exception to apply.

Parameters:

isPermissionControlled - the isPermissionControlled value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withIsReadReceipt

public MicrosoftGraphMessageRulePredicates withIsReadReceipt(Boolean isReadReceipt)

Set the isReadReceipt property: Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply.

Parameters:

isReadReceipt - the isReadReceipt value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withIsSigned

public MicrosoftGraphMessageRulePredicates withIsSigned(Boolean isSigned)

Set the isSigned property: Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply.

Parameters:

isSigned - the isSigned value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withIsVoicemail

public MicrosoftGraphMessageRulePredicates withIsVoicemail(Boolean isVoicemail)

Set the isVoicemail property: Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply.

Parameters:

isVoicemail - the isVoicemail value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withMessageActionFlag

public MicrosoftGraphMessageRulePredicates withMessageActionFlag(MicrosoftGraphMessageActionFlag messageActionFlag)

Set the messageActionFlag property: messageActionFlag.

Parameters:

messageActionFlag - the messageActionFlag value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withNotSentToMe

public MicrosoftGraphMessageRulePredicates withNotSentToMe(Boolean notSentToMe)

Set the notSentToMe property: Indicates whether the owner of the mailbox must not be a recipient of an incoming message in order for the condition or exception to apply.

Parameters:

notSentToMe - the notSentToMe value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withRecipientContains

public MicrosoftGraphMessageRulePredicates withRecipientContains(List recipientContains)

Set the recipientContains property: Represents the strings that appear in either the toRecipients or ccRecipients properties of an incoming message in order for the condition or exception to apply.

Parameters:

recipientContains - the recipientContains value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withSenderContains

public MicrosoftGraphMessageRulePredicates withSenderContains(List senderContains)

Set the senderContains property: Represents the strings that appear in the from property of an incoming message in order for the condition or exception to apply.

Parameters:

senderContains - the senderContains value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withSensitivity

public MicrosoftGraphMessageRulePredicates withSensitivity(MicrosoftGraphSensitivity sensitivity)

Set the sensitivity property: sensitivity.

Parameters:

sensitivity - the sensitivity value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withSentCcMe

public MicrosoftGraphMessageRulePredicates withSentCcMe(Boolean sentCcMe)

Set the sentCcMe property: Indicates whether the owner of the mailbox must be in the ccRecipients property of an incoming message in order for the condition or exception to apply.

Parameters:

sentCcMe - the sentCcMe value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withSentOnlyToMe

public MicrosoftGraphMessageRulePredicates withSentOnlyToMe(Boolean sentOnlyToMe)

Set the sentOnlyToMe property: Indicates whether the owner of the mailbox must be the only recipient in an incoming message in order for the condition or exception to apply.

Parameters:

sentOnlyToMe - the sentOnlyToMe value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withSentToAddresses

public MicrosoftGraphMessageRulePredicates withSentToAddresses(List sentToAddresses)

Set the sentToAddresses property: Represents the email addresses that an incoming message must have been sent to in order for the condition or exception to apply.

Parameters:

sentToAddresses - the sentToAddresses value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withSentToMe

public MicrosoftGraphMessageRulePredicates withSentToMe(Boolean sentToMe)

Set the sentToMe property: Indicates whether the owner of the mailbox must be in the toRecipients property of an incoming message in order for the condition or exception to apply.

Parameters:

sentToMe - the sentToMe value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withSentToOrCcMe

public MicrosoftGraphMessageRulePredicates withSentToOrCcMe(Boolean sentToOrCcMe)

Set the sentToOrCcMe property: Indicates whether the owner of the mailbox must be in either a toRecipients or ccRecipients property of an incoming message in order for the condition or exception to apply.

Parameters:

sentToOrCcMe - the sentToOrCcMe value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withSubjectContains

public MicrosoftGraphMessageRulePredicates withSubjectContains(List subjectContains)

Set the subjectContains property: Represents the strings that appear in the subject of an incoming message in order for the condition or exception to apply.

Parameters:

subjectContains - the subjectContains value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withWithinSizeRange

public MicrosoftGraphMessageRulePredicates withWithinSizeRange(MicrosoftGraphSizeRange withinSizeRange)

Set the withinSizeRange property: sizeRange.

Parameters:

withinSizeRange - the withinSizeRange value to set.

Returns:

the MicrosoftGraphMessageRulePredicates object itself.

withinSizeRange

public MicrosoftGraphSizeRange withinSizeRange()

Get the withinSizeRange property: sizeRange.

Returns:

the withinSizeRange value.

Applies to