Class MailFolder
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.MailFolder
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
MailSearchFolder
public class MailFolder extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMailFolder.Builder
-
Field Summary
Fields Modifier and Type Field Description protected IntegerchildFolderCountprotected List<MailFolder>childFoldersprotected StringdisplayNameprotected BooleanisHiddenprotected List<MessageRule>messageRulesprotected List<Message>messagesprotected List<MultiValueLegacyExtendedProperty>multiValueExtendedPropertiesprotected StringparentFolderIdprotected List<SingleValueLegacyExtendedProperty>singleValueExtendedPropertiesprotected IntegertotalItemCountprotected IntegerunreadItemCount-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMailFolder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MailFolder.BuilderbuilderMailFolder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<MailFolder>copy(String destinationId)com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<Integer>getChildFolderCount()MailFolderCollectionRequestgetChildFolders()Org.OData.Capabilities.V1.ChangeTrackingOptional<String>getDisplayName()Optional<Boolean>getIsHidden()MessageRuleCollectionRequestgetMessageRules()Org.OData.Capabilities.V1.ChangeTrackingMessageCollectionRequestgetMessages()Org.OData.Capabilities.V1.ChangeTrackingMultiValueLegacyExtendedPropertyCollectionRequestgetMultiValueExtendedProperties()Optional<String>getParentFolderId()SingleValueLegacyExtendedPropertyCollectionRequestgetSingleValueExtendedProperties()Optional<Integer>getTotalItemCount()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<Integer>getUnreadItemCount()com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<MailFolder>move(String destinationId)StringodataTypeName()MailFolderpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)MailFolderput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()MailFolderwithChildFolderCount(Integer childFolderCount)MailFolderwithChildFolders(List<MailFolder> childFolders)Returns an immutable copy ofthiswith just thechildFoldersfield changed.MailFolderwithDisplayName(String displayName)MailFolderwithIsHidden(Boolean isHidden)MailFolderwithMessageRules(List<MessageRule> messageRules)Returns an immutable copy ofthiswith just themessageRulesfield changed.MailFolderwithMessages(List<Message> messages)Returns an immutable copy ofthiswith just themessagesfield changed.MailFolderwithMultiValueExtendedProperties(List<MultiValueLegacyExtendedProperty> multiValueExtendedProperties)MailFolderwithParentFolderId(String parentFolderId)MailFolderwithSingleValueExtendedProperties(List<SingleValueLegacyExtendedProperty> singleValueExtendedProperties)MailFolderwithTotalItemCount(Integer totalItemCount)MailFolderwithUnmappedField(String name, Object value)MailFolderwithUnreadItemCount(Integer unreadItemCount)
-
-
-
Field Detail
-
childFolderCount
protected Integer childFolderCount
-
displayName
protected String displayName
-
isHidden
protected Boolean isHidden
-
parentFolderId
protected String parentFolderId
-
totalItemCount
protected Integer totalItemCount
-
unreadItemCount
protected Integer unreadItemCount
-
childFolders
protected List<MailFolder> childFolders
-
messageRules
protected List<MessageRule> messageRules
-
multiValueExtendedProperties
protected List<MultiValueLegacyExtendedProperty> multiValueExtendedProperties
-
singleValueExtendedProperties
protected List<SingleValueLegacyExtendedProperty> singleValueExtendedProperties
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderMailFolder
public static MailFolder.Builder builderMailFolder()
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
-
withChildFolderCount
public MailFolder withChildFolderCount(Integer childFolderCount)
-
withDisplayName
public MailFolder withDisplayName(String displayName)
-
withIsHidden
public MailFolder withIsHidden(Boolean isHidden)
-
withParentFolderId
public MailFolder withParentFolderId(String parentFolderId)
-
withTotalItemCount
public MailFolder withTotalItemCount(Integer totalItemCount)
-
withUnreadItemCount
public MailFolder withUnreadItemCount(Integer unreadItemCount)
-
withUnmappedField
public MailFolder withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classEntity
-
getChildFolders
public MailFolderCollectionRequest getChildFolders()
Org.OData.Capabilities.V1.ChangeTracking
Supported = true
Org.OData.Capabilities.V1.NavigationRestrictions
Org.OData.Capabilities.V1.SearchRestrictions
Searchable = false
- Returns:
- navigational property childFolders
-
getMessageRules
public MessageRuleCollectionRequest getMessageRules()
Org.OData.Capabilities.V1.ChangeTracking
Supported = false
Org.OData.Capabilities.V1.ExpandRestrictions
Expandable = false
Org.OData.Capabilities.V1.SearchRestrictions
Searchable = false
- Returns:
- navigational property messageRules
-
getMessages
public MessageCollectionRequest getMessages()
Org.OData.Capabilities.V1.ChangeTracking
Supported = true
- Returns:
- navigational property messages
-
getMultiValueExtendedProperties
public MultiValueLegacyExtendedPropertyCollectionRequest getMultiValueExtendedProperties()
-
getSingleValueExtendedProperties
public SingleValueLegacyExtendedPropertyCollectionRequest getSingleValueExtendedProperties()
-
withChildFolders
public MailFolder withChildFolders(List<MailFolder> childFolders)
Returns an immutable copy ofthiswith just thechildFoldersfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.Org.OData.Capabilities.V1.ChangeTracking
Supported = true
Org.OData.Capabilities.V1.NavigationRestrictions
Org.OData.Capabilities.V1.SearchRestrictions
Searchable = false
- Parameters:
childFolders- new value ofchildFoldersfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thechildFoldersfield changed
-
withMessageRules
public MailFolder withMessageRules(List<MessageRule> messageRules)
Returns an immutable copy ofthiswith just themessageRulesfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.Org.OData.Capabilities.V1.ChangeTracking
Supported = false
Org.OData.Capabilities.V1.ExpandRestrictions
Expandable = false
Org.OData.Capabilities.V1.SearchRestrictions
Searchable = false
- Parameters:
messageRules- new value ofmessageRulesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themessageRulesfield changed
-
withMessages
public MailFolder withMessages(List<Message> messages)
Returns an immutable copy ofthiswith just themessagesfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.Org.OData.Capabilities.V1.ChangeTracking
Supported = true
- Parameters:
messages- new value ofmessagesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themessagesfield changed
-
withMultiValueExtendedProperties
public MailFolder withMultiValueExtendedProperties(List<MultiValueLegacyExtendedProperty> multiValueExtendedProperties)
-
withSingleValueExtendedProperties
public MailFolder withSingleValueExtendedProperties(List<SingleValueLegacyExtendedProperty> singleValueExtendedProperties)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public MailFolder patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public MailFolder put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
copy
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<MailFolder> copy(String destinationId)
-
move
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<MailFolder> move(String destinationId)
-
-