Class MicrosoftGraphMessageRuleActions

java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphMessageRuleActions

public final class MicrosoftGraphMessageRuleActions extends Object
messageRuleActions.
  • Constructor Details

    • MicrosoftGraphMessageRuleActions

      public MicrosoftGraphMessageRuleActions()
      Creates an instance of MicrosoftGraphMessageRuleActions class.
  • Method Details

    • 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

      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: importance.
      Returns:
      the markImportance value.
    • withMarkImportance

      public MicrosoftGraphMessageRuleActions withMarkImportance(MicrosoftGraphImportance markImportance)
      Set the markImportance property: importance.
      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.