Class MicrosoftGraphMessageRuleActions
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphMessageRuleActions
-
public final class MicrosoftGraphMessageRuleActions extends Object
messageRuleActions.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphMessageRuleActions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>additionalProperties()Get the additionalProperties property: messageRuleActions.List<String>assignCategories()Get the assignCategories property: A list of categories to be assigned to a message.StringcopyToFolder()Get the copyToFolder property: The ID of a folder that a message is to be copied to.Booleandelete()Get the delete property: Indicates whether a message should be moved to the Deleted Items folder.List<MicrosoftGraphRecipient>forwardAsAttachmentTo()Get the forwardAsAttachmentTo property: The email addresses of the recipients to which a message should be forwarded as an attachment.List<MicrosoftGraphRecipient>forwardTo()Get the forwardTo property: The email addresses of the recipients to which a message should be forwarded.BooleanmarkAsRead()Get the markAsRead property: Indicates whether a message should be marked as read.MicrosoftGraphImportancemarkImportance()Get the markImportance property: The markImportance property.StringmoveToFolder()Get the moveToFolder property: The ID of the folder that a message will be moved to.BooleanpermanentDelete()Get the permanentDelete property: Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder.List<MicrosoftGraphRecipient>redirectTo()Get the redirectTo property: The email addresses to which a message should be redirected.BooleanstopProcessingRules()Get the stopProcessingRules property: Indicates whether subsequent rules should be evaluated.voidvalidate()Validates the instance.MicrosoftGraphMessageRuleActionswithAdditionalProperties(Map<String,Object> additionalProperties)Set the additionalProperties property: messageRuleActions.MicrosoftGraphMessageRuleActionswithAssignCategories(List<String> assignCategories)Set the assignCategories property: A list of categories to be assigned to a message.MicrosoftGraphMessageRuleActionswithCopyToFolder(String copyToFolder)Set the copyToFolder property: The ID of a folder that a message is to be copied to.MicrosoftGraphMessageRuleActionswithDelete(Boolean delete)Set the delete property: Indicates whether a message should be moved to the Deleted Items folder.MicrosoftGraphMessageRuleActionswithForwardAsAttachmentTo(List<MicrosoftGraphRecipient> forwardAsAttachmentTo)Set the forwardAsAttachmentTo property: The email addresses of the recipients to which a message should be forwarded as an attachment.MicrosoftGraphMessageRuleActionswithForwardTo(List<MicrosoftGraphRecipient> forwardTo)Set the forwardTo property: The email addresses of the recipients to which a message should be forwarded.MicrosoftGraphMessageRuleActionswithMarkAsRead(Boolean markAsRead)Set the markAsRead property: Indicates whether a message should be marked as read.MicrosoftGraphMessageRuleActionswithMarkImportance(MicrosoftGraphImportance markImportance)Set the markImportance property: The markImportance property.MicrosoftGraphMessageRuleActionswithMoveToFolder(String moveToFolder)Set the moveToFolder property: The ID of the folder that a message will be moved to.MicrosoftGraphMessageRuleActionswithPermanentDelete(Boolean permanentDelete)Set the permanentDelete property: Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder.MicrosoftGraphMessageRuleActionswithRedirectTo(List<MicrosoftGraphRecipient> redirectTo)Set the redirectTo property: The email addresses to which a message should be redirected.MicrosoftGraphMessageRuleActionswithStopProcessingRules(Boolean stopProcessingRules)Set the stopProcessingRules property: Indicates whether subsequent rules should be evaluated.
-
-
-
Method Detail
-
assignCategories
public List<String> assignCategories()
Get the assignCategories property: A list of categories to be assigned to a message.- Returns:
- the assignCategories value.
-
withAssignCategories
public MicrosoftGraphMessageRuleActions withAssignCategories(List<String> assignCategories)
Set the assignCategories property: A list of categories to be assigned to a message.- Parameters:
assignCategories- the assignCategories value to set.- Returns:
- the MicrosoftGraphMessageRuleActions object itself.
-
copyToFolder
public String copyToFolder()
Get the copyToFolder property: The ID of a folder that a message is to be copied to.- Returns:
- the copyToFolder value.
-
withCopyToFolder
public MicrosoftGraphMessageRuleActions withCopyToFolder(String copyToFolder)
Set the copyToFolder property: The ID of a folder that a message is to be copied to.- Parameters:
copyToFolder- the copyToFolder value to set.- Returns:
- the MicrosoftGraphMessageRuleActions object itself.
-
delete
public Boolean delete()
Get the delete property: Indicates whether a message should be moved to the Deleted Items folder.- Returns:
- the delete value.
-
withDelete
public MicrosoftGraphMessageRuleActions withDelete(Boolean delete)
Set the delete property: Indicates whether a message should be moved to the Deleted Items folder.- Parameters:
delete- the delete value to set.- Returns:
- the MicrosoftGraphMessageRuleActions object itself.
-
forwardAsAttachmentTo
public List<MicrosoftGraphRecipient> forwardAsAttachmentTo()
Get the forwardAsAttachmentTo property: The email addresses of the recipients to which a message should be forwarded as an attachment.- Returns:
- the forwardAsAttachmentTo value.
-
withForwardAsAttachmentTo
public MicrosoftGraphMessageRuleActions withForwardAsAttachmentTo(List<MicrosoftGraphRecipient> forwardAsAttachmentTo)
Set the forwardAsAttachmentTo property: The email addresses of the recipients to which a message should be forwarded as an attachment.- Parameters:
forwardAsAttachmentTo- the forwardAsAttachmentTo value to set.- Returns:
- the MicrosoftGraphMessageRuleActions object itself.
-
forwardTo
public List<MicrosoftGraphRecipient> forwardTo()
Get the forwardTo property: The email addresses of the recipients to which a message should be forwarded.- Returns:
- the forwardTo value.
-
withForwardTo
public MicrosoftGraphMessageRuleActions withForwardTo(List<MicrosoftGraphRecipient> forwardTo)
Set the forwardTo property: The email addresses of the recipients to which a message should be forwarded.- Parameters:
forwardTo- the forwardTo value to set.- Returns:
- the MicrosoftGraphMessageRuleActions object itself.
-
markAsRead
public Boolean markAsRead()
Get the markAsRead property: Indicates whether a message should be marked as read.- Returns:
- the markAsRead value.
-
withMarkAsRead
public MicrosoftGraphMessageRuleActions withMarkAsRead(Boolean markAsRead)
Set the markAsRead property: Indicates whether a message should be marked as read.- Parameters:
markAsRead- the markAsRead value to set.- Returns:
- the MicrosoftGraphMessageRuleActions object itself.
-
markImportance
public MicrosoftGraphImportance markImportance()
Get the markImportance property: The markImportance property.- Returns:
- the markImportance value.
-
withMarkImportance
public MicrosoftGraphMessageRuleActions withMarkImportance(MicrosoftGraphImportance markImportance)
Set the markImportance property: The markImportance property.- Parameters:
markImportance- the markImportance value to set.- Returns:
- the MicrosoftGraphMessageRuleActions object itself.
-
moveToFolder
public String moveToFolder()
Get the moveToFolder property: The ID of the folder that a message will be moved to.- Returns:
- the moveToFolder value.
-
withMoveToFolder
public MicrosoftGraphMessageRuleActions withMoveToFolder(String moveToFolder)
Set the moveToFolder property: The ID of the folder that a message will be moved to.- Parameters:
moveToFolder- the moveToFolder value to set.- Returns:
- the MicrosoftGraphMessageRuleActions object itself.
-
permanentDelete
public Boolean permanentDelete()
Get the permanentDelete property: Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder.- Returns:
- the permanentDelete value.
-
withPermanentDelete
public MicrosoftGraphMessageRuleActions withPermanentDelete(Boolean permanentDelete)
Set the permanentDelete property: Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder.- Parameters:
permanentDelete- the permanentDelete value to set.- Returns:
- the MicrosoftGraphMessageRuleActions object itself.
-
redirectTo
public List<MicrosoftGraphRecipient> redirectTo()
Get the redirectTo property: The email addresses to which a message should be redirected.- Returns:
- the redirectTo value.
-
withRedirectTo
public MicrosoftGraphMessageRuleActions withRedirectTo(List<MicrosoftGraphRecipient> redirectTo)
Set the redirectTo property: The email addresses to which a message should be redirected.- Parameters:
redirectTo- the redirectTo value to set.- Returns:
- the MicrosoftGraphMessageRuleActions object itself.
-
stopProcessingRules
public Boolean stopProcessingRules()
Get the stopProcessingRules property: Indicates whether subsequent rules should be evaluated.- Returns:
- the stopProcessingRules value.
-
withStopProcessingRules
public MicrosoftGraphMessageRuleActions withStopProcessingRules(Boolean stopProcessingRules)
Set the stopProcessingRules property: Indicates whether subsequent rules should be evaluated.- Parameters:
stopProcessingRules- the stopProcessingRules value to set.- Returns:
- the MicrosoftGraphMessageRuleActions object itself.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: messageRuleActions.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphMessageRuleActions withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: messageRuleActions.- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphMessageRuleActions object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-