Class MicrosoftGraphMessageRulePredicates
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphMessageRulePredicates
messageRulePredicates.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MicrosoftGraphMessageRulePredicates class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: messageRulePredicates.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.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.Get the categories property: Represents the categories that an incoming message should be labeled with in order for the condition or exception to apply.Get the fromAddresses property: Represents the specific sender email addresses of an incoming message in order for the condition or exception to apply.Get the hasAttachments property: Indicates whether an incoming message must have attachments in order for the condition or exception to apply.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.Get the importance property: importance.Get the isApprovalRequest property: Indicates whether an incoming message must be an approval request in order for the condition or exception to apply.Get the isAutomaticForward property: Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply.Get the isAutomaticReply property: Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply.Get the isEncrypted property: Indicates whether an incoming message must be encrypted in order for the condition or exception to apply.Get the isMeetingRequest property: Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply.Get the isMeetingResponse property: Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply.Get the isNonDeliveryReport property: Indicates whether an incoming message must be a non-delivery report in order for the condition or exception to apply.Get the isPermissionControlled property: Indicates whether an incoming message must be permission controlled (RMS-protected) in order for the condition or exception to apply.Get the isReadReceipt property: Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply.isSigned()Get the isSigned property: Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply.Get the isVoicemail property: Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply.Get the messageActionFlag property: messageActionFlag.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.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.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.Get the sensitivity property: sensitivity.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.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.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.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.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.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.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: messageRulePredicates.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.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.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.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.withHasAttachments(Boolean hasAttachments) Set the hasAttachments property: Indicates whether an incoming message must have attachments in order for the condition or exception to apply.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.withImportance(MicrosoftGraphImportance importance) Set the importance property: importance.Get the withinSizeRange property: sizeRange.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.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.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.withIsEncrypted(Boolean isEncrypted) Set the isEncrypted property: Indicates whether an incoming message must be encrypted in order for the condition or exception to apply.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.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.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.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.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.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.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.withMessageActionFlag(MicrosoftGraphMessageActionFlag messageActionFlag) Set the messageActionFlag property: messageActionFlag.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.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.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.withSensitivity(MicrosoftGraphSensitivity sensitivity) Set the sensitivity property: sensitivity.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.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.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.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.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.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.withWithinSizeRange(MicrosoftGraphSizeRange withinSizeRange) Set the withinSizeRange property: sizeRange.
-
Constructor Details
-
MicrosoftGraphMessageRulePredicates
public MicrosoftGraphMessageRulePredicates()Creates an instance of MicrosoftGraphMessageRulePredicates class.
-
-
Method Details
-
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
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
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
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
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
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
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
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
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
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
Get the importance property: importance.- Returns:
- the importance value.
-
withImportance
Set the importance property: importance.- Parameters:
importance- the importance value to set.- Returns:
- the MicrosoftGraphMessageRulePredicates object itself.
-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Get the messageActionFlag property: messageActionFlag.- Returns:
- the messageActionFlag value.
-
withMessageActionFlag
public MicrosoftGraphMessageRulePredicates withMessageActionFlag(MicrosoftGraphMessageActionFlag messageActionFlag) Set the messageActionFlag property: messageActionFlag.- Parameters:
messageActionFlag- the messageActionFlag value to set.- Returns:
- the MicrosoftGraphMessageRulePredicates object itself.
-
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
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
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
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
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
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
Get the sensitivity property: sensitivity.- Returns:
- the sensitivity value.
-
withSensitivity
Set the sensitivity property: sensitivity.- Parameters:
sensitivity- the sensitivity value to set.- Returns:
- the MicrosoftGraphMessageRulePredicates object itself.
-
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
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
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
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
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
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
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
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
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
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
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
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
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.
-