MicrosoftGraphMessageRule Class

public final class MicrosoftGraphMessageRule
extends MicrosoftGraphEntity

messageRule.

Constructor Summary

Constructor Description
MicrosoftGraphMessageRule()

Creates an instance of MicrosoftGraphMessageRule class.

Method Summary

Modifier and Type Method and 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 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:

the actions value.

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: messageRule.

Overrides:

MicrosoftGraphMessageRule.additionalProperties()

Returns:

the additionalProperties value.

conditions

public MicrosoftGraphMessageRulePredicates conditions()

Get the conditions property: messageRulePredicates.

Returns:

the conditions value.

displayName

public String displayName()

Get the displayName property: The display name of the rule.

Returns:

the displayName value.

exceptions

public MicrosoftGraphMessageRulePredicates exceptions()

Get the exceptions property: messageRulePredicates.

Returns:

the exceptions value.

hasError

public Boolean hasError()

Get the hasError property: Indicates whether the rule is in an error condition. Read-only.

Returns:

the hasError value.

isEnabled

public Boolean isEnabled()

Get the isEnabled property: Indicates whether the rule is enabled to be applied to messages.

Returns:

the isEnabled value.

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.

sequence

public Integer sequence()

Get the sequence property: Indicates the order in which the rule is executed, among other rules.

Returns:

the sequence value.

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphMessageRule.validate()

withActions

public MicrosoftGraphMessageRule withActions(MicrosoftGraphMessageRuleActions actions)

Set the actions property: messageRuleActions.

Parameters:

actions - the actions value to set.

Returns:

the MicrosoftGraphMessageRule object itself.

withAdditionalProperties

public MicrosoftGraphMessageRule withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: messageRule.

Overrides:

MicrosoftGraphMessageRule.withAdditionalProperties(Map<String,Object> additionalProperties)

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphMessageRule object itself.

withConditions

public MicrosoftGraphMessageRule withConditions(MicrosoftGraphMessageRulePredicates conditions)

Set the conditions property: messageRulePredicates.

Parameters:

conditions - the conditions value to set.

Returns:

the MicrosoftGraphMessageRule object itself.

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.

withExceptions

public MicrosoftGraphMessageRule withExceptions(MicrosoftGraphMessageRulePredicates exceptions)

Set the exceptions property: messageRulePredicates.

Parameters:

exceptions - the exceptions value to set.

Returns:

the MicrosoftGraphMessageRule object itself.

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.

withId

public MicrosoftGraphMessageRule withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphMessageRule.withId(String id)

Parameters:

id

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.

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.

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.

Applies to