Class MessageRule

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.MessageRule
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class MessageRule extends Entity implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • MessageRule

      public MessageRule()
      Instantiates a new MessageRule and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static MessageRule createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a MessageRule
    • getActions

      @Nullable public MessageRuleActions getActions()
      Gets the actions property value. Actions to be taken on a message when the corresponding conditions are fulfilled.
      Returns:
      a MessageRuleActions
    • getConditions

      @Nullable public MessageRulePredicates getConditions()
      Gets the conditions property value. Conditions that when fulfilled trigger the corresponding actions for that rule.
      Returns:
      a MessageRulePredicates
    • getDisplayName

      @Nullable public String getDisplayName()
      Gets the displayName property value. The display name of the rule.
      Returns:
      a String
    • getExceptions

      @Nullable public MessageRulePredicates getExceptions()
      Gets the exceptions property value. Exception conditions for the rule.
      Returns:
      a MessageRulePredicates
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getHasError

      @Nullable public Boolean getHasError()
      Gets the hasError property value. Indicates whether the rule is in an error condition. Read-only.
      Returns:
      a Boolean
    • getIsEnabled

      @Nullable public Boolean getIsEnabled()
      Gets the isEnabled property value. Indicates whether the rule is enabled to be applied to messages.
      Returns:
      a Boolean
    • getIsReadOnly

      @Nullable public Boolean getIsReadOnly()
      Gets the isReadOnly property value. Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API.
      Returns:
      a Boolean
    • getSequence

      @Nullable public Integer getSequence()
      Gets the sequence property value. Indicates the order in which the rule is executed, among other rules.
      Returns:
      a Integer
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setActions

      public void setActions(@Nullable MessageRuleActions value)
      Sets the actions property value. Actions to be taken on a message when the corresponding conditions are fulfilled.
      Parameters:
      value - Value to set for the actions property.
    • setConditions

      public void setConditions(@Nullable MessageRulePredicates value)
      Sets the conditions property value. Conditions that when fulfilled trigger the corresponding actions for that rule.
      Parameters:
      value - Value to set for the conditions property.
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. The display name of the rule.
      Parameters:
      value - Value to set for the displayName property.
    • setExceptions

      public void setExceptions(@Nullable MessageRulePredicates value)
      Sets the exceptions property value. Exception conditions for the rule.
      Parameters:
      value - Value to set for the exceptions property.
    • setHasError

      public void setHasError(@Nullable Boolean value)
      Sets the hasError property value. Indicates whether the rule is in an error condition. Read-only.
      Parameters:
      value - Value to set for the hasError property.
    • setIsEnabled

      public void setIsEnabled(@Nullable Boolean value)
      Sets the isEnabled property value. Indicates whether the rule is enabled to be applied to messages.
      Parameters:
      value - Value to set for the isEnabled property.
    • setIsReadOnly

      public void setIsReadOnly(@Nullable Boolean value)
      Sets the isReadOnly property value. Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API.
      Parameters:
      value - Value to set for the isReadOnly property.
    • setSequence

      public void setSequence(@Nullable Integer value)
      Sets the sequence property value. Indicates the order in which the rule is executed, among other rules.
      Parameters:
      value - Value to set for the sequence property.