Class RuleActions
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- microsoft.exchange.webservices.data.property.complex.RuleActions
-
- All Implemented Interfaces:
ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>
public final class RuleActions extends ComplexProperty
Represents the set of actions available for a rule.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRuleActions()Initializes a new instance of the RulePredicates class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringListgetAssignCategories()Gets the categories that should be stamped on incoming messages.FolderIdgetCopyToFolder()Gets or sets the Id of the folder incoming messages should be copied to.booleangetDelete()Gets or sets a value indicating whether incoming messages should be automatically moved to the Deleted Items folder.EmailAddressCollectiongetForwardAsAttachmentToRecipients()Gets the e-mail addresses to which incoming messages should be forwarded as attachments.EmailAddressCollectiongetForwardToRecipients()Gets the e-mail addresses to which incoming messages should be forwarded.booleangetMarkAsRead()Gets or sets a value indicating whether incoming messages should be marked as read.ImportancegetMarkImportance()Gets or sets the importance that should be stamped on incoming messages.FolderIdgetMoveToFolder()Gets or sets the Id of the folder to which incoming messages should be moved.booleangetPermanentDelete()Gets or sets a value indicating whether incoming messages should be permanently deleted.EmailAddressCollectiongetRedirectToRecipients()Gets the e-mail addresses to which incoming messages should be redirecteded.Collection<MobilePhone>getSendSMSAlertToRecipients()Gets the phone numbers to which an SMS alert should be sent.ItemIdgetServerReplyWithMessage()Gets or sets the Id of the template message that should be sent as a reply to incoming messages.booleangetStopProcessingRules()Gets or sets a value indicating whether subsequent rules should be evaluated.protected voidinternalValidate()Validates this instance.voidsetCopyToFolder(FolderId value)voidsetDelete(boolean value)voidsetMarkAsRead(boolean value)voidsetMarkImportance(Importance value)voidsetMoveToFolder(FolderId value)voidsetPermanentDelete(boolean value)voidsetServerReplyWithMessage(ItemId value)voidsetStopProcessingRules(boolean value)booleantryReadElementFromXml(EwsServiceXmlReader reader)Tries to read element from XML.voidwriteElementsToXml(EwsServiceXmlWriter writer)Writes elements to XML.-
Methods inherited from class microsoft.exchange.webservices.data.property.complex.ComplexProperty
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeToXml, writeToXml
-
-
-
-
Constructor Detail
-
RuleActions
protected RuleActions()
Initializes a new instance of the RulePredicates class.
-
-
Method Detail
-
getAssignCategories
public StringList getAssignCategories()
Gets the categories that should be stamped on incoming messages. To disable stamping incoming messages with categories, set AssignCategories to null.
-
getCopyToFolder
public FolderId getCopyToFolder()
Gets or sets the Id of the folder incoming messages should be copied to. To disable copying incoming messages to a folder, set CopyToFolder to null.
-
setCopyToFolder
public void setCopyToFolder(FolderId value)
-
getDelete
public boolean getDelete()
Gets or sets a value indicating whether incoming messages should be automatically moved to the Deleted Items folder.
-
setDelete
public void setDelete(boolean value)
-
getForwardAsAttachmentToRecipients
public EmailAddressCollection getForwardAsAttachmentToRecipients()
Gets the e-mail addresses to which incoming messages should be forwarded as attachments. To disable forwarding incoming messages as attachments, empty the ForwardAsAttachmentToRecipients list.
-
getForwardToRecipients
public EmailAddressCollection getForwardToRecipients()
Gets the e-mail addresses to which incoming messages should be forwarded. To disable forwarding incoming messages, empty the ForwardToRecipients list.
-
getMarkImportance
public Importance getMarkImportance()
Gets or sets the importance that should be stamped on incoming messages. To disable the stamping of incoming messages with an importance, set MarkImportance to null.
-
setMarkImportance
public void setMarkImportance(Importance value)
-
getMarkAsRead
public boolean getMarkAsRead()
Gets or sets a value indicating whether incoming messages should be marked as read.
-
setMarkAsRead
public void setMarkAsRead(boolean value)
-
getMoveToFolder
public FolderId getMoveToFolder()
Gets or sets the Id of the folder to which incoming messages should be moved. To disable the moving of incoming messages to a folder, set CopyToFolder to null.
-
setMoveToFolder
public void setMoveToFolder(FolderId value)
-
getPermanentDelete
public boolean getPermanentDelete()
Gets or sets a value indicating whether incoming messages should be permanently deleted. When a message is permanently deleted, it is never saved into the recipient's mailbox. To delete a message after it has saved into the recipient's mailbox. To delete a message after it has
-
setPermanentDelete
public void setPermanentDelete(boolean value)
-
getRedirectToRecipients
public EmailAddressCollection getRedirectToRecipients()
Gets the e-mail addresses to which incoming messages should be redirecteded. To disable redirection of incoming messages, empty the RedirectToRecipients list. Unlike forwarded mail, redirected mail maintains the original sender and recipients.
-
getSendSMSAlertToRecipients
public Collection<MobilePhone> getSendSMSAlertToRecipients()
Gets the phone numbers to which an SMS alert should be sent. To disable sending SMS alerts for incoming messages, empty the SendSMSAlertToRecipients list.
-
getServerReplyWithMessage
public ItemId getServerReplyWithMessage()
Gets or sets the Id of the template message that should be sent as a reply to incoming messages. To disable automatic replies, set ServerReplyWithMessage to null.
-
setServerReplyWithMessage
public void setServerReplyWithMessage(ItemId value)
-
getStopProcessingRules
public boolean getStopProcessingRules()
Gets or sets a value indicating whether subsequent rules should be evaluated.
-
setStopProcessingRules
public void setStopProcessingRules(boolean value)
-
tryReadElementFromXml
public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
Tries to read element from XML.- Overrides:
tryReadElementFromXmlin classComplexProperty- Parameters:
reader- The reader.- Returns:
- True if element was read.
- Throws:
Exception
-
writeElementsToXml
public void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
Writes elements to XML.- Overrides:
writeElementsToXmlin classComplexProperty- Parameters:
writer- The writer.- Throws:
Exception
-
internalValidate
protected void internalValidate() throws Exception
Validates this instance.- Overrides:
internalValidatein classComplexProperty- Throws:
Exception
-
-