MicrosoftGraphMessageRuleActions Class

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

Implements

public final class MicrosoftGraphMessageRuleActions
implements JsonSerializable<MicrosoftGraphMessageRuleActions>

messageRuleActions.

Constructor Summary

Constructor Description
MicrosoftGraphMessageRuleActions()

Creates an instance of MicrosoftGraphMessageRuleActions class.

Method Summary

Modifier and Type Method and 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.

String copyToFolder()

Get the copyToFolder property: The ID of a folder that a message is to be copied to.

Boolean delete()

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.

static MicrosoftGraphMessageRuleActions fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphMessageRuleActions from the JsonReader.

Boolean markAsRead()

Get the markAsRead property: Indicates whether a message should be marked as read.

MicrosoftGraphImportance markImportance()

Get the markImportance property: importance.

String moveToFolder()

Get the moveToFolder property: The ID of the folder that a message will be moved to.

Boolean permanentDelete()

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.

Boolean stopProcessingRules()

Get the stopProcessingRules property: Indicates whether subsequent rules should be evaluated.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphMessageRuleActions withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: messageRuleActions.

MicrosoftGraphMessageRuleActions withAssignCategories(List<String> assignCategories)

Set the assignCategories property: A list of categories to be assigned to a message.

MicrosoftGraphMessageRuleActions withCopyToFolder(String copyToFolder)

Set the copyToFolder property: The ID of a folder that a message is to be copied to.

MicrosoftGraphMessageRuleActions withDelete(Boolean delete)

Set the delete property: Indicates whether a message should be moved to the Deleted Items folder.

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.

MicrosoftGraphMessageRuleActions withForwardTo(List<MicrosoftGraphRecipient> forwardTo)

Set the forwardTo property: The email addresses of the recipients to which a message should be forwarded.

MicrosoftGraphMessageRuleActions withMarkAsRead(Boolean markAsRead)

Set the markAsRead property: Indicates whether a message should be marked as read.

MicrosoftGraphMessageRuleActions withMarkImportance(MicrosoftGraphImportance markImportance)

Set the markImportance property: importance.

MicrosoftGraphMessageRuleActions withMoveToFolder(String moveToFolder)

Set the moveToFolder property: The ID of the folder that a message will be moved to.

MicrosoftGraphMessageRuleActions withPermanentDelete(Boolean permanentDelete)

Set the permanentDelete property: Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder.

MicrosoftGraphMessageRuleActions withRedirectTo(List<MicrosoftGraphRecipient> redirectTo)

Set the redirectTo property: The email addresses to which a message should be redirected.

MicrosoftGraphMessageRuleActions withStopProcessingRules(Boolean stopProcessingRules)

Set the stopProcessingRules property: Indicates whether subsequent rules should be evaluated.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphMessageRuleActions

public MicrosoftGraphMessageRuleActions()

Creates an instance of MicrosoftGraphMessageRuleActions class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: messageRuleActions.

Returns:

the additionalProperties value.

assignCategories

public List assignCategories()

Get the assignCategories property: A list of categories to be assigned to a message.

Returns:

the assignCategories value.

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.

delete

public Boolean delete()

Get the delete property: Indicates whether a message should be moved to the Deleted Items folder.

Returns:

the delete value.

forwardAsAttachmentTo

public List 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.

forwardTo

public List forwardTo()

Get the forwardTo property: The email addresses of the recipients to which a message should be forwarded.

Returns:

the forwardTo value.

fromJson

public static MicrosoftGraphMessageRuleActions fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphMessageRuleActions from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphMessageRuleActions if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphMessageRuleActions.

markAsRead

public Boolean markAsRead()

Get the markAsRead property: Indicates whether a message should be marked as read.

Returns:

the markAsRead value.

markImportance

public MicrosoftGraphImportance markImportance()

Get the markImportance property: importance.

Returns:

the markImportance value.

moveToFolder

public String moveToFolder()

Get the moveToFolder property: The ID of the folder that a message will be moved to.

Returns:

the moveToFolder value.

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.

redirectTo

public List redirectTo()

Get the redirectTo property: The email addresses to which a message should be redirected.

Returns:

the redirectTo value.

stopProcessingRules

public Boolean stopProcessingRules()

Get the stopProcessingRules property: Indicates whether subsequent rules should be evaluated.

Returns:

the stopProcessingRules value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphMessageRuleActions withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: messageRuleActions.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphMessageRuleActions object itself.

withAssignCategories

public MicrosoftGraphMessageRuleActions withAssignCategories(List 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.

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.

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.

withForwardAsAttachmentTo

public MicrosoftGraphMessageRuleActions withForwardAsAttachmentTo(List 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.

withForwardTo

public MicrosoftGraphMessageRuleActions withForwardTo(List 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.

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.

withMarkImportance

public MicrosoftGraphMessageRuleActions withMarkImportance(MicrosoftGraphImportance markImportance)

Set the markImportance property: importance.

Parameters:

markImportance - the markImportance value to set.

Returns:

the MicrosoftGraphMessageRuleActions object itself.

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.

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.

withRedirectTo

public MicrosoftGraphMessageRuleActions withRedirectTo(List 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.

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.

Applies to