Class MicrosoftGraphMessageRulePredicates
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphMessageRulePredicates
-
public final class MicrosoftGraphMessageRulePredicates extends Object
messageRulePredicates.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphMessageRulePredicates()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.BooleanhasAttachments()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.MicrosoftGraphImportanceimportance()Get the importance property: The importance property.BooleanisApprovalRequest()Get the isApprovalRequest property: Indicates whether an incoming message must be an approval request in order for the condition or exception to apply.BooleanisAutomaticForward()Get the isAutomaticForward property: Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply.BooleanisAutomaticReply()Get the isAutomaticReply property: Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply.BooleanisEncrypted()Get the isEncrypted property: Indicates whether an incoming message must be encrypted in order for the condition or exception to apply.BooleanisMeetingRequest()Get the isMeetingRequest property: Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply.BooleanisMeetingResponse()Get the isMeetingResponse property: Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply.BooleanisNonDeliveryReport()Get the isNonDeliveryReport property: Indicates whether an incoming message must be a non-delivery report in order for the condition or exception to apply.BooleanisPermissionControlled()Get the isPermissionControlled property: Indicates whether an incoming message must be permission controlled (RMS-protected) in order for the condition or exception to apply.BooleanisReadReceipt()Get the isReadReceipt property: Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply.BooleanisSigned()Get the isSigned property: Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply.BooleanisVoicemail()Get the isVoicemail property: Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply.MicrosoftGraphMessageActionFlagmessageActionFlag()Get the messageActionFlag property: The messageActionFlag property.BooleannotSentToMe()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.MicrosoftGraphSensitivitysensitivity()Get the sensitivity property: The sensitivity property.BooleansentCcMe()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.BooleansentOnlyToMe()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.BooleansentToMe()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.BooleansentToOrCcMe()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.voidvalidate()Validates the instance.MicrosoftGraphMessageRulePredicateswithAdditionalProperties(Map<String,Object> additionalProperties)Set the additionalProperties property: messageRulePredicates.MicrosoftGraphMessageRulePredicateswithBodyContains(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.MicrosoftGraphMessageRulePredicateswithBodyOrSubjectContains(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.MicrosoftGraphMessageRulePredicateswithCategories(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.MicrosoftGraphMessageRulePredicateswithFromAddresses(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.MicrosoftGraphMessageRulePredicateswithHasAttachments(Boolean hasAttachments)Set the hasAttachments property: Indicates whether an incoming message must have attachments in order for the condition or exception to apply.MicrosoftGraphMessageRulePredicateswithHeaderContains(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.MicrosoftGraphMessageRulePredicateswithImportance(MicrosoftGraphImportance importance)Set the importance property: The importance property.MicrosoftGraphSizeRangewithinSizeRange()Get the withinSizeRange property: sizeRange.MicrosoftGraphMessageRulePredicateswithIsApprovalRequest(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.MicrosoftGraphMessageRulePredicateswithIsAutomaticForward(Boolean isAutomaticForward)Set the isAutomaticForward property: Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply.MicrosoftGraphMessageRulePredicateswithIsAutomaticReply(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.MicrosoftGraphMessageRulePredicateswithIsEncrypted(Boolean isEncrypted)Set the isEncrypted property: Indicates whether an incoming message must be encrypted in order for the condition or exception to apply.MicrosoftGraphMessageRulePredicateswithIsMeetingRequest(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.MicrosoftGraphMessageRulePredicateswithIsMeetingResponse(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.MicrosoftGraphMessageRulePredicateswithIsNonDeliveryReport(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.MicrosoftGraphMessageRulePredicateswithIsPermissionControlled(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.MicrosoftGraphMessageRulePredicateswithIsReadReceipt(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.MicrosoftGraphMessageRulePredicateswithIsSigned(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.MicrosoftGraphMessageRulePredicateswithIsVoicemail(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.MicrosoftGraphMessageRulePredicateswithMessageActionFlag(MicrosoftGraphMessageActionFlag messageActionFlag)Set the messageActionFlag property: The messageActionFlag property.MicrosoftGraphMessageRulePredicateswithNotSentToMe(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.MicrosoftGraphMessageRulePredicateswithRecipientContains(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.MicrosoftGraphMessageRulePredicateswithSenderContains(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.MicrosoftGraphMessageRulePredicateswithSensitivity(MicrosoftGraphSensitivity sensitivity)Set the sensitivity property: The sensitivity property.MicrosoftGraphMessageRulePredicateswithSentCcMe(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.MicrosoftGraphMessageRulePredicateswithSentOnlyToMe(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.MicrosoftGraphMessageRulePredicateswithSentToAddresses(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.MicrosoftGraphMessageRulePredicateswithSentToMe(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.MicrosoftGraphMessageRulePredicateswithSentToOrCcMe(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.MicrosoftGraphMessageRulePredicateswithSubjectContains(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.MicrosoftGraphMessageRulePredicateswithWithinSizeRange(MicrosoftGraphSizeRange withinSizeRange)Set the withinSizeRange property: sizeRange.
-
-
-
Method Detail
-
bodyContains
public 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.- Returns:
- the bodyContains value.
-
withBodyContains
public 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.- Parameters:
bodyContains- the bodyContains value to set.- Returns:
- the MicrosoftGraphMessageRulePredicates object itself.
-
bodyOrSubjectContains
public 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.- Returns:
- the bodyOrSubjectContains value.
-
withBodyOrSubjectContains
public 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.- Parameters:
bodyOrSubjectContains- the bodyOrSubjectContains value to set.- Returns:
- the MicrosoftGraphMessageRulePredicates object itself.
-
categories
public 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.- Returns:
- the categories value.
-
withCategories
public 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.- Parameters:
categories- the categories value to set.- Returns:
- the MicrosoftGraphMessageRulePredicates object itself.
-
fromAddresses
public 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.- Returns:
- the fromAddresses value.
-
withFromAddresses
public 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.- Parameters:
fromAddresses- the fromAddresses value to set.- Returns:
- the MicrosoftGraphMessageRulePredicates object itself.
-
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.
-
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.
-
headerContains
public 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.- Returns:
- the headerContains value.
-
withHeaderContains
public 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.- Parameters:
headerContains- the headerContains value to set.- Returns:
- the MicrosoftGraphMessageRulePredicates object itself.
-
importance
public MicrosoftGraphImportance importance()
Get the importance property: The importance property.- Returns:
- the importance value.
-
withImportance
public MicrosoftGraphMessageRulePredicates withImportance(MicrosoftGraphImportance importance)
Set the importance property: The importance property.- Parameters:
importance- the importance value to set.- Returns:
- the MicrosoftGraphMessageRulePredicates object itself.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
messageActionFlag
public MicrosoftGraphMessageActionFlag messageActionFlag()
Get the messageActionFlag property: The messageActionFlag property.- Returns:
- the messageActionFlag value.
-
withMessageActionFlag
public MicrosoftGraphMessageRulePredicates withMessageActionFlag(MicrosoftGraphMessageActionFlag messageActionFlag)
Set the messageActionFlag property: The messageActionFlag property.- Parameters:
messageActionFlag- the messageActionFlag value to set.- Returns:
- the MicrosoftGraphMessageRulePredicates object itself.
-
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.
-
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.
-
recipientContains
public 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.- Returns:
- the recipientContains value.
-
withRecipientContains
public 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.- Parameters:
recipientContains- the recipientContains value to set.- Returns:
- the MicrosoftGraphMessageRulePredicates object itself.
-
senderContains
public 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.- Returns:
- the senderContains value.
-
withSenderContains
public 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.- Parameters:
senderContains- the senderContains value to set.- Returns:
- the MicrosoftGraphMessageRulePredicates object itself.
-
sensitivity
public MicrosoftGraphSensitivity sensitivity()
Get the sensitivity property: The sensitivity property.- Returns:
- the sensitivity value.
-
withSensitivity
public MicrosoftGraphMessageRulePredicates withSensitivity(MicrosoftGraphSensitivity sensitivity)
Set the sensitivity property: The sensitivity property.- Parameters:
sensitivity- the sensitivity value to set.- Returns:
- the MicrosoftGraphMessageRulePredicates object itself.
-
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.
-
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.
-
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.
-
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.
-
sentToAddresses
public 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.- Returns:
- the sentToAddresses value.
-
withSentToAddresses
public 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.- Parameters:
sentToAddresses- the sentToAddresses value to set.- Returns:
- the MicrosoftGraphMessageRulePredicates object itself.
-
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.
-
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.
-
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.
-
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.
-
subjectContains
public 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.- Returns:
- the subjectContains value.
-
withSubjectContains
public 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.- Parameters:
subjectContains- the subjectContains value to set.- Returns:
- the MicrosoftGraphMessageRulePredicates object itself.
-
withinSizeRange
public MicrosoftGraphSizeRange withinSizeRange()
Get the withinSizeRange property: sizeRange.- Returns:
- the withinSizeRange value.
-
withWithinSizeRange
public MicrosoftGraphMessageRulePredicates withWithinSizeRange(MicrosoftGraphSizeRange withinSizeRange)
Set the withinSizeRange property: sizeRange.- Parameters:
withinSizeRange- the withinSizeRange value to set.- Returns:
- the MicrosoftGraphMessageRulePredicates object itself.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: messageRulePredicates.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphMessageRulePredicates withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: messageRulePredicates.- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphMessageRulePredicates object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-