Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package com.microsoft.graph.models;
import com.microsoft.kiota.serialization.AdditionalDataHolder;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import com.microsoft.kiota.store.BackedModel;
import com.microsoft.kiota.store.BackingStore;
import com.microsoft.kiota.store.BackingStoreFactorySingleton;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class MessageRuleActions implements AdditionalDataHolder, BackedModel, Parsable {
/**
* Stores model information.
*/
@jakarta.annotation.Nonnull
protected BackingStore backingStore;
/**
* Instantiates a new {@link MessageRuleActions} and sets the default values.
*/
public MessageRuleActions() {
this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore();
this.setAdditionalData(new HashMap<>());
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @return a {@link MessageRuleActions}
*/
@jakarta.annotation.Nonnull
public static MessageRuleActions createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new MessageRuleActions();
}
/**
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
* @return a {@link Map}
*/
@jakarta.annotation.Nonnull
public Map getAdditionalData() {
Map value = this.backingStore.get("additionalData");
if(value == null) {
value = new HashMap<>();
this.setAdditionalData(value);
}
return value;
}
/**
* Gets the assignCategories property value. A list of categories to be assigned to a message.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getAssignCategories() {
return this.backingStore.get("assignCategories");
}
/**
* Gets the backingStore property value. Stores model information.
* @return a {@link BackingStore}
*/
@jakarta.annotation.Nonnull
public BackingStore getBackingStore() {
return this.backingStore;
}
/**
* Gets the copyToFolder property value. The ID of a folder that a message is to be copied to.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getCopyToFolder() {
return this.backingStore.get("copyToFolder");
}
/**
* Gets the delete property value. Indicates whether a message should be moved to the Deleted Items folder.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getDelete() {
return this.backingStore.get("delete");
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(12);
deserializerMap.put("assignCategories", (n) -> { this.setAssignCategories(n.getCollectionOfPrimitiveValues(String.class)); });
deserializerMap.put("copyToFolder", (n) -> { this.setCopyToFolder(n.getStringValue()); });
deserializerMap.put("delete", (n) -> { this.setDelete(n.getBooleanValue()); });
deserializerMap.put("forwardAsAttachmentTo", (n) -> { this.setForwardAsAttachmentTo(n.getCollectionOfObjectValues(Recipient::createFromDiscriminatorValue)); });
deserializerMap.put("forwardTo", (n) -> { this.setForwardTo(n.getCollectionOfObjectValues(Recipient::createFromDiscriminatorValue)); });
deserializerMap.put("markAsRead", (n) -> { this.setMarkAsRead(n.getBooleanValue()); });
deserializerMap.put("markImportance", (n) -> { this.setMarkImportance(n.getEnumValue(Importance::forValue)); });
deserializerMap.put("moveToFolder", (n) -> { this.setMoveToFolder(n.getStringValue()); });
deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); });
deserializerMap.put("permanentDelete", (n) -> { this.setPermanentDelete(n.getBooleanValue()); });
deserializerMap.put("redirectTo", (n) -> { this.setRedirectTo(n.getCollectionOfObjectValues(Recipient::createFromDiscriminatorValue)); });
deserializerMap.put("stopProcessingRules", (n) -> { this.setStopProcessingRules(n.getBooleanValue()); });
return deserializerMap;
}
/**
* Gets the forwardAsAttachmentTo property value. The email addresses of the recipients to which a message should be forwarded as an attachment.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getForwardAsAttachmentTo() {
return this.backingStore.get("forwardAsAttachmentTo");
}
/**
* Gets the forwardTo property value. The email addresses of the recipients to which a message should be forwarded.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getForwardTo() {
return this.backingStore.get("forwardTo");
}
/**
* Gets the markAsRead property value. Indicates whether a message should be marked as read.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getMarkAsRead() {
return this.backingStore.get("markAsRead");
}
/**
* Gets the markImportance property value. Sets the importance of the message, which can be: low, normal, high.
* @return a {@link Importance}
*/
@jakarta.annotation.Nullable
public Importance getMarkImportance() {
return this.backingStore.get("markImportance");
}
/**
* Gets the moveToFolder property value. The ID of the folder that a message will be moved to.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getMoveToFolder() {
return this.backingStore.get("moveToFolder");
}
/**
* Gets the @odata.type property value. The OdataType property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOdataType() {
return this.backingStore.get("odataType");
}
/**
* Gets the permanentDelete property value. Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getPermanentDelete() {
return this.backingStore.get("permanentDelete");
}
/**
* Gets the redirectTo property value. The email addresses to which a message should be redirected.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getRedirectTo() {
return this.backingStore.get("redirectTo");
}
/**
* Gets the stopProcessingRules property value. Indicates whether subsequent rules should be evaluated.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getStopProcessingRules() {
return this.backingStore.get("stopProcessingRules");
}
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
Objects.requireNonNull(writer);
writer.writeCollectionOfPrimitiveValues("assignCategories", this.getAssignCategories());
writer.writeStringValue("copyToFolder", this.getCopyToFolder());
writer.writeBooleanValue("delete", this.getDelete());
writer.writeCollectionOfObjectValues("forwardAsAttachmentTo", this.getForwardAsAttachmentTo());
writer.writeCollectionOfObjectValues("forwardTo", this.getForwardTo());
writer.writeBooleanValue("markAsRead", this.getMarkAsRead());
writer.writeEnumValue("markImportance", this.getMarkImportance());
writer.writeStringValue("moveToFolder", this.getMoveToFolder());
writer.writeStringValue("@odata.type", this.getOdataType());
writer.writeBooleanValue("permanentDelete", this.getPermanentDelete());
writer.writeCollectionOfObjectValues("redirectTo", this.getRedirectTo());
writer.writeBooleanValue("stopProcessingRules", this.getStopProcessingRules());
writer.writeAdditionalData(this.getAdditionalData());
}
/**
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
* @param value Value to set for the AdditionalData property.
*/
public void setAdditionalData(@jakarta.annotation.Nullable final Map value) {
this.backingStore.set("additionalData", value);
}
/**
* Sets the assignCategories property value. A list of categories to be assigned to a message.
* @param value Value to set for the assignCategories property.
*/
public void setAssignCategories(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("assignCategories", value);
}
/**
* Sets the backingStore property value. Stores model information.
* @param value Value to set for the backingStore property.
*/
public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) {
Objects.requireNonNull(value);
this.backingStore = value;
}
/**
* Sets the copyToFolder property value. The ID of a folder that a message is to be copied to.
* @param value Value to set for the copyToFolder property.
*/
public void setCopyToFolder(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("copyToFolder", value);
}
/**
* Sets the delete property value. Indicates whether a message should be moved to the Deleted Items folder.
* @param value Value to set for the delete property.
*/
public void setDelete(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("delete", value);
}
/**
* Sets the forwardAsAttachmentTo property value. The email addresses of the recipients to which a message should be forwarded as an attachment.
* @param value Value to set for the forwardAsAttachmentTo property.
*/
public void setForwardAsAttachmentTo(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("forwardAsAttachmentTo", value);
}
/**
* Sets the forwardTo property value. The email addresses of the recipients to which a message should be forwarded.
* @param value Value to set for the forwardTo property.
*/
public void setForwardTo(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("forwardTo", value);
}
/**
* Sets the markAsRead property value. Indicates whether a message should be marked as read.
* @param value Value to set for the markAsRead property.
*/
public void setMarkAsRead(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("markAsRead", value);
}
/**
* Sets the markImportance property value. Sets the importance of the message, which can be: low, normal, high.
* @param value Value to set for the markImportance property.
*/
public void setMarkImportance(@jakarta.annotation.Nullable final Importance value) {
this.backingStore.set("markImportance", value);
}
/**
* Sets the moveToFolder property value. The ID of the folder that a message will be moved to.
* @param value Value to set for the moveToFolder property.
*/
public void setMoveToFolder(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("moveToFolder", value);
}
/**
* Sets the @odata.type property value. The OdataType property
* @param value Value to set for the @odata.type property.
*/
public void setOdataType(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("odataType", value);
}
/**
* Sets the permanentDelete property value. Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder.
* @param value Value to set for the permanentDelete property.
*/
public void setPermanentDelete(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("permanentDelete", value);
}
/**
* Sets the redirectTo property value. The email addresses to which a message should be redirected.
* @param value Value to set for the redirectTo property.
*/
public void setRedirectTo(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("redirectTo", value);
}
/**
* Sets the stopProcessingRules property value. Indicates whether subsequent rules should be evaluated.
* @param value Value to set for the stopProcessingRules property.
*/
public void setStopProcessingRules(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("stopProcessingRules", value);
}
}