Class MicrosoftGraphMessageRule
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphMessageRule
messageRule.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MicrosoftGraphMessageRule class. -
Method Summary
Modifier and TypeMethodDescriptionactions()Get the actions property: messageRuleActions.Get the additionalProperties property: messageRule.Get the conditions property: messageRulePredicates.Get the displayName property: The display name of the rule.Get the exceptions property: messageRulePredicates.hasError()Get the hasError property: Indicates whether the rule is in an error condition.Get the isEnabled property: Indicates whether the rule is enabled to be applied to messages.Get the isReadOnly property: Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API.sequence()Get the sequence property: Indicates the order in which the rule is executed, among other rules.voidvalidate()Validates the instance.Set the actions property: messageRuleActions.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: messageRule.withConditions(MicrosoftGraphMessageRulePredicates conditions) Set the conditions property: messageRulePredicates.withDisplayName(String displayName) Set the displayName property: The display name of the rule.withExceptions(MicrosoftGraphMessageRulePredicates exceptions) Set the exceptions property: messageRulePredicates.withHasError(Boolean hasError) Set the hasError property: Indicates whether the rule is in an error condition.Set the id property: Read-only.withIsEnabled(Boolean isEnabled) Set the isEnabled property: Indicates whether the rule is enabled to be applied to messages.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.withSequence(Integer sequence) Set the sequence property: Indicates the order in which the rule is executed, among other rules.Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
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
Get the displayName property: The display name of the rule.- Returns:
- the displayName value.
-
withDisplayName
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
Get the hasError property: Indicates whether the rule is in an error condition. Read-only.- Returns:
- the hasError value.
-
withHasError
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
Get the isEnabled property: Indicates whether the rule is enabled to be applied to messages.- Returns:
- the isEnabled value.
-
withIsEnabled
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
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
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
Get the sequence property: Indicates the order in which the rule is executed, among other rules.- Returns:
- the sequence value.
-
withSequence
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
Get the additionalProperties property: messageRule.- Overrides:
additionalPropertiesin classMicrosoftGraphEntity- Returns:
- the additionalProperties value.
-
withAdditionalProperties
Set the additionalProperties property: messageRule.- Overrides:
withAdditionalPropertiesin classMicrosoftGraphEntity- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphMessageRule object itself.
-
withId
Set the id property: Read-only.- Overrides:
withIdin classMicrosoftGraphEntity- Parameters:
id- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classMicrosoftGraphEntity- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-