Class MessageItemRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.users.item.mailfolders.item.messages.item.MessageItemRequestBuilder
@Generated("com.microsoft.kiota")
public class MessageItemRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the messages 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 messages 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
ConstructorsConstructorDescriptionMessageItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newMessageItemRequestBuilderand sets the default values.MessageItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newMessageItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionProvides operations to manage the attachments property of the microsoft.graph.message entity.content()Provides operations to manage the media for the user entity.copy()Provides operations to call the copy method.Provides operations to call the createForward method.Provides operations to call the createReply method.Provides operations to call the createReplyAll method.voiddelete()Delete navigation property messages for usersvoiddelete(Consumer<MessageItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property messages for usersProvides operations to manage the extensions property of the microsoft.graph.message entity.forward()Provides operations to call the forward method.get()The collection of messages in the mailFolder.get(Consumer<MessageItemRequestBuilder.GetRequestConfiguration> requestConfiguration) The collection of messages in the mailFolder.move()Provides operations to call the move method.Update the navigation property messages in userspatch(Message body, Consumer<MessageItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property messages in usersProvides operations to call the permanentDelete method.reply()Provides operations to call the reply method.replyAll()Provides operations to call the replyAll method.send()Provides operations to call the send method.com.microsoft.kiota.RequestInformationDelete navigation property messages for userscom.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<MessageItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property messages for userscom.microsoft.kiota.RequestInformationThe collection of messages in the mailFolder.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<MessageItemRequestBuilder.GetRequestConfiguration> requestConfiguration) The collection of messages in the mailFolder.com.microsoft.kiota.RequestInformationUpdate the navigation property messages in userscom.microsoft.kiota.RequestInformationtoPatchRequestInformation(Message body, Consumer<MessageItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property messages in usersReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
MessageItemRequestBuilder
public MessageItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newMessageItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
MessageItemRequestBuilder
public MessageItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newMessageItemRequestBuilderand 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
-
attachments
Provides operations to manage the attachments property of the microsoft.graph.message entity.- Returns:
- a
AttachmentsRequestBuilder
-
content
Provides operations to manage the media for the user entity.- Returns:
- a
ContentRequestBuilder
-
copy
Provides operations to call the copy method.- Returns:
- a
CopyRequestBuilder
-
createForward
Provides operations to call the createForward method.- Returns:
- a
CreateForwardRequestBuilder
-
createReply
Provides operations to call the createReply method.- Returns:
- a
CreateReplyRequestBuilder
-
createReplyAll
Provides operations to call the createReplyAll method.- Returns:
- a
CreateReplyAllRequestBuilder
-
extensions
Provides operations to manage the extensions property of the microsoft.graph.message entity.- Returns:
- a
ExtensionsRequestBuilder
-
forward
Provides operations to call the forward method.- Returns:
- a
ForwardRequestBuilder
-
move
Provides operations to call the move method.- Returns:
- a
MoveRequestBuilder
-
permanentDelete
Provides operations to call the permanentDelete method.- Returns:
- a
PermanentDeleteRequestBuilder
-
reply
Provides operations to call the reply method.- Returns:
- a
ReplyRequestBuilder
-
replyAll
Provides operations to call the replyAll method.- Returns:
- a
ReplyAllRequestBuilder
-
send
Provides operations to call the send method.- Returns:
- a
SendRequestBuilder
-
delete
public void delete()Delete navigation property messages for users- Throws:
ODataError- When receiving a 4XX or 5XX status code
-
delete
public void delete(@Nullable Consumer<MessageItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property messages 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 messages in the mailFolder.- Returns:
- a
Message - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
@Nullable public Message get(@Nullable Consumer<MessageItemRequestBuilder.GetRequestConfiguration> requestConfiguration) The collection of messages in the mailFolder.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
Message - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
patch
Update the navigation property messages in users- Parameters:
body- The request body- Returns:
- a
Message - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
patch
@Nullable public Message patch(@Nonnull Message body, @Nullable Consumer<MessageItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property messages in users- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
Message - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Delete navigation property messages for users- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<MessageItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property messages 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 messages in the mailFolder.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<MessageItemRequestBuilder.GetRequestConfiguration> requestConfiguration) The collection of messages 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 Message body) Update the navigation property messages in users- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull Message body, @Nullable Consumer<MessageItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property messages 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
MessageItemRequestBuilder
-