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 Summary
Constructors Constructor Description MicrosoftGraphMessageRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MicrosoftGraphMessageRuleActions
actions()
Get the actions property: messageRuleActions.Map<String,Object>
additionalProperties()
Get the additionalProperties property: messageRule.MicrosoftGraphMessageRulePredicates
conditions()
Get the conditions property: messageRulePredicates.String
displayName()
Get the displayName property: The display name of the rule.MicrosoftGraphMessageRulePredicates
exceptions()
Get the exceptions property: messageRulePredicates.Boolean
hasError()
Get the hasError property: Indicates whether the rule is in an error condition.Boolean
isEnabled()
Get the isEnabled property: Indicates whether the rule is enabled to be applied to messages.Boolean
isReadOnly()
Get the isReadOnly property: Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API.Integer
sequence()
Get the sequence property: Indicates the order in which the rule is executed, among other rules.void
validate()
Validates the instance.MicrosoftGraphMessageRule
withActions(MicrosoftGraphMessageRuleActions actions)
Set the actions property: messageRuleActions.MicrosoftGraphMessageRule
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: messageRule.MicrosoftGraphMessageRule
withConditions(MicrosoftGraphMessageRulePredicates conditions)
Set the conditions property: messageRulePredicates.MicrosoftGraphMessageRule
withDisplayName(String displayName)
Set the displayName property: The display name of the rule.MicrosoftGraphMessageRule
withExceptions(MicrosoftGraphMessageRulePredicates exceptions)
Set the exceptions property: messageRulePredicates.MicrosoftGraphMessageRule
withHasError(Boolean hasError)
Set the hasError property: Indicates whether the rule is in an error condition.MicrosoftGraphMessageRule
withId(String id)
Set the id property: Read-only.MicrosoftGraphMessageRule
withIsEnabled(Boolean isEnabled)
Set the isEnabled property: Indicates whether the rule is enabled to be applied to messages.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.MicrosoftGraphMessageRule
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
-
-
-
-
Method Detail
-
actions
public MicrosoftGraphMessageRuleActions actions()
Get the actions property: messageRuleActions.- Returns:
- the actions value.
-
withActions
public MicrosoftGraphMessageRule withActions(MicrosoftGraphMessageRuleActions actions)
Set the actions property: messageRuleActions.- Parameters:
actions
- the actions value to set.- Returns:
- the MicrosoftGraphMessageRule object itself.
-
conditions
public MicrosoftGraphMessageRulePredicates conditions()
Get the conditions property: messageRulePredicates.- Returns:
- the conditions value.
-
withConditions
public MicrosoftGraphMessageRule withConditions(MicrosoftGraphMessageRulePredicates conditions)
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
public MicrosoftGraphMessageRulePredicates exceptions()
Get the exceptions property: messageRulePredicates.- Returns:
- the exceptions value.
-
withExceptions
public MicrosoftGraphMessageRule withExceptions(MicrosoftGraphMessageRulePredicates exceptions)
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 classMicrosoftGraphEntity
- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphMessageRule withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: messageRule.- Overrides:
withAdditionalProperties
in classMicrosoftGraphEntity
- 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 classMicrosoftGraphEntity
- Parameters:
id
- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classMicrosoftGraphEntity
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-