Class MailFolderItemRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.users.item.mailfolders.item.childfolders.item.MailFolderItemRequestBuilder
@Generated("com.microsoft.kiota")
public class MailFolderItemRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the childFolders property of the microsoft.graph.mailFolder entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classThe collection of child folders in the mailFolder.classConfiguration for the request such as headers, query parameters, and middleware options.classConfiguration for the request such as headers, query parameters, and middleware options. -
Field Summary
Fields inherited from class com.microsoft.kiota.BaseRequestBuilder
pathParameters, requestAdapter, urlTemplate -
Constructor Summary
ConstructorsConstructorDescriptionMailFolderItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newMailFolderItemRequestBuilderand sets the default values.MailFolderItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newMailFolderItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptioncopy()Provides operations to call the copy method.voiddelete()Delete navigation property childFolders for usersvoiddelete(Consumer<MailFolderItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property childFolders for usersget()The collection of child folders in the mailFolder.get(Consumer<MailFolderItemRequestBuilder.GetRequestConfiguration> requestConfiguration) The collection of child folders in the mailFolder.Provides operations to manage the messageRules property of the microsoft.graph.mailFolder entity.messages()Provides operations to manage the messages property of the microsoft.graph.mailFolder entity.move()Provides operations to call the move method.patch(MailFolder body) Update the navigation property childFolders in userspatch(MailFolder body, Consumer<MailFolderItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property childFolders in usersProvides operations to call the permanentDelete method.com.microsoft.kiota.RequestInformationDelete navigation property childFolders for userscom.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<MailFolderItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property childFolders for userscom.microsoft.kiota.RequestInformationThe collection of child folders in the mailFolder.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<MailFolderItemRequestBuilder.GetRequestConfiguration> requestConfiguration) The collection of child folders in the mailFolder.com.microsoft.kiota.RequestInformationUpdate the navigation property childFolders in userscom.microsoft.kiota.RequestInformationtoPatchRequestInformation(MailFolder body, Consumer<MailFolderItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property childFolders in usersReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
MailFolderItemRequestBuilder
public MailFolderItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newMailFolderItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
MailFolderItemRequestBuilder
public MailFolderItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newMailFolderItemRequestBuilderand sets the default values.- Parameters:
rawUrl- The raw URL to use for the request builder.requestAdapter- The request adapter to use to execute the requests.
-
-
Method Details
-
copy
Provides operations to call the copy method.- Returns:
- a
CopyRequestBuilder
-
messageRules
Provides operations to manage the messageRules property of the microsoft.graph.mailFolder entity.- Returns:
- a
MessageRulesRequestBuilder
-
messages
Provides operations to manage the messages property of the microsoft.graph.mailFolder entity.- Returns:
- a
MessagesRequestBuilder
-
move
Provides operations to call the move method.- Returns:
- a
MoveRequestBuilder
-
permanentDelete
Provides operations to call the permanentDelete method.- Returns:
- a
PermanentDeleteRequestBuilder
-
delete
public void delete()Delete navigation property childFolders for users- Throws:
ODataError- When receiving a 4XX or 5XX status code
-
delete
public void delete(@Nullable Consumer<MailFolderItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property childFolders for users- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
The collection of child folders in the mailFolder.- Returns:
- a
MailFolder - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
@Nullable public MailFolder get(@Nullable Consumer<MailFolderItemRequestBuilder.GetRequestConfiguration> requestConfiguration) The collection of child folders in the mailFolder.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
MailFolder - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
patch
Update the navigation property childFolders in users- Parameters:
body- The request body- Returns:
- a
MailFolder - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
patch
@Nullable public MailFolder patch(@Nonnull MailFolder body, @Nullable Consumer<MailFolderItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property childFolders in users- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
MailFolder - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Delete navigation property childFolders for users- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<MailFolderItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property childFolders for users- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()The collection of child folders in the mailFolder.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<MailFolderItemRequestBuilder.GetRequestConfiguration> requestConfiguration) The collection of child folders in the mailFolder.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull MailFolder body) Update the navigation property childFolders in users- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull MailFolder body, @Nullable Consumer<MailFolderItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property childFolders in users- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
withUrl
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.- Parameters:
rawUrl- The raw URL to use for the request builder.- Returns:
- a
MailFolderItemRequestBuilder
-