Class MicrosoftGraphMessageRuleActions
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphMessageRuleActions
messageRuleActions.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MicrosoftGraphMessageRuleActions class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: messageRuleActions.Get the assignCategories property: A list of categories to be assigned to a message.Get the copyToFolder property: The ID of a folder that a message is to be copied to.delete()Get the delete property: Indicates whether a message should be moved to the Deleted Items folder.Get the forwardAsAttachmentTo property: The email addresses of the recipients to which a message should be forwarded as an attachment.Get the forwardTo property: The email addresses of the recipients to which a message should be forwarded.Get the markAsRead property: Indicates whether a message should be marked as read.Get the markImportance property: importance.Get the moveToFolder property: The ID of the folder that a message will be moved to.Get the permanentDelete property: Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder.Get the redirectTo property: The email addresses to which a message should be redirected.Get the stopProcessingRules property: Indicates whether subsequent rules should be evaluated.voidvalidate()Validates the instance.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: messageRuleActions.withAssignCategories(List<String> assignCategories) Set the assignCategories property: A list of categories to be assigned to a message.withCopyToFolder(String copyToFolder) Set the copyToFolder property: The ID of a folder that a message is to be copied to.withDelete(Boolean delete) Set the delete property: Indicates whether a message should be moved to the Deleted Items folder.withForwardAsAttachmentTo(List<MicrosoftGraphRecipient> forwardAsAttachmentTo) Set the forwardAsAttachmentTo property: The email addresses of the recipients to which a message should be forwarded as an attachment.withForwardTo(List<MicrosoftGraphRecipient> forwardTo) Set the forwardTo property: The email addresses of the recipients to which a message should be forwarded.withMarkAsRead(Boolean markAsRead) Set the markAsRead property: Indicates whether a message should be marked as read.withMarkImportance(MicrosoftGraphImportance markImportance) Set the markImportance property: importance.withMoveToFolder(String moveToFolder) Set the moveToFolder property: The ID of the folder that a message will be moved to.withPermanentDelete(Boolean permanentDelete) Set the permanentDelete property: Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder.withRedirectTo(List<MicrosoftGraphRecipient> redirectTo) Set the redirectTo property: The email addresses to which a message should be redirected.withStopProcessingRules(Boolean stopProcessingRules) Set the stopProcessingRules property: Indicates whether subsequent rules should be evaluated.
-
Constructor Details
-
MicrosoftGraphMessageRuleActions
public MicrosoftGraphMessageRuleActions()Creates an instance of MicrosoftGraphMessageRuleActions class.
-
-
Method Details
-
assignCategories
Get the assignCategories property: A list of categories to be assigned to a message.- Returns:
- the assignCategories value.
-
withAssignCategories
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
Get the copyToFolder property: The ID of a folder that a message is to be copied to.- Returns:
- the copyToFolder value.
-
withCopyToFolder
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
Get the delete property: Indicates whether a message should be moved to the Deleted Items folder.- Returns:
- the delete value.
-
withDelete
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
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
Get the forwardTo property: The email addresses of the recipients to which a message should be forwarded.- Returns:
- the forwardTo value.
-
withForwardTo
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
Get the markAsRead property: Indicates whether a message should be marked as read.- Returns:
- the markAsRead value.
-
withMarkAsRead
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
Get the markImportance property: importance.- Returns:
- the markImportance value.
-
withMarkImportance
Set the markImportance property: importance.- Parameters:
markImportance- the markImportance value to set.- Returns:
- the MicrosoftGraphMessageRuleActions object itself.
-
moveToFolder
Get the moveToFolder property: The ID of the folder that a message will be moved to.- Returns:
- the moveToFolder value.
-
withMoveToFolder
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
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
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
Get the redirectTo property: The email addresses to which a message should be redirected.- Returns:
- the redirectTo value.
-
withRedirectTo
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
Get the stopProcessingRules property: Indicates whether subsequent rules should be evaluated.- Returns:
- the stopProcessingRules value.
-
withStopProcessingRules
Set the stopProcessingRules property: Indicates whether subsequent rules should be evaluated.- Parameters:
stopProcessingRules- the stopProcessingRules value to set.- Returns:
- the MicrosoftGraphMessageRuleActions object itself.
-
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.
-