MicrosoftGraphMessageRule Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphEntity - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphMessageRule
- com.
- com.
public final class MicrosoftGraphMessageRule
extends MicrosoftGraphEntity
messageRule.
Constructor Summary
Constructor | Description |
---|---|
MicrosoftGraphMessageRule() |
Creates an instance of Microsoft |
Method Summary
Modifier and Type | Method and Description |
---|---|
Microsoft |
actions()
Get the actions property: message |
Map<String,Object> |
additionalProperties()
Get the additional |
Microsoft |
conditions()
Get the conditions property: message |
String |
displayName()
Get the display |
Microsoft |
exceptions()
Get the exceptions property: message |
static
Microsoft |
fromJson(JsonReader jsonReader)
Reads an instance of Microsoft |
Boolean |
hasError()
Get the has |
Boolean |
isEnabled()
Get the is |
Boolean |
isReadOnly()
Get the is |
Integer |
sequence()
Get the sequence property: Indicates the order in which the rule is executed, among other rules. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Microsoft |
withActions(MicrosoftGraphMessageRuleActions actions)
Set the actions property: message |
Microsoft |
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additional |
Microsoft |
withConditions(MicrosoftGraphMessageRulePredicates conditions)
Set the conditions property: message |
Microsoft |
withDisplayName(String displayName)
Set the display |
Microsoft |
withExceptions(MicrosoftGraphMessageRulePredicates exceptions)
Set the exceptions property: message |
Microsoft |
withHasError(Boolean hasError)
Set the has |
Microsoft |
withId(String id)
Set the id property: Read-only. |
Microsoft |
withIsEnabled(Boolean isEnabled)
Set the is |
Microsoft |
withIsReadOnly(Boolean isReadOnly)
Set the is |
Microsoft |
withSequence(Integer sequence)
Set the sequence property: Indicates the order in which the rule is executed, among other rules. |
Methods inherited from MicrosoftGraphEntity
Methods inherited from java.lang.Object
Constructor Details
MicrosoftGraphMessageRule
public MicrosoftGraphMessageRule()
Creates an instance of MicrosoftGraphMessageRule class.
Method Details
actions
public MicrosoftGraphMessageRuleActions actions()
Get the actions property: messageRuleActions.
Returns:
additionalProperties
public Map
Get the additionalProperties property: messageRule.
Overrides:
MicrosoftGraphMessageRule.additionalProperties()Returns:
conditions
public MicrosoftGraphMessageRulePredicates conditions()
Get the conditions property: messageRulePredicates.
Returns:
displayName
public String displayName()
Get the displayName property: The display name of the rule.
Returns:
exceptions
public MicrosoftGraphMessageRulePredicates exceptions()
Get the exceptions property: messageRulePredicates.
Returns:
fromJson
public static MicrosoftGraphMessageRule fromJson(JsonReader jsonReader)
Reads an instance of MicrosoftGraphMessageRule from the JsonReader.
Parameters:
Returns:
Throws:
hasError
public Boolean hasError()
Get the hasError property: Indicates whether the rule is in an error condition. Read-only.
Returns:
isEnabled
public Boolean isEnabled()
Get the isEnabled property: Indicates whether the rule is enabled to be applied to messages.
Returns:
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:
sequence
public Integer sequence()
Get the sequence property: Indicates the order in which the rule is executed, among other rules.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
MicrosoftGraphMessageRule.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
MicrosoftGraphMessageRule.validate()withActions
public MicrosoftGraphMessageRule withActions(MicrosoftGraphMessageRuleActions actions)
Set the actions property: messageRuleActions.
Parameters:
Returns:
withAdditionalProperties
public MicrosoftGraphMessageRule withAdditionalProperties(Map
Set the additionalProperties property: messageRule.
Overrides:
MicrosoftGraphMessageRule.withAdditionalProperties(Map<String,Object> additionalProperties)Parameters:
Returns:
withConditions
public MicrosoftGraphMessageRule withConditions(MicrosoftGraphMessageRulePredicates conditions)
Set the conditions property: messageRulePredicates.
Parameters:
Returns:
withDisplayName
public MicrosoftGraphMessageRule withDisplayName(String displayName)
Set the displayName property: The display name of the rule.
Parameters:
Returns:
withExceptions
public MicrosoftGraphMessageRule withExceptions(MicrosoftGraphMessageRulePredicates exceptions)
Set the exceptions property: messageRulePredicates.
Parameters:
Returns:
withHasError
public MicrosoftGraphMessageRule withHasError(Boolean hasError)
Set the hasError property: Indicates whether the rule is in an error condition. Read-only.
Parameters:
Returns:
withId
public MicrosoftGraphMessageRule withId(String id)
Set the id property: Read-only.
Overrides:
MicrosoftGraphMessageRule.withId(String id)Parameters:
withIsEnabled
public MicrosoftGraphMessageRule withIsEnabled(Boolean isEnabled)
Set the isEnabled property: Indicates whether the rule is enabled to be applied to messages.
Parameters:
Returns:
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:
Returns:
withSequence
public MicrosoftGraphMessageRule withSequence(Integer sequence)
Set the sequence property: Indicates the order in which the rule is executed, among other rules.
Parameters:
Returns:
Applies to
Azure SDK for Java