Package com.microsoft.graph.users.item.mailfolders.item.childfolders.item.messages.item.createforward
Class CreateForwardRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.users.item.mailfolders.item.childfolders.item.messages.item.createforward.CreateForwardRequestBuilder
@Generated("com.microsoft.kiota")
public class CreateForwardRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to call the createForward method.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration 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
ConstructorsConstructorDescriptionCreateForwardRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newCreateForwardRequestBuilderand sets the default values.CreateForwardRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newCreateForwardRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionCreate a draft to forward an existing message, in either JSON or MIME format.post(CreateForwardPostRequestBody body, Consumer<CreateForwardRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a draft to forward an existing message, in either JSON or MIME format.com.microsoft.kiota.RequestInformationCreate a draft to forward an existing message, in either JSON or MIME format.com.microsoft.kiota.RequestInformationtoPostRequestInformation(CreateForwardPostRequestBody body, Consumer<CreateForwardRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a draft to forward an existing message, in either JSON or MIME format.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
CreateForwardRequestBuilder
public CreateForwardRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newCreateForwardRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
CreateForwardRequestBuilder
public CreateForwardRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newCreateForwardRequestBuilderand 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
-
post
Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation.- Parameters:
body- The request body- Returns:
- a
Message - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
@Nullable public Message post(@Nonnull CreateForwardPostRequestBody body, @Nullable Consumer<CreateForwardRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation.- 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- See Also:
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull CreateForwardPostRequestBody body) Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull CreateForwardPostRequestBody body, @Nullable Consumer<CreateForwardRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation.- 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
CreateForwardRequestBuilder
-