Package odata.msgraph.client.entity
Class MessageRule
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.MessageRule
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class MessageRule extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessageRule.Builder
-
Field Summary
Fields Modifier and Type Field Description protected MessageRuleActionsactionsprotected MessageRulePredicatesconditionsprotected StringdisplayNameprotected MessageRulePredicatesexceptionsprotected BooleanhasErrorprotected BooleanisEnabledprotected BooleanisReadOnlyprotected Integersequence-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMessageRule()
-
Method Summary
-
-
-
Field Detail
-
actions
protected MessageRuleActions actions
-
conditions
protected MessageRulePredicates conditions
-
displayName
protected String displayName
-
exceptions
protected MessageRulePredicates exceptions
-
hasError
protected Boolean hasError
-
isEnabled
protected Boolean isEnabled
-
isReadOnly
protected Boolean isReadOnly
-
sequence
protected Integer sequence
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderMessageRule
public static MessageRule.Builder builderMessageRule()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getActions
public Optional<MessageRuleActions> getActions()
-
withActions
public MessageRule withActions(MessageRuleActions actions)
-
getConditions
public Optional<MessageRulePredicates> getConditions()
-
withConditions
public MessageRule withConditions(MessageRulePredicates conditions)
-
withDisplayName
public MessageRule withDisplayName(String displayName)
-
getExceptions
public Optional<MessageRulePredicates> getExceptions()
-
withExceptions
public MessageRule withExceptions(MessageRulePredicates exceptions)
-
withHasError
public MessageRule withHasError(Boolean hasError)
-
withIsEnabled
public MessageRule withIsEnabled(Boolean isEnabled)
-
withIsReadOnly
public MessageRule withIsReadOnly(Boolean isReadOnly)
-
withSequence
public MessageRule withSequence(Integer sequence)
-
withUnmappedField
public MessageRule withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classEntity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public MessageRule patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public MessageRule put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-