Package com.microsoft.graph.models
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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageRule
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the actions property value.Gets the conditions property value.Gets the displayName property value.Gets the exceptions property value.The deserialization information for the current modelGets the hasError property value.Gets the isEnabled property value.Gets the isReadOnly property value.Gets the sequence property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setActions
(MessageRuleActions value) Sets the actions property value.void
Sets the conditions property value.void
setDisplayName
(String value) Sets the displayName property value.void
Sets the exceptions property value.void
setHasError
(Boolean value) Sets the hasError property value.void
setIsEnabled
(Boolean value) Sets the isEnabled property value.void
setIsReadOnly
(Boolean value) Sets the isReadOnly property value.void
setSequence
(Integer value) Sets the sequence property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
MessageRule
public MessageRule()Instantiates a newMessageRule
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
Gets the actions property value. Actions to be taken on a message when the corresponding conditions are fulfilled.- Returns:
- a
MessageRuleActions
-
getConditions
Gets the conditions property value. Conditions that when fulfilled trigger the corresponding actions for that rule.- Returns:
- a
MessageRulePredicates
-
getDisplayName
Gets the displayName property value. The display name of the rule.- Returns:
- a
String
-
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 interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getHasError
Gets the hasError property value. Indicates whether the rule is in an error condition. Read-only.- Returns:
- a
Boolean
-
getIsEnabled
Gets the isEnabled property value. Indicates whether the rule is enabled to be applied to messages.- Returns:
- a
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
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 -
setActions
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
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
Sets the displayName property value. The display name of the rule.- Parameters:
value
- Value to set for the displayName property.
-
setExceptions
Sets the exceptions property value. Exception conditions for the rule.- Parameters:
value
- Value to set for the exceptions property.
-
setHasError
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
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
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
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.
-