|
| 1 | +// Template Source: BaseEntityStreamRequestBuilder.java.tt |
| 2 | +// ------------------------------------------------------------------------------ |
| 3 | +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. |
| 4 | +// ------------------------------------------------------------------------------ |
| 5 | + |
| 6 | +package com.microsoft.graph.requests; |
| 7 | + |
| 8 | +import com.microsoft.graph.http.IRequestBuilder; |
| 9 | +import com.microsoft.graph.core.ClientException; |
| 10 | +import com.microsoft.graph.models.CalendarSharingMessage; |
| 11 | +import com.microsoft.graph.models.Calendar; |
| 12 | +import com.microsoft.graph.models.Recipient; |
| 13 | +import com.microsoft.graph.models.Message; |
| 14 | +import java.util.Arrays; |
| 15 | +import java.util.EnumSet; |
| 16 | +import javax.annotation.Nullable; |
| 17 | +import javax.annotation.Nonnull; |
| 18 | +import com.microsoft.graph.core.IBaseClient; |
| 19 | +import com.microsoft.graph.http.BaseRequestBuilder; |
| 20 | +import java.io.InputStream; |
| 21 | +import com.microsoft.graph.models.MessageForwardParameterSet; |
| 22 | +import com.microsoft.graph.models.MessageCopyParameterSet; |
| 23 | +import com.microsoft.graph.models.MessageMoveParameterSet; |
| 24 | +import com.microsoft.graph.models.MessageCreateForwardParameterSet; |
| 25 | +import com.microsoft.graph.models.MessageCreateReplyParameterSet; |
| 26 | +import com.microsoft.graph.models.MessageCreateReplyAllParameterSet; |
| 27 | +import com.microsoft.graph.models.MessageReplyParameterSet; |
| 28 | +import com.microsoft.graph.models.MessageReplyAllParameterSet; |
| 29 | + |
| 30 | +// **NOTE** This file was generated by a tool and any changes will be overwritten. |
| 31 | + |
| 32 | +/** |
| 33 | + * The class for the Calendar Sharing Message Stream Request Builder. |
| 34 | + */ |
| 35 | +public class CalendarSharingMessageStreamRequestBuilder extends BaseRequestBuilder<InputStream> { |
| 36 | + |
| 37 | + /** |
| 38 | + * The request builder for the CalendarSharingMessage |
| 39 | + * |
| 40 | + * @param requestUrl the request URL |
| 41 | + * @param client the service client |
| 42 | + * @param requestOptions the options for this request |
| 43 | + */ |
| 44 | + public CalendarSharingMessageStreamRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient<?> client, @Nullable final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) { |
| 45 | + super(requestUrl, client, requestOptions); |
| 46 | + } |
| 47 | + |
| 48 | + /** |
| 49 | + * Creates the request |
| 50 | + * |
| 51 | + * @param requestOptions the options for this request |
| 52 | + * @return the CalendarSharingMessageStreamRequest instance |
| 53 | + */ |
| 54 | + @Nonnull |
| 55 | + public CalendarSharingMessageStreamRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { |
| 56 | + return buildRequest(getOptions(requestOptions)); |
| 57 | + } |
| 58 | + |
| 59 | + /** |
| 60 | + * Creates the request with specific options instead of the existing options |
| 61 | + * |
| 62 | + * @param requestOptions the options for this request |
| 63 | + * @return the CalendarSharingMessageStreamRequest instance |
| 64 | + */ |
| 65 | + @Nonnull |
| 66 | + public CalendarSharingMessageStreamRequest buildRequest(@Nonnull final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) { |
| 67 | + return new CalendarSharingMessageStreamRequest(getRequestUrl(), getClient(), requestOptions); |
| 68 | + } |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + /** |
| 73 | + * Gets a builder to execute the method |
| 74 | + * @return the request builder |
| 75 | + */ |
| 76 | + @Nonnull |
| 77 | + public CalendarSharingMessageAcceptRequestBuilder accept() { |
| 78 | + return new CalendarSharingMessageAcceptRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.accept"), getClient(), null); |
| 79 | + } |
| 80 | + |
| 81 | + /** |
| 82 | + * Gets a builder to execute the method |
| 83 | + * @return the request builder |
| 84 | + * @param parameters the parameters for the service method |
| 85 | + */ |
| 86 | + @Nonnull |
| 87 | + public MessageForwardRequestBuilder forward(@Nonnull final MessageForwardParameterSet parameters) { |
| 88 | + return new MessageForwardRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.forward"), getClient(), null, parameters); |
| 89 | + } |
| 90 | + |
| 91 | + /** |
| 92 | + * Gets a builder to execute the method |
| 93 | + * @return the request builder |
| 94 | + * @param parameters the parameters for the service method |
| 95 | + */ |
| 96 | + @Nonnull |
| 97 | + public MessageCopyRequestBuilder copy(@Nonnull final MessageCopyParameterSet parameters) { |
| 98 | + return new MessageCopyRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.copy"), getClient(), null, parameters); |
| 99 | + } |
| 100 | + |
| 101 | + /** |
| 102 | + * Gets a builder to execute the method |
| 103 | + * @return the request builder |
| 104 | + * @param parameters the parameters for the service method |
| 105 | + */ |
| 106 | + @Nonnull |
| 107 | + public MessageMoveRequestBuilder move(@Nonnull final MessageMoveParameterSet parameters) { |
| 108 | + return new MessageMoveRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.move"), getClient(), null, parameters); |
| 109 | + } |
| 110 | + |
| 111 | + /** |
| 112 | + * Gets a builder to execute the method |
| 113 | + * @return the request builder |
| 114 | + * @param parameters the parameters for the service method |
| 115 | + */ |
| 116 | + @Nonnull |
| 117 | + public MessageCreateForwardRequestBuilder createForward(@Nonnull final MessageCreateForwardParameterSet parameters) { |
| 118 | + return new MessageCreateForwardRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.createForward"), getClient(), null, parameters); |
| 119 | + } |
| 120 | + |
| 121 | + /** |
| 122 | + * Gets a builder to execute the method |
| 123 | + * @return the request builder |
| 124 | + * @param parameters the parameters for the service method |
| 125 | + */ |
| 126 | + @Nonnull |
| 127 | + public MessageCreateReplyRequestBuilder createReply(@Nonnull final MessageCreateReplyParameterSet parameters) { |
| 128 | + return new MessageCreateReplyRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.createReply"), getClient(), null, parameters); |
| 129 | + } |
| 130 | + |
| 131 | + /** |
| 132 | + * Gets a builder to execute the method |
| 133 | + * @return the request builder |
| 134 | + * @param parameters the parameters for the service method |
| 135 | + */ |
| 136 | + @Nonnull |
| 137 | + public MessageCreateReplyAllRequestBuilder createReplyAll(@Nonnull final MessageCreateReplyAllParameterSet parameters) { |
| 138 | + return new MessageCreateReplyAllRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.createReplyAll"), getClient(), null, parameters); |
| 139 | + } |
| 140 | + |
| 141 | + /** |
| 142 | + * Gets a builder to execute the method |
| 143 | + * @return the request builder |
| 144 | + * @param parameters the parameters for the service method |
| 145 | + */ |
| 146 | + @Nonnull |
| 147 | + public MessageReplyRequestBuilder reply(@Nonnull final MessageReplyParameterSet parameters) { |
| 148 | + return new MessageReplyRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.reply"), getClient(), null, parameters); |
| 149 | + } |
| 150 | + |
| 151 | + /** |
| 152 | + * Gets a builder to execute the method |
| 153 | + * @return the request builder |
| 154 | + * @param parameters the parameters for the service method |
| 155 | + */ |
| 156 | + @Nonnull |
| 157 | + public MessageReplyAllRequestBuilder replyAll(@Nonnull final MessageReplyAllParameterSet parameters) { |
| 158 | + return new MessageReplyAllRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.replyAll"), getClient(), null, parameters); |
| 159 | + } |
| 160 | + |
| 161 | + /** |
| 162 | + * Gets a builder to execute the method |
| 163 | + * @return the request builder |
| 164 | + */ |
| 165 | + @Nonnull |
| 166 | + public MessageSendRequestBuilder send() { |
| 167 | + return new MessageSendRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.send"), getClient(), null); |
| 168 | + } |
| 169 | +} |
0 commit comments