Class MicrosoftGraphMessageRule

java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphMessageRule

public final class MicrosoftGraphMessageRule extends MicrosoftGraphEntity
messageRule.
  • Constructor Details

    • MicrosoftGraphMessageRule

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

    • actions

      Get the actions property: messageRuleActions.
      Returns:
      the actions value.
    • withActions

      Set the actions property: messageRuleActions.
      Parameters:
      actions - the actions value to set.
      Returns:
      the MicrosoftGraphMessageRule object itself.
    • conditions

      Get the conditions property: messageRulePredicates.
      Returns:
      the conditions value.
    • withConditions

      Set the conditions property: messageRulePredicates.
      Parameters:
      conditions - the conditions value to set.
      Returns:
      the MicrosoftGraphMessageRule object itself.
    • displayName

      public String displayName()
      Get the displayName property: The display name of the rule.
      Returns:
      the displayName value.
    • withDisplayName

      public MicrosoftGraphMessageRule withDisplayName(String displayName)
      Set the displayName property: The display name of the rule.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the MicrosoftGraphMessageRule object itself.
    • exceptions

      Get the exceptions property: messageRulePredicates.
      Returns:
      the exceptions value.
    • withExceptions

      Set the exceptions property: messageRulePredicates.
      Parameters:
      exceptions - the exceptions value to set.
      Returns:
      the MicrosoftGraphMessageRule object itself.
    • hasError

      public Boolean hasError()
      Get the hasError property: Indicates whether the rule is in an error condition. Read-only.
      Returns:
      the hasError value.
    • withHasError

      public MicrosoftGraphMessageRule withHasError(Boolean hasError)
      Set the hasError property: Indicates whether the rule is in an error condition. Read-only.
      Parameters:
      hasError - the hasError value to set.
      Returns:
      the MicrosoftGraphMessageRule object itself.
    • isEnabled

      public Boolean isEnabled()
      Get the isEnabled property: Indicates whether the rule is enabled to be applied to messages.
      Returns:
      the isEnabled value.
    • withIsEnabled

      public MicrosoftGraphMessageRule withIsEnabled(Boolean isEnabled)
      Set the isEnabled property: Indicates whether the rule is enabled to be applied to messages.
      Parameters:
      isEnabled - the isEnabled value to set.
      Returns:
      the MicrosoftGraphMessageRule object itself.
    • isReadOnly

      public Boolean isReadOnly()
      Get the isReadOnly property: Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API.
      Returns:
      the isReadOnly value.
    • withIsReadOnly

      public MicrosoftGraphMessageRule withIsReadOnly(Boolean isReadOnly)
      Set the isReadOnly property: Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API.
      Parameters:
      isReadOnly - the isReadOnly value to set.
      Returns:
      the MicrosoftGraphMessageRule object itself.
    • sequence

      public Integer sequence()
      Get the sequence property: Indicates the order in which the rule is executed, among other rules.
      Returns:
      the sequence value.
    • withSequence

      public MicrosoftGraphMessageRule withSequence(Integer sequence)
      Set the sequence property: Indicates the order in which the rule is executed, among other rules.
      Parameters:
      sequence - the sequence value to set.
      Returns:
      the MicrosoftGraphMessageRule object itself.
    • additionalProperties

      public Map<String,Object> additionalProperties()
      Get the additionalProperties property: messageRule.
      Overrides:
      additionalProperties in class MicrosoftGraphEntity
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public MicrosoftGraphMessageRule withAdditionalProperties(Map<String,Object> additionalProperties)
      Set the additionalProperties property: messageRule.
      Overrides:
      withAdditionalProperties in class MicrosoftGraphEntity
      Parameters:
      additionalProperties - the additionalProperties value to set.
      Returns:
      the MicrosoftGraphMessageRule object itself.
    • withId

      public MicrosoftGraphMessageRule withId(String id)
      Set the id property: Read-only.
      Overrides:
      withId in class MicrosoftGraphEntity
      Parameters:
      id - the id value to set.
      Returns:
      the MicrosoftGraphEntity object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class MicrosoftGraphEntity
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.